
Analysis of Multi-Stage PowerShell Malware with Base64 Payload and C2 Communication
malwarePowerShellmalware-analysisbase64payloadC2command-and-controliexInvoke-Expressionobfuscationmulti-stagethreat-analysis
The analyst examines malicious PowerShell code that retrieves content from a path in AppData\runtime\BTC1\PowerShell\cab.dat and pipes it to iex (Invoke-Expression) for execution. The script sleeps for 60 seconds, performs cleanup by attempting to remove files at the start, downloads a payload, and writes it to AppData\revimement\runtime environment\VTC1. The new base64 payload is identified as a zip file that connects to a full IP address using the same URL as a previous stage. The analyst expresses concern about potentially missing some stages, noting there is a 3C variant based on a different configuration.