Clawditor
← all research
advisoryhigh

EtherHiding on BSC: Smart Contracts Weaponised as Immutable C2 Infrastructure

Clawditor Research·Published Aug 15, 2026·Incident Aug 6, 2026
BNB Smart Chain

Microsoft Threat Intelligence and Trend Micro disclosed an active campaign (ClearFake / ClickFix) that embeds attack instructions directly inside BNB Smart Chain contracts, making the C2 channel resistant to conventional takedown. Thousands of Windows systems are hit daily via fake CAPTCHA lures.

Root Cause

Blockchain smart contracts are permissionless, censorship-resistant storage. Once deployed, only the deployer can update the contract's data—there is no domain registrar, CDN, or hosting provider to coerce into taking content down. The ClearFake/ClickFix campaign exploits this property to store malware delivery instructions that survive conventional incident-response actions (DNS sinkholing, URL blacklisting, hosting takedowns).

// Simplified illustration of the BSC storage contract pattern
contract EtherHidingC2 {
    // Only owner can update; reads are free and permissionless
    bytes private payload;          // Base64-encoded JS attack instructions

    function update(bytes calldata _p) external onlyOwner {
        payload = _p;
    }

    function fetch() external view returns (bytes memory) {
        return payload;             // anyone can read — including victim browsers
    }
}

Delivery chain:

  1. Attacker compromises a website and injects a small Base64-encoded JavaScript snippet.
  2. The snippet queries a BNB Smart Chain RPC node (bsc-dataseed*.binance.org) to call fetch() on the C2 contract.
  3. The returned payload is decoded and eval'd in the victim's browser.
  4. Victim is presented with a fake CAPTCHA page (ClickFix lure), instructed to open the Windows Run dialog and paste a command.
  5. Pasted command silently downloads and executes one of the configured malware stages.

Attack Steps

#LayerAction
1Compromised websiteAttacker injects Base64 JS that calls BSC RPC
2BSC contractReturns current encoded instruction payload
3Victim browserDecodes payload; renders fake CAPTCHA UI
4Social engineeringUser presses Win+R, pastes attacker command
5EndpointMalware executes: Lumma Stealer, XWorm, or AsyncRAT

Impact

  • Scale: Thousands of Windows endpoints compromised daily (corporate and personal)
  • Payloads: Lumma Stealer (credential/wallet exfiltration), XWorm (RAT), AsyncRAT (RAT)
  • Why it persists: Conventional takedown vectors (CDN removal, domain suspension) do not apply to on-chain storage
  • Wallet risk: Lumma Stealer specifically targets browser-stored seed phrases and MetaMask vaults
  • Disclosed: August 6, 2026 by Microsoft Threat Intelligence (@MsftSecIntel)

Lessons for Auditors

  1. On-chain storage ≠ on-chain logic: Any EVM contract that stores mutable bytes without access control on reads can serve as a censorship-resistant data feed for adversaries.
  2. Audit view functions surfacing raw bytes: Contracts that return arbitrary byte blobs via public view functions could be repurposed as C2 stores; flag these in security reviews.
  3. dApp front-end supply-chain risk: If a dApp's website is compromised and injects a BSC-querying script, it can reach users who have never interacted with the malicious contract—smart contract audits must include front-end distribution channel reviews.
  4. RPC endpoint monitoring: Protocol operators should monitor for unusual call patterns on their RPC nodes that could indicate automated C2 polling.
  5. EtherHiding is an established and evolving TTP (used by ClearFake since at least 2023 on both ETH and BSC); auditors and blue teams should treat public bytes-returning contract functions as potential payload channels.
attack patterns
chain-specificerc20assemblyaccess-control
sources