Huntress Traces Obfuscated Cobalt Strike Malware Across 662 Registry Values

· Original article ↗

Summary

Huntress analysts traced Cobalt Strike malware from a suspicious RunOnce key through obfuscated PowerShell and five in-memory binaries, detailing registry-based staging, process injection, evasion tactics and beacon behavior.

Key points

  • A suspicious RunOnce entry launched hidden PowerShell that retrieved a command from a user environment variable.
  • The script assembled and decoded payload data stored across 662 registry values, then loaded a .NET DLL into memory.
  • Analysis uncovered a chain of five binaries, including malware targeting the legitimate Werfault.exe process for injection.
  • The malware used sleep delays, obfuscation, runtime API resolution, and dynamic memory operations that hindered automated and manual analysis.
  • A Cobalt Strike parser confirmed the malware; its configuration indicated HTTPS POST communications and included a C2 server IP.
  • The test system had no network access, so the beacon's connection attempts failed and any possible additional payload retrieval was not observed.

Article Details

Attack Vectors
  • A RunOnce registry entry launched a hidden PowerShell command that read payload data stored across registry values.
  • The PowerShell script de-obfuscated the registry data, converted it to bytes, and loaded a DLL into memory through reflection.
  • The malware reset RunOnce values to maintain persistence across reboots.
  • A later payload injected code into the legitimate Werfault.exe process.
  • The Cobalt Strike beacon used HTTPS POST requests for C2 communication and placed Malleable C2 data in HTTP cookie headers.
Defensive Notes
  • Do not rely solely on automated scanning; the article recommends a human analysis component for detecting obfuscated malware.
  • Investigate suspicious RunOnce entries and registry-stored data, including payloads spread across many registry values.
  • The analyzed malware used sleep delays to hinder automated scanning and dynamic analysis.

MITRE ATT&CK

Products

Tools

Related Articles