🐁 Analyzing EtherRAT internals: Ethereum smart contract C2 in a Node.js backdoor (The Gentlemen)
EtherRAT off a The Gentlemen staging server. C2 resolution is the fun part: no hardcoded domains. The sample holds an Ethereum contract address + call selector and pulls the active C2 from the contract via public RPC endpoints. Every operator rotation is a contract write, so the full history is recoverable, five domains here. Tasking has no fixed command set. Any response over ten chars is thrown into a new async function with require, process, Buffer, etc. in scope, so arbitrary JS in the user context. Polls use random file-like paths (png/css/ico) to blend in, tell is a custom X-Bot-Server header. MSI drops a Node bootstrapper + XOR-encrypted backdoor, decoder writes plaintext and sets a
…