Your Firewall Just Let North Korea Phone Home: The Blockchain C2 Problem
In March 2026, an eSentire incident response team walked into a retail breach and found something new: the malware's C2 address was not in a domain, not in an IP, not in a hardcoded config. It was in an Ethereum smart contract.
The technique is called EtherHiding, and over the last six months it has become the operating model for at least four active malware families and one North Korean APT (UNC5342). It breaks the entire firewall-blocklist model — and most security teams have no detection in place.
How It Works
The mechanics are simple enough that the operating cost is measured in single-digit dollars per month.
- Attacker deploys a smart contract to a public chain (Ethereum, BNB Smart Chain, or Polygon are the popular choices).
- The contract stores either the live C2 address or an encrypted command blob — sometimes the full payload.
- Compromised endpoints query a public RPC endpoint (Infura, Alchemy,
polygon-rpc.com,bsc-dataseed.binance.org) over plain HTTPS to read that value. - To rotate infrastructure, the attacker sends one transaction updating the contract. Total cost on Polygon: about $0.01.
You cannot take a smart contract down. You cannot seize it. You cannot null-route it. Once it is on chain, it is there for as long as the chain exists.
Who Is Using It
| Family | Chain | First seen | Notable |
|---|---|---|---|
| EtherRAT | Ethereum | March 2026 | Node.js backdoor, retail breach |
| Aeternum C2 | Polygon | Feb 2026 | C++ botnet, ~$1 = 150 commands |
| Tsundere Botnet | Ethereum | 2026 | MITRE ATT&CK S9034 |
| UNC5342 (DPRK) | Ethereum + BSC | 2026 | Embeds payloads on chain |
Why Your Firewall Misses It
Traditional defenses break in three places:
- ✗Domain blocklists are useless. The chain is on
infura.io,alchemy.com,polygon-rpc.com— legitimate developer infrastructure used by millions of dApps. - ✗IP blocking does not work. RPC providers run on Cloudflare and AWS. Blocking their ranges breaks your engineering team.
- ✗TLS inspection sees JSON-RPC, not malware. The request looks like any other Web3 call. The malicious string only resolves to a C2 address after on-host parsing.
What Actually Works: Egress by Business Need
The blockchain C2 problem is a special case of the broader egress filtering problem: if a workstation has no legitimate reason to talk to a service, it should not be allowed to. Most networks have nobody on the finance or HR floor who needs to read Ethereum contracts.
Concretely, this means three firewall posture questions:
- Which policies allow outbound to public RPC endpoints? Find every WAN egress rule that permits HTTPS to
*.infura.io,*.alchemy.com,polygon-rpc.com,*.bsc-dataseed.binance.org,*.quicknode.com,*.ankr.com. - Which of those policies cover endpoints with no business need? Finance, HR, customer support, retail POS — none of these need to read smart contracts. Engineering and treasury might.
- Are those policies behind deep inspection? If a JSON-RPC POST is hitting a contract address you have never seen before, that is signal. SSL inspection plus an outbound HTTPS DPI policy on a known-RPC FQDN list can catch it.
What CRWLR flags today
CRWLR does not look up individual blockchain RPC hostnames. What it does check is the open internet access that this kind of malware depends on, because EtherHiding-style C2 travels over ordinary outbound HTTPS. In FortiGate, Palo Alto and Sophos configs, we flag:
- ✓Outbound allow policies that permit every service (service ALL or any, and application-default on Palo Alto)
- ✓Internet-facing allow policies with no security profiles attached (no antivirus, IPS, web filter, application control, or SSL inspection)
- ✓Policies that carry HTTPS to or from the internet with no SSL/TLS inspection, which leaves the payload invisible to the firewall
- ✓Outbound rules that let any internal host reach any internet destination, even on a single service
Each finding comes with remediation guidance, and the ready-to-paste CLI commands are most complete for FortiGate. Closing these gaps will not block one specific smart-contract lookup, but it narrows the paths malware can use and gives your firewall a chance to see what is inside the traffic.
Want to know how open your outbound rules are today?
Start Free Scan →60 seconds. No credit card. We never store your raw config.