Honeypot capture
Mips ELF 32-bit LSB executable loader (4685a9b9238f)
The sample in this report is a 3,536-byte, statically linked, stripped ELF for 32-bit little-endian MIPS. Its complete behaviour is one outbound TCP connection on port 2345 to a single hardcoded command-and-control (C2) endpoint, 176[.]65[.]139[.]41. C2 is the channel an infected machine uses to reach its operator. A honeypot sensor network captured the sample, and the pipeline analysed it statically and never ran it. The pipeline types the sample as a loader, which is a small first-stage program that fetches the second stage built for the machine it is running on, starts it and exits. A loader must name the servers it fetches from in a form the device can resolve. Its strings and code therefore contain the addresses the operator uses to deliver the second stage. The findings associate MIPS builds of this kind with campaigns aimed at routers, IP cameras and other embedded devices rather than at servers.
The pipeline classifies the sample as loader at a confidence of 0.60, which is below the 0.90 to 0.95 it assigns to the endpoint, transport, handshake and stream findings. The sample retrieves a remote byte stream after a registration handshake, but it hands those bytes to file descriptor 1 and does nothing further with them. It is a stage-1 fetch component, and whatever launched it consumes its output. As the report puts it, “a shell pipeline would make it a reverse shell; a loader would make it a downloader.” No family is assigned. The binary carries no string, build watermark, mutex or campaign identifier to cluster on, and no YARA rule set was available in the analysis image.
The work ran through an automatic pipeline built on Binary Ninja. Strings and structure came from strings and rabin2, with every indicator anchored to a file offset and corroborated by both tools. A headless decompiler disassembled and decompiled the executable sections, and Ghidra and radare2 independently confirmed claims in a consensus round. The analysis never contacted or resolved the recovered endpoint.
The six-syscall capability set
The analysis read all 14 functions in the binary, which occupy 2,992 bytes of .text, and all of them decompiled with no control-flow obfuscation. The program body at 0x4001c0 does all the work. It zeroes a 128-byte stack buffer, builds a sockaddr_in from three constants, calls socket(AF_INET, SOCK_STREAM, 0), connects, writes the one constant byte, and then loops read(sock, buf, 128) into write(1, buf, n) until read returns zero or less, finishing with close and exit(5). The largest function, at 0x4005c0, accounts for 46% of .text and is a size-optimised memset, called once to clear the receive buffer.
The sample’s entire operating-system interface is six thunks, for exit, close, connect, write, read and socket. All six route through a varargs dispatcher to the binary’s single syscall instruction at 0x400b58, which three independent methods located: a Binary Ninja linear sweep, a radare2 grep, and a raw byte search. The dispatcher’s callers are exactly the six known thunks. A system call with no thunk cannot be issued, and the program has no means to persist, access files, execute processes or dispatch commands. The binary contains no sleep or clock syscall and cannot implement a beacon interval, jitter or retry. The sample makes one connection and one pass.
The findings list stack-assembled strings as a residual risk because FLOSS and capa do not support MIPS and no automated pass for obfuscated strings ran. The findings describe this risk as bounded but do not record what bounds it. In a separate check, none of the five evaluable packer signals held.
Decoding the endpoint and socket type
The address is a single 4-byte configuration word in .data at 0x410c50, and the decompiler’s raw view of it is:
00000c50: b041 8b29 0000 0000 0000 0000 0000 0000 .A.)............
Read in network byte order, the bytes b0 41 8b 29 are 176, 65, 139 and 41. The code fetches the word through the global pointer and stores it into the socket address on the stack:
0x400208 lw $v0, -0x7fac($gp)
0x400210 lw $v1, 0($v0)
0x400220 sw $v1, 0x20($sp)
The address family and the port are set from immediates:
0x400214 addiu $v0, $zero, 2
0x400218 sh $v0, 0x1c($sp)
0x40021c addiu $v0, $zero, 0x2909
0x400224 sh $v0, 0x1e($sp)
Binary Ninja’s high-level view renders this as int16_t var_ac = 2 / int32_t var_a8 = data_410c50 / int16_t var_aa = 0x2909. The value 2 is AF_INET. The port is consistent with a little-endian halfword store: 0x2909 would write the bytes 09 29, which in network byte order give 0x0929, or 2345. A sweep of every address-shaped instruction immediate in .text found no other candidate. The .data configuration word is the only source of the address, and the sample has one endpoint and no fallback.
The socket type immediate at 0x40022c is 2. On MIPS, SOCK_STREAM is 2 and SOCK_DGRAM is 1, which reverses the x86 values, so the $a1 = 2 immediate selects TCP. The report lists byte order and these inverted constants as the two analysis hazards in the case. Both hazards arose in interpreting the binary, and the sample itself makes no attempt to resist analysis. The report states that both were handled explicitly and cross-checked. Separately, the configuration extractor recovered the endpoint, port and transport from the raw file independently of the decompiler.
The client sends one byte and receives an unframed stream
The client sends the byte 0x01 once, and that byte is the whole client side of the protocol. It carries no identifier, host fingerprint or version. The findings identify it as the sample’s strongest network signature, defined as a TCP connection to port 2345 whose first and only client payload is a single 0x01 byte. A Suricata rule keyed on this signature accompanies the report.
The server’s stream has no magic value, length field or delimiter, and neither direction is encoded or encrypted. rabin2 -I reports crypto false, and radare2’s /ck search found no crypto constant table. The receive path at 0x4002e0–0x400300 passes bytes through untouched. The write length is the value returned by read, and no instruction touches the buffer between the two syscalls. The findings assess the transfer as byte-exact.
Recovered C2 behaviour and indicators, with assessed confidence Confidence is the pipeline’s assessed value per claim. “Verified” marks claims confirmed in the consensus round. The findings’ capability table marks the handshake and stream rows verified, but its note says the capability rows were not re-submitted individually and carry their earlier-phase confidence.
| Finding | Offset | ATT&CK / MBC | Confidence | Verified |
|---|---|---|---|---|
Endpoint 176[.]65[.]139[.]41, tcp/2345, from the .data configuration word | 0x410c50 | — | 0.95 | yes |
| TCP connect-back on a non-standard port | 0x40022c | T1571 / B0030 | 0.95 | yes |
One-byte registration handshake (0x01) | 0x4002ac | B0030 | 0.95 | unclear |
| Pull server stream to stdout in 128-byte chunks | 0x400300 | T1105 | 0.90 | unclear |
| Family / type | — | — | 0.60 (loader) | — |
The channel is cleartext, so reassembling the server-to-client chunks of one captured session recovers the second stage the server delivered. In the report’s words, “a single capture exposes the next stage with no decryption required.” The documented wire format covers two messages, and both test vectors pass validate_protocol.py against the recovered dissector, c2_dissect.py.
Sample hashes
| SHA-256 | 4685a9b9238f64063b9e8834f168859f128a32489749570a6d8092a26975db01 |
| MD5 | 6dd632798973ee289ec8d0da3ad680c8 |
| SHA-1 | 603d578b529f62d902a486207323600c5a03e3c5 |
| ssdeep | 96:XakkHz/r+HSdDioOr3GNWKOwbDrO3aHh83NIeUC:VkHzKyAt3GNWKOwbDrTUx |
| Type | ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), statically linked, stripped |
The submitted filename was the sample’s own SHA-256 and offers no attacker-chosen name to track. The cryptographic hashes let a reader find the same sample in other repositories and sandboxes. ssdeep is a fuzzy hash that stays similar when a file is edited slightly and can match near-identical variants of the sample.
The delivery chain and the served stream
The binary does not record what the server sends, and the stream served by 176[.]65[.]139[.]41:2345 remains to be recovered from a captured session. Because the protocol has no identifier, nonce or version field, the findings state that a client can impersonate the sample to a real server. Nothing in the binary shows whether the server decides what to send based on source address, timing, or anything else outside that one byte. The accompanying emulator can stand up a server the sample will talk to and feed it an operator-chosen stream, but it cannot reproduce what the genuine server would serve. Whether that host still answers on 2345, and which addresses it resolves to today, are also open.
The analysis has not established how the sample is delivered and invoked, what consumes its standard output, or which family it belongs to.
- Family
- unclassified
- First seen
- November 15, 2026
- Vector
- Runs as a loader; the entry vector is not established by static analysis
- Format
- 3 KB mips ELF 32-bit LSB executable
- VirusTotal
- 4/75 engines: trojan.
- Tags
- elf · loader · mips · raw_tcp
- Sample
- By request. Email [email protected]
SHA-256
-
4685a9b9238f64063b9e8834f168859f128a32489749570a6d8092a26975db01as captured
Analysis performed using an automatic malware analysis pipeline using Binary Ninja