Honeypot capture

Arm ELF 32-bit LSB executable ddos-bot (66a48ccc7253)

C2 verifiedProtocol documented

The sample described here is a 189,800-byte 32-bit ARM ELF caught by a honeypot sensor network. It builds for ARMv7 and ARM, which points to routers, cameras and other embedded devices rather than servers. Its body follows the Mirai lineage and matches no named commodity family. Unlike Mirai, it reads its list of C2 IPs at runtime from an Ethereum ENS text record, and because those IPs can change on-chain, the ENS name and the resolver contract it queries are the indicators to alert on. An automatic pipeline built on Binary Ninja analysed the sample statically, loading it as data without executing it and without contacting or resolving any recovered endpoint. Every indicator below is anchored to a file offset and corroborated across strings and rabin2. An independent Ghidra/r2 pass, referred to below as the consensus round, cross-checked the C2 findings, and a second decompiler backend gave agreement verdicts on the recovered endpoints. To run, the sample needs only user privilege and outbound tcp/443. It is identified by:

  • SHA-256 66a48ccc7253f7ed086988f72f57a8f24bd0b722222ba62533e610e4c9e70fef
  • MD5 5f8388831e13de32887040b42ee3a10b
  • SHA-1 a7370c82f8ec6d7a8017fab267bc9a8e4e6e85e4

The C2 address is resolved from an Ethereum ENS text record

The sample obtains its C2 address at runtime from an ENS text record. The file itself holds no C2 address. At offset 0x12940 it issues an Ethereum eth_call to the text(bytes32,string) method (selector 0x59d1d43c) of the ENS resolver contract 0xf29100983e058b709f3d539b0c765937b804ac15, asking for the text record of 2busydrinkingcodeine[.]eth under the key woah. The reply is a list of the form [ip|ip|...], and the sample picks one IP at random. The request goes to nine public Ethereum JSON-RPC providers in sequence until one answers:

‘public-eth.nownodes.io’; public Ethereum JSON-RPC provider tried in sequence by sub_12940

Both the ENS name and the contract address come out of the sample’s encrypted configuration strings, and the extractor reproduces them from the raw file:

config string id 1 @0x74530 (24 bytes) decrypts to ‘2busydrinkingcodeine.eth’; the ENS name whose keccak256 namehash is the eth_call node

config string id 12 @0x745e8 (42 bytes) decodes to ‘0xf29100983e058b709f3d539b0c765937b804ac15’; the ENS resolver contract address placed in the eth_call “to” field

The ENS name and the resolver contract address are the durable indicators, because the beacon IPs live in the on-chain text record, can change without the file changing, and cannot be recovered from the file. The report recommends monitoring eth_call traffic to that contract and resolution of that name. The analysis assessed the mechanism at confidence 0.9 and mapped it to ATT&CK T1102 and T1568. The consensus round verified the contract independently, and both tools confirmed the ENS name byte-for-byte, but the name is marked unverified because its evidence address was corrected after that round.

The consensus round confirmed 34 of the 48 C2 claims. It covered the command table, the crypto and the protocol encoding, but not the capability rollups.

DNS-over-HTTPS and the pinned TLS session

Name resolution never touches the host resolver. At 0x11114 the sample POSTs binary application/dns-message queries over TLS 443 to dns.google, cloudflare-dns.com, dns.quad9.net and dns.adguard-dns.com, using eight hardcoded host/IP pairs. The analysis records this as evasion of DNS monitoring (confidence 0.85; T1071.004, T1572).

The C2 session runs over wolfSSL 5.8.2 TLS 1.3 with the pinned suite TLS13-AES256-GCM-SHA384 and with server-certificate verification disabled (0xffac, confidence 0.85, T1573.001), and the fixed 78-byte messages inside that tunnel are plaintext. The wire format was documented well enough to decode, and all four test vectors replay through the recovered dissector.

Registration and the 19-entry dispatch table

In its registration the sample reports its architecture as arm7, which suggests a multi-architecture Mirai-style build set (0x10248, confidence 0.75). The registration header fields are initialised from stack constants, and because the sample was never executed, the analysis could not establish whether some of them are derived from the infected host.

The sample receives commands through a 19-entry dispatch table, and the consensus round verified all 19 opcode-to-handler mappings. The parser at sub_8bd4 reads each command as a duration, a target list and a set of option TLVs. The sample then forks the command, runs it for that duration and kills it when the duration ends (confidence 0.75, T1498, T1499). Most handlers are UDP, TCP and HTTP flood methods built on sendto/recvfrom, and opcodes 6, 10 and 16 are 3-byte no-op stubs. Some questions remain open:

  • Opcodes 12, 13, 15 and 18 were located by handler size and callees but not decompiled packet-by-packet.
  • The parser’s structure was recovered, but the meaning of each option-TLV key was not enumerated.

Behaviour on an infected host

The sample disguises both its process and its network traffic (confidence 0.8, T1036). At 0xfeb0 it sets its process name to libssl[.]so via prctl, and it rotates a 15-entry browser User-Agent pool with full Fetch-Metadata headers and a fake SESSIONID=%d; TRACKING=%d; PREF=hl=en cookie so that its beacons look like web browsing.

The sample detaches from its parent, prevents a second copy from running and shields itself from the OOM killer. It double-forks, calls setsid, redirects stdio to /dev/null and binds an abstract AF_UNIX socket named drunkasfk as a single-instance lock (confidence 0.8, T1564). At 0x10b60 it writes -17 to /proc/self/oom_adj and -1000 to /proc/self/oom_score_adj so the kernel OOM killer will not reap it (confidence 0.85, T1562.001). The analysis found no mechanism that survives a reboot. After daemonising, the sample depends on reinfection to return.

At 0xf23c the sample walks /proc, resolves each process’s exe and kills any process named in its blacklist wget|curl|tftp|mount|ftpget|telnet|socat|sh|cp|cat|mv|grep|ps|reboot|kill, which the analysis classes as IoT turf control (confidence 0.7, T1489).

How the sample resists static analysis

The deep-static pass and the main report disagree about whether the stock UPX unpacker works on this sample. The UPX! banner is present, and the deep-static pass found the header defaced so that the stock unpacker fails while the runtime stub still restores the payload, whereas the main report records that the sample was unpacked statically with upx -d.

The ELF section headers are stripped. The program still loads from its segments, but symbol names are gone and section-based tools have no section table to work from. The executable segment measures 7.997 bits of entropy per byte, consistent with packing or encryption. A valid gzip magic at offset 0x12626 marks a candidate embedded payload, which the pipeline flagged for separate carving and analysis.

The sample encrypts 21 configuration strings with a custom ARX+LFSR stream cipher at 0x13938, keyed by 16 bytes at .rodata 0x7484d, and decrypts each string just before use and re-encrypts it immediately after. The findings note that a memory dump of the process shows these strings as ciphertext (confidence 0.9, T1027). The consensus round verified the algorithm, mode and key. A separate block holds 14 configuration strings that decode under the single-byte XOR key 0xb6.

What the 23 recovered endpoints include

The 23 endpoints recovered statically, one on each of 23 hosts, include the resolver contract and the addresses 1.1.1.1, 1.0.0.1 and 149.112.112.112. The second decompiler backend agreed on twelve of the 23. The report keeps the nine JSON-RPC providers and four DoH resolvers off the blocklist as abused third-party infrastructure.

The C2 host 8[.]8[.]8[.]8 also appears in four other analysed captures, which the findings take to mean the sample belongs to a wider campaign rather than a one-off.

The on-chain IP list and the undecoded handlers

The next steps are to decompile the handlers for opcodes 12, 13, 15 and 18 and enumerate the option-TLV keys, and, in analysis outside the static lane, to find which IPs the ENS record currently returns and how the sample times and retries its connections at runtime.

Family
unclassified
First seen
November 15, 2026
Vector
Runs as a ddos-bot; the entry vector is not established by static analysis
Format
185 KB arm ELF 32-bit LSB executable
VirusTotal
20/75 engines: trojan.mirai/abtrojan
Tags
arm · ddos-bot · elf · https
Sample
By request. Email security@kinryu.sh

SHA-256

  • 66a48ccc7253f7ed086988f72f57a8f24bd0b722222ba62533e610e4c9e70fef as captured
  • 95a3c5a49abbd3d8bd686fcb8c68fe7318277acab933b6c178a11d592ebdab4c unpacked payload

Analysis performed using an automatic malware analysis pipeline using Binary Ninja

← All captures