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.
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.
The Aeternum loader (SHA256: 5bfb25b8255b61e5ffdf6804451534bcfa9f1dfd225e6c8cdcefb5f50d846898) executes in stages, first unpacking itself and then deobfuscating internal strings and configuration data.
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.
polygon-rpc.com). The request is a JSON-RPC call to the eth_call method.to field and the function to call in the data field. The malware calls the getDomain() method, identified by its function selector 0xb68d1809.all:url:<URI for putty.exe>, instructing the bot to download a file.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.
T1568.003 - Dynamic Resolution: Cloud-Based Dynamic DNS: Using a public blockchain as a decentralized and dynamic C2 resolution mechanism.T1105 - Ingress Tool Transfer: Downloading secondary payloads from sources like GitHub.T1027 - Obfuscated Files or Information: Using UPX packing and a custom XOR-based string encryption scheme.T1497 - Virtualization/Sandbox Evasion: The malware includes checks to detect if it is running in a virtual machine or analysis environment.T1059.003 - Command and Scripting Interpreter: Windows Command Shell: Used to execute downloaded payloads.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.
5bfb25b8255b61e5ffdf6804451534bcfa9f1dfd225e6c8cdcefb5f50d846898Build.exe.The following patterns may help identify Aeternum activity:
polygon-rpc.comBuild.exeDotNetZip.dll"method":"eth_call"0xb68d1809getDomain() method in the smart contract call.Detecting Aeternum requires a focus on behavioral and network anomalies.
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).
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.
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.
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).
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.
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.
A malicious DLL payload associated with Aeternum activity was committed to a public GitHub repository.

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.
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.
Help others stay informed about cybersecurity threats
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.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
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 detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.