← Lab /Security & privacy

Aeternum botnet uses Polygon blockchain to host encrypted C2 commands

Aeternum shifts its entire command-and-control infrastructure to the public Polygon blockchain, using smart contracts to deliver encrypted instructions.

Security & privacy Unit 42 10 Aug 2026 Attack Real-world evidence

Published as “The Permanent Threat: Analyzing Aeternum’s Blockchain-Based C2 Operations and Communications”

Why it matters

Using a public blockchain for C2 makes takedown difficult and forces defenders to develop new detection methods beyond traditional domain- or IP-based controls.

Summary

The researchers analyzed three malware samples linked to the Aeternum botnet, including a C++ loader, a blended XWorm/XMRig dropper, and a Python source file. All samples query Polygon blockchain smart contracts via JSON-RPC, using the function selector 0xb68d1809 to retrieve encrypted or plain-text C2 commands. Decryption relies on a weak PBKDF2HMAC/AES-GCM scheme that can be reversed with a custom script, and the payloads are then used to download additional binaries or exfiltrate data via the Telegram API. The evidence comes from static deobfuscation, network captures, and over 29,000 detection events recorded by Palo Alto Networks products.

Caveats 4

  • Although the analyzed sample uses encryption, we found additional samples using plain-text C2 commands, as well as an unknown encrypted payload.
  • We suspect that this particular sample differs from others, since we did not find the smart contract addresses either through deobfuscation or plain-text pattern search.
  • The analysis could not locate smart contract addresses via deobfuscation in the sample.
  • The authors could not fully attribute some exfiltration activity to ZingoStealer.

What’s new here 4

  • Identifies the use of public Polygon blockchain smart contracts as a decentralized C2 channel.
  • Reveals a reusable function selector (0xb68d1809) that serves as a fingerprint for Aeternum activity.
  • Describes a weak PBKDF2HMAC/AES-GCM encryption that can be decrypted with known contract address and payload.
  • Shows integration with Telegram API for data exfiltration and with GitHub for payload delivery.