Aeternum Botnet Loader Leverages Polygon Smart Contracts

Aeternum Botnet Uses Polygon Blockchain for Resilient C2

HIGH
August 11, 2026
18m read
MalwareThreat Intelligence

Related Entities

Organizations

Products & Tech

Polygon PuTTY DotNetZipTelegram

Full Report

Executive Summary

Researchers have analyzed a C++ botnet loader named Aeternum that utilizes the public Polygon blockchain for a decentralized and highly resilient command-and-control (C2) infrastructure. Instead of connecting to traditional servers, infected Windows systems query public Remote Procedure Call (RPC) endpoints to read instructions from smart contracts deployed by the threat actors. This architecture makes the botnet's C2 nearly impossible to dismantle through conventional takedown methods. The loader, which advertises itself as Aeternum C2 BotNet Loader, also incorporates anti-analysis features and is used to deliver secondary payloads, including cryptominers like XMRig.

Threat Overview

The core innovation of the Aeternum botnet is its complete reliance on a public blockchain for C2 operations. Threat actors issue commands by writing data to smart contracts on the Polygon network. Infected hosts, acting as bots, periodically poll public RPC gateways to fetch these commands. This design offers several advantages to the attackers: high availability, censorship resistance, and anonymity, all at a low operational cost. The malware sample analyzed (Build.exe) is a 32-bit UPX-packed Windows executable that establishes persistence, performs reconnaissance, and then begins communicating with the blockchain to await instructions.

Technical Analysis

The Aeternum loader (SHA256: 5bfb25b8255b61e5ffdf6804451534bcfa9f1dfd225e6c8cdcefb5f50d846898) executes in stages, first unpacking itself and then deobfuscating internal strings and configuration data.

String Deobfuscation

The malware hides critical strings, such as JSON object templates for RPC requests, using a simple XOR-based encryption scheme. The encrypted data follows a recognizable pattern: \x00\x00\x00[ENC bytes]\x00[KEY bytes]\x00\x00\x00. A script can parse the binary for this pattern, extract the key, and decrypt the embedded information.

Blockchain C2 Communication

  1. JSON-RPC Request: The loader sends an HTTP POST request to a Polygon RPC endpoint (e.g., polygon-rpc.com). The request is a JSON-RPC call to the eth_call method.
  2. Smart Contract Call: The JSON payload specifies the target smart contract address in the to field and the function to call in the data field. The malware calls the getDomain() method, identified by its function selector 0xb68d1809.
  3. Payload Retrieval and Decryption: The RPC endpoint returns the data from the smart contract. While some commands are in plaintext, others are encrypted. The analysis revealed a critical flaw in the encryption: a weak, self-salting password scheme condemned by NIST SP 800-132. The decryption key is derived from the smart contract address itself, allowing researchers to decrypt the payload using the contract address and the returned data. An example decrypted command is all:url:<URI for putty.exe>, instructing the bot to download a file.

Secondary Payloads

The loader has been observed downloading both legitimate and malicious files. In one case, it downloaded a legitimate installer for PuTTY (likely for testing) and a malicious DotNetZip.dll from a GitHub repository. The ultimate goal is to deliver malware like the XMRig cryptominer, though the architecture allows for any payload to be deployed.

MITRE ATT&CK Techniques

Impact Assessment

Aeternum represents a significant step forward in the development of resilient malware. By decentralizing its C2 on a public blockchain, the botnet is largely immune to traditional infrastructure takedown efforts that target servers and domains. This makes it a persistent threat that can be repurposed to deliver various malicious payloads, from resource-stealing cryptominers to destructive ransomware. The low cost and high resilience of this model are likely to be adopted by other threat actors, posing a long-term challenge for the cybersecurity community.

IOCs — Directly from Articles

Type
File Hash (SHA256)
Value
5bfb25b8255b61e5ffdf6804451534bcfa9f1dfd225e6c8cdcefb5f50d846898
Description
SHA256 hash of the Aeternum loader sample Build.exe.

Cyber Observables — Hunting Hints

The following patterns may help identify Aeternum activity:

Type
Domain
Value
polygon-rpc.com
Description
A public RPC endpoint for the Polygon blockchain used for C2.
Context
DNS logs, proxy logs. Monitor for repeated POST requests.
Type
File Name
Value
Build.exe
Description
The name of the initial Aeternum loader sample.
Context
EDR alerts, file system monitoring.
Type
File Name
Value
DotNetZip.dll
Description
A malicious DLL observed being downloaded as a secondary payload.
Context
EDR alerts, file system monitoring.
Type
Network Traffic Pattern
Value
"method":"eth_call"
Description
Part of the JSON-RPC request sent to the Polygon endpoint.
Context
Deep packet inspection, network traffic analysis.
Type
Hex Pattern
Value
0xb68d1809
Description
The 4-byte function selector for the getDomain() method in the smart contract call.
Context
Deep packet inspection, network security monitoring.

Detection & Response

Detecting Aeternum requires a focus on behavioral and network anomalies.

  1. Network Traffic Analysis: Monitor for HTTP POST requests to known public blockchain RPC endpoints (e.g., polygon-rpc.com). While legitimate applications may use these, a pattern of repeated requests from numerous endpoints within an organization could indicate a widespread botnet infection. Use D3FEND's Network Traffic Analysis (D3-NTA) to inspect the JSON-RPC payload for suspicious characteristics, such as calls to the eth_call method with the getDomain() function selector (0xb68d1809).

  2. Endpoint Detection: Use an EDR solution to monitor for the execution of unsigned or UPX-packed executables. Create detection rules for the loader's persistence mechanisms and its specific string deobfuscation patterns. Process Analysis (D3-PA) can help identify the chain of execution from the initial loader to the downloaded secondary payloads.

  3. Threat Hunting: Proactively hunt for downloads from public code repositories like GitHub, especially for files that are later executed by cmd.exe or powershell.exe. Hunt for the specific string encryption pattern (\x00\x00\x00...) in suspicious binaries on disk.

Mitigation

  • Application Control: Implement application allowlisting policies, such as Windows Defender Application Control, to prevent the execution of unauthorized and unsigned executables like the Aeternum loader. This is a form of D3FEND's Executable Allowlisting (D3-EAL).

  • Egress Filtering: While blocking all blockchain RPC endpoints may be impractical, organizations can restrict or closely monitor outbound connections to them. Create policies that alert on systems making frequent JSON-RPC calls, which is not typical behavior for most corporate workstations. Block direct downloads from untrusted sources like raw GitHub content URLs.

  • Endpoint Hardening: Ensure endpoint security solutions are configured to detect and block packed executables and scripts that exhibit anti-VM or anti-debugging behavior. This aligns with Application Hardening (D3-AH).

Timeline of Events

1
October 1, 2025
A malicious DLL payload associated with Aeternum activity was committed to a public GitHub repository.
2
August 11, 2026
This article was published

MITRE ATT&CK Mitigations

Use application control solutions to prevent the execution of unauthorized, unsigned, or packed executables like the Aeternum loader.

Monitor and restrict outbound HTTP POST requests to public blockchain RPC endpoints, as this is anomalous behavior for most workstations.

Deploy endpoint protection capable of detecting packed binaries and behaviors associated with loaders and cryptominers.

Block or monitor downloads from untrusted sources, such as direct file downloads from public code repositories like GitHub.

D3FEND Defensive Countermeasures

To prevent the initial execution of the Aeternum loader (Build.exe), organizations should implement a strict application control policy. Using technologies like Windows Defender Application Control or AppLocker, administrators can create rules that only permit signed, known-good applications to run. Since Aeternum is an unsigned custom executable, an allowlisting policy would block it from running, neutralizing the threat at the very first stage. This is particularly effective on servers and fixed-function workstations where the set of required software is predictable. This proactive stance is one of the most robust defenses against unknown malware loaders.

Given Aeternum's reliance on blockchain C2, network traffic analysis is critical for detection. Security teams should configure network monitoring tools (like Zeek or commercial equivalents) to specifically baseline and inspect HTTP POST requests to known public RPC endpoints (e.g., polygon-rpc.com). Create detection logic that alerts on the specific JSON-RPC eth_call method combined with the getDomain() function selector (0xb68d1809). While a single request might be benign, a pattern of these requests from multiple endpoints is a strong indicator of a botnet infection. This allows for detection of active C2 communication even if the endpoint malware itself is not detected.

Endpoint Detection and Response (EDR) tools should be configured to analyze process behavior and lineage. For Aeternum, a key detection opportunity is the process chain where the loader (Build.exe) spawns a shell (cmd.exe) to execute a downloaded payload (like putty.exe or a malicious DLL via rundll32.exe). EDR solutions can correlate the network activity (downloads from GitHub) with the subsequent process creation events. Furthermore, EDR can be used to hunt for processes that exhibit anti-VM or anti-analysis API calls, which the Aeternum loader is known to perform, providing another layer of behavioral detection.

Timeline of Events

1
October 1, 2025

A malicious DLL payload associated with Aeternum activity was committed to a public GitHub repository.

Sources & References

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

botnetloaderblockchainC2Polygonsmart contractmalware analysiscryptominer

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.