Honeypot capture
mirai (arm7-loader-bruh)
Two command-and-control endpoints were statically recovered from a 4,764-byte ARM32 ELF loader of the Mirai lineage, so defenders can block the delivery addresses the operator used for that wave. The work was static: the sample was loaded as data, it was never executed, and no recovered endpoint was contacted or resolved. Both addresses — 102[.]220[.]160[.]204 and 94[.]154[.]43[.]101, each on tcp/1262 — sit as raw four-byte values in a ten-byte configuration block at 0x907c. Both also carry an agreement verdict from the second decompiler backend (Ghidra), which resolved the same two addresses on its own pass; the findings record that agreement as raising confidence that the addresses are real.
A loader is a small first-stage program that fetches and starts the second stage, which holds the capability the operator wants, and then exits. It carries none of that capability itself, and it has to name the infrastructure it fetches from in a form the device can resolve, so recovering a loader recovers the delivery addresses the operator used in that wave. The two architectures the set builds for are led by armv7, which the findings record as the signature of a campaign aimed at routers, cameras and other embedded devices, which are rarely patched, rarely monitored and permanently online. A honeypot sensor network captured the sample; it was analysed on 2026-10-16.
| SHA-256 | 778f1117477494cb6739c13aa67db11a329cea180354c1f3e55aacf1c8cbc961 |
| MD5 | fabb50f804b89d5814f9c212dc578dde |
| SHA-1 | fa0d06d123a900bb6a580fb1bf5e1aad14000229 |
| File type | ELF 32-bit LSB executable, ARM, EABI4, statically linked, stripped |
| Size | 4,764 bytes |
| Packed | no — 0 of 5 evaluable packer signals held |
The endpoints phases 2 to 5 missed
In phase 6 the pipeline read main directly and recovered the endpoints from the configuration block at 0x907c, where the port sits in network order ahead of the two addresses, annotated in the decompiler output as:
; +6 bytes 66dca0cc = 102.220.160.204— binja @0x907e
; +10 bytes 5e9a2b65 = 94.154.43.101— binja @0x9082
04ee 66dc a0cc 5e9a 2b65 0000 (independent second view)— binja @0x9078
The loader tries the two endpoints in order, primary then fallback, and stops at the first success:
sub_80c0(r11 /*sin_addr*/, r10, 4) ; r10 in {0x907e, 0x9082}, copied into sockaddr_in— binja @0x8504
r10 += 4; cmp r10, [0x86f0]=0x9086; bne 0x84dc ; endpoint loop over {0x907e, 0x9082}, tried in order— binja @0x8694
Phases 2 through 5 of the pipeline had reported the sample as having no C2 channel, for two compounding reasons recorded in the run: the endpoints survive in the binary as four-byte integers rather than strings, and a phase-3 heuristic mis-read two syscall-wrapper numbers because it scanned for mov r0,#imm while the socket and connect wrappers load their numbers from PC-relative literal pools. The second decompiler backend (Ghidra) re-derived the corrected socket (281) and connect (283) numbers from scratch in phase 9. The upstream artifacts carry explicit correction notices.
A configuration block resolves to 33 readable configuration strings under single-byte XOR key 0x2f, and the findings record that a chance decode does not produce 33 readable strings.
One pass, then exit
The sample prints AAA\n to stdout, evicts competitors, downloads, prints BBB\n and exits, in a single pass. The loader sweeps every PID from 2 to 8191 (0x1FFF), opens each /proc/[pid]/cmdline by path rather than through a directory listing, and sends SIGKILL to any process whose command line contains one of 41 embedded tokens — rival bot family names (sora, miori, dvrHelper, yakuza) alongside the fetch and exec commands used to install them (wget, tftp, chmod). A full sweep across other users’ processes needs root. The loader calls getpid and getppid and skips both, so the sweep spares itself and its parent. The fetch and exec names are match targets: the binary carries no execve, fork or reboot syscall to act on any of them, and it therefore does not run the stage it drops — execution is left to whatever dropped the loader.
The 41 tokens place this build in the Mirai ecosystem, and since forks copy each other’s lists, the specific fork behind it is unresolved.
The loader writes the download to a file named 2 in the current working directory, opening it O_WRONLY|O_CREAT|O_TRUNC with mode 0777 passed to open() rather than set by a later chmod, so the file is world-writable and executable from the moment it exists. The modules a finished bot would carry — bot, DoS, dispatch — are absent, as is any persistence, and the findings classify the sample on that basis as a single loader stage of a multi-binary set.
Table 1. The sample’s recovered capabilities are one download, one kill sweep, one file drop and two forms of process discovery. ATT&CK and MBC mappings were built by hand from the syscall table and the confirmed addresses, since capa has no ARM support. “Confidence” is the pipeline’s per-capability score. “In consensus set” records whether that specific evidence address was among the 10 claims submitted to the second decompiler backend (Ghidra); the three marked no are corroborated by the verified transport, kill and drop claims.
| Capability | ATT&CK | MBC | Offset | Conf. | In consensus set |
|---|---|---|---|---|---|
| Download next-stage payload (ingress tool transfer / C2) | T1105 | B0030 | 0x84c8 | 0.95 | no |
| Kill competing processes | T1562.001 | — | 0x86b0 | 0.90 | yes |
| Drop executable file (mode 0777) | T1222.002 | — | 0x85f0 | 0.90 | yes |
Process discovery via /proc | T1057 | — | 0x83f4 | 0.90 | no |
| Self/parent PID discovery (self-exclusion) | T1057 | — | 0x835c | 0.85 | no |
The pipeline identified two syscall numbers inside sub_8940 only tentatively, because 268 and 238 are absent from r2’s 44-entry ARM table, and it read them as tgkill/tkill from argument shape at a confidence of about 0.85. The two syscalls are C-runtime raise() support, reached only from a divide-by-zero path that is unreachable in this binary.
The protocol is five bytes out, a length prefix back
The client’s entire request is the five bytes arm7\n, the architecture tag for this build, sent immediately after connect(fd, sockaddr, 16) at 0x852c on a socket opened at 0x8514:
sub_8290(2, 1, 0) ; socket(AF_INET=2, SOCK_STREAM=1, 0); wrapper 0x8290 syscall nr from pool [0x82bc]=281— binja @0x8514
The server replies with a four-byte big-endian length, assembled at 0x85c4 and bounded to between 1 and 0x200000 (2 MiB), followed by that many raw bytes, read in chunks of at most 128 bytes. The exchange is a single request and a single response, after which the sample calls exit at 0x868c; there is no beacon and no sleep.
The transfer is plaintext end to end, because the download loop at 0x8610–0x864c copies socket bytes straight to the file untransformed, the crypto-constant searches (r2 /ck, /ca aes) came back empty, and rabin2 -I reports crypto false.
Both protocol messages are documented to the byte, and two test vectors replay through the recovered dissector, which shows the format is understood well enough to decode live traffic. The payload the real C2 serves is whatever the operator has staged at the time, may differ by connecting architecture, and lies outside this file, so the emulator serves an inert placeholder by default.
Block two addresses and hunt for a file called 2
The sample needs only user privilege and outbound tcp/1262 to one of the two addresses; denying that egress blocks it. Block 102[.]220[.]160[.]204 and 94[.]154[.]43[.]101 on tcp/1262. The network signature is a TCP client that opens tcp/1262 and immediately sends exactly arm7\n, which the run ships as a ready-made Suricata rule (detections/778f11174774.rules).
On hosts, the artifacts to look for are an executable file named 2 at mode 0777 in a service’s working directory, and unexplained SIGKILLs of other daemons. The two stdout markers carry 0.75 confidence and are precise about timing: AAA\n is written before the kill sweep and BBB\n only after a fully successful download, so a log carrying AAA with no BBB is read here as a run that swept the host and did not complete its fetch.
No host indicator carries verified: true, so the renderer did not build a host-based Sigma rule, even though the ./2 drop and the arm7 tag both score 0.90 confidence; both fall outside the consensus set. The behaviours themselves sit inside verified claims: the mode-0777 drop at 0x85f0, and the arm7 handshake as part of the transport.
Open questions
Which addresses the C2 host currently resolves to, and whether it still answers on tcp/1262, remains open. So does whether ./2 is executed and by what, along with the sample’s runtime timing and retry behaviour.
- Family
- mirai
- First seen
- November 11, 2026
- Vector
- Runs as a loader/dropper; the entry vector is not established by static analysis
- Format
- 5 KB arm ELF 32-bit LSB executable
- VirusTotal
- 4/75 engines: trojan.mirai
- Tags
- arm · dropper · elf · loader · raw_tcp
- Sample
- By request. Email security@kinryu.sh
SHA-256
-
778f1117477494cb6739c13aa67db11a329cea180354c1f3e55aacf1c8cbc961as captured
Analysis performed using an automatic malware analysis pipeline using Binary Ninja