Cyber Risks · Unit 42 Palo Alto Networks

Cobalt Strike Analysis and Tutorial: CS Metadata Encoding and Decoding

Summary: Unit 42 details the five metadata encoding schemes Cobalt Strike supports - Base64, Base64URL, NetBIOS, NetBIOSU and Mask - and walks through how Beacon encodes information about a compromised system before sending it to the TeamServer in HTTP C2 traffic. The post shows working examples from Malleable C2 profiles such as Havex, Cnnvideo_getonly, Ocsp, Asprox and randomized, and cites two in-the-wild payloads, one Base64-encoded (SHA256 6b6413a059a9f12d849c007055685d981ddb0ff308d6e3c2638d197e6d3e8802) and one Base64URL-encoded (SHA256 f6e75c20ddcbe3bc09e1d803a8268a00bf5f7e66b7dbd221a36ed5ead079e093).

Key Takeaway: The same tool is sold as legitimate red-team software and used by threat actors for real-world attacks, and its encoding options let an operator shape C2 metadata to blend into ordinary HTTP requests. Unit 42's conclusion is blunt: a single security appliance is not equipped to prevent a Cobalt Strike attack.

Read the original at Unit 42 Palo Alto Networks ↗

Topics
Zero-Days & Exploits
Related