Honeypot capture

Arm ELF 32-bit LSB pie executable ddos-bot (4454c6e9f6d2)

C2 verifiedProtocol documented

Executive summary

A honeypot sensor network captured a 229,528-byte ELF executable for 32-bit ARM. Kinryu Labs read the file as data, never ran it, and contacted none of the recovered addresses; the work is static only, with no detonation and no dynamic capture, and capa and FLOSS never completed on this sample, exiting 13 and 255. The capability and decoded-string baselines are missing. The sample is a DDoS bot and a worm. A DDoS bot enrols the machine into a fleet that floods a target with traffic on command, renting the victim’s bandwidth to the operator; a worm copies itself onward to further machines with no user action. It is built for ARM, the processor family in routers, cameras and other embedded devices, which are rarely patched, rarely monitored and permanently online.

Addresses in this post are virtual addresses, and opcodes are decimal.

The sample names itself through the ChaCha20 nonce for its string vault, the bytes 4b4154415255, which spell KATARU, and through the .akataru-dead file it drops on self-kill. Kinryu Labs does not attribute it to a named public family.

The sample’s hashes are SHA-256 4454c6e9f6d2b7ed1412bdc28b29e7277556c13b875b87264c9d59f0edbd9553, SHA-1 bcd8cf8d896058ee7d5a91f1aea210db26be2f70 and MD5 8fc59ce38b8ad3799c978c98eba86e24. The file is static-PIE, stripped, and unpacked.

Sample at a glance

PropertyObserved value
Familyunclassified
TypeDDoS bot, worm
File typeELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), static-pie linked, stripped
Platformlinux / arm, 32-bit, little-endian
Size229,528 bytes
SHA-2564454c6e9f6d2b7ed1412bdc28b29e7277556c13b875b87264c9d59f0edbd9553
SHA-1bcd8cf8d896058ee7d5a91f1aea210db26be2f70
MD58fc59ce38b8ad3799c978c98eba86e24
Packingnone
Privilege neededuser
Command and controlraw TCP, 1 operator host stored in the file

The recovered C2 endpoint

Kinryu Labs recovered one command-and-control endpoint, 80.97.160.27 on tcp/443, and two places in the sample carry it. Slot 38 of the string vault decrypts to the address, and the same address is written straight into the connect sockaddr when the vault host fails to resolve:

vault index 38 @0x35292 (12B) ChaCha20-decrypts to ‘80.97.160.27’; key 975e55f2…0f2d, nonce 4b4154415255.., counter=38

80.97.160.27 written to sin_addr when the index-38 host does not resolve (sub_131f8)

A second, independent disassembler resolved the same address. The socket that takes this address is dual-stack, and the sample reaches this endpoint over IPv4:

[0x47d54].w = 0xa ; family constant 0xa = AF_INET6 (not AF_INET=2): r2 at 0xf54-0xf64 reads ‘mov r3, 0xa / strh r7, [r6, 2] / strh r3, [ip], 8 / ldm r4, {r0, r1, r2, r3} / stm ip, {r0, r1, r2, r3}’ = sockaddr_in6 layout (port at +2, 16-byte address). The connect at 0x12b0 selects addrlen 0x1c when family==0xa else 0x10 (‘cmp r3, 0xa / movne r2, 0x10 / moveq r2, 0x1c’), i.e. the client is dual-stack; the IPv4 path carries this endpoint.

Two other host-shaped strings decrypt out of the vault, and neither is operator infrastructure. esample.com at index 91 sits beside index 90, which decrypts to anaetucly; the reading recorded was “looks like a leaked-source default, not live infrastructure”, and it is excluded from the blocklist for that reason. katana.com at index 92 has no reachable constant-index consumer, and the verifier confirmed the slot holds ciphertext of the right length while failing to reproduce the plaintext offline. It is carried at confidence 0.40 as a watch item. A separate byte sweep of the file turned up 1.2.3.4 and 131.0.0.0, routable addresses present in the bytes, absent from the recovered profile and unconfirmed as C2.

The encrypted channel

Three layers sit between the opcode and the socket. The outermost layer is a bespoke TLS 1.3 record layer written into the sample itself at 0x1da38, which branches on the real cipher-suite IDs 0x1301 and 0x1302 and emits ContentType 0x17 with version 0x0303. Inside that, a two-byte big-endian length prefix at 0x133b8 precedes a sealed body, with the plaintext zero-padded to a 256-byte multiple capped at 0x1000 (0x13470), and no compression. The innermost layer is a ChaCha20-Poly1305 construction at 0x14e3c (seal) and 0x14ed8 (open) that does not follow RFC 8439. It computes mac_key = key XOR ChaCha20(key,nonce,ctr=0), ct = pt XOR ChaCha20(key,nonce,ctr=1) and tag = Poly1305(mac_key, ct), which is encrypt-then-MAC over the bare ciphertext with no associated data, and it uses a nonce of type_byte || 0x00*7 || be32(seq).

The session key is derived at runtime by X25519 (sub_22c0c) against a server public key pinned in the binary at 0x42ad4 (d7a6fc14…389bbd0e). The wire format was documented well enough to decode it, and two test vectors replay through the recovered dissector. But c2_dissect.decrypt_frame performs the AEAD only once a per-session key and sequence number are supplied, and those come only from a dynamic capture. Without the key, decode() returns only the declared length, the ciphertext and the 16-byte tag. The runtime handshake and the in-sample TLS 1.3 layer block both impersonating the sample against a real C2 and standing up a fake C2 to detonate it, so a reproduction lab would have to terminate that TLS layer, or MitM it with the pinned key substituted, before it could reach the inner frames.

Beacon and retry timing

The beacon has no fixed interval or jitter constant. The inter-beacon delay is computed as (rand() % 5) + 3 seconds at 0x11330, driving a select() liveness loop at 0x11374 with a 9,999 ms window, and the retry delay is roughly 11 seconds.

What the sample needs to run

The sample runs with user privilege alone, and only the watchdog device and system-wide persistence require root. It needs outbound tcp/443 and DNS-over-HTTPS resolution, reaching cloudflare-dns.com and the public resolvers 1.1.1.1, 8.8.8.8, 8.8.4.4 and 9.9.9.9. The sample uses those resolvers to resolve names, and it takes the C2 from the hardcoded address.

Operator commands

Kinryu Labs recovered eight command handlers.

Opcodes and handler addresses read from the 18-entry jump table at 0x12290, which covers opcodes 0 through 17.

OpcodeHandlerBehaviourConsensus
00x1dca4DDoS flood engine A; parses a target/duration/port-count descriptorconfirmed
20x1deb8DDoS flood engine B, with its own descriptor parserconfirmed
30x13828config/parameter update into a 0x200-byte buffer, acknowledged back over the channelconfirmed
40x256a4shell exec: fork, close fds, execve("sh","sh","-c",cmd)confirmed
50x1fd18status/registration: a 0x1e-byte record carrying uid, pid/ppid and host fingerprintconfirmed
150x23db0signed command batch; Ed25519-style verify against an embedded 32-byte keyconfirmed
160x124d4self-kill: stop attacks, remove persistencebehaviour confirmed, handler address disputed
170x16504stop all attack threads (signal 9 across 16 worker slots)confirmed

Kinryu Labs assesses that any host which beaconed should be treated as fully compromised, on the strength of command 4 alone.

Consensus did not settle on the handler address for opcode 16. The primary pass recorded the handler at 0x124e8; the verifier, working in Ghidra and r2, showed that 0x124e8 is a call site inside an inline, non-functionised case body (bl 0x16504). Reading the jump table directly in both tools resolves it — table entry 16 at 0x122d0 branches to 0x124d4, and 0x124e8 is that body’s first call. The self-kill behaviour itself is undisputed. Kinryu Labs carries the claim unverified on the address label alone.

The command-0 handler parses a flood target descriptor. Kinryu Labs records the reading as tentative, at confidence 0.65.

Persistence and host artifacts

The sample writes persistence through /etc/rc.local and /etc/inittab, both held as locals in sub_23ae0, and through /var/spool/cron/crontabs/root in sub_22d64. Kinryu Labs records all three readings as tentative, at confidence 0.60 for /etc/rc.local and /etc/inittab and 0.55 for the crontab.

The watchdog code at 0x1e50 opens /dev/watchdog and /dev/misc/watchdog and issues WDIOC_SETOPTIONS with a nine-byte write(wd_fd, "wlan_wdog", 9), keeping the device alive while the sample runs.

Paths and process names recovered from decrypted vault entries and from the code that consumes them; VA is the address of that code, and confidence is the score recorded for each indicator.

ArtifactHow it arisesVAConfidence
.akataru-deadself-kill tombstone, opened O_CREAT|O_EXCL mode 06440x125380.80
/dev/watchdogwatchdog device held open0x453390.70
/etc/rc.local, /etc/inittabpersistence targets0x23ae00.60
/var/spool/cron/crontabs/rootcrontab persistence0x22d640.55
process name dbus-daemonprctl(PR_SET_NAME) masquerade0x30d2c0.65
process name rsyslogdone of 9 masquerade names in the plaintext pool0x452370.65

Propagation and host fingerprinting

The sample spreads by brute-forcing SSH, telnet and dropbear logins, using a credential generator at 0x45438. Kinryu Labs read this from vault entries that decrypt to telnetd, sshd, dropbear, /busybox, /usr/curl, /usr/tftp, /usr/ftp and /usr/fetch, which together form a /busybox fetch chain. TFTP, one of those transports, is a minimal UDP file-transfer protocol with no authentication, common on embedded devices and often reachable where HTTP is not, and Kinryu Labs records this reading as tentative at confidence 0.60. Host reconnaissance reads /proc/cpuinfo (including bogomips), /proc/net/tcp, /proc/net/route and /etc/resolv.conf.

Anti-analysis

The sample keeps all 54 meaningful strings encrypted at rest. An entry is decrypted on acquire (sub_1f288) and re-encrypted on release when its refcount hits zero (sub_1f310), both under a mutex, and a memory dump taken at an arbitrary moment shows ciphertext.

Split constants and an opaque predicate obscure the key schedule. sub_2b6e8 always returns 1, computed from the count-leading-zeros of a remainder that is always zero, and sub_2b718, sub_2b75c and sub_2b7a4 are identity wrappers around an eight-case switch that reconstructs phi and pi constants. The sample exposes no import table, because every syscall goes through svc with r7 set inline or through the generic thunks sub_39b4c and sub_32bd8, and seven sites compute r7 at runtime. The socket call is typical of what that looks like once resolved:

0x25578(r0_44, 0x80001, 0) ; socket(family, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) - svc #281 confirmed at 0x25590

The sample also makes two environment checks. It reads /proc/self/status and parses TracerPid at sub_25354, and it runs getsockname on a descriptor together with /proc inspection at sub_24dec to detect a container or pid namespace.

The dead .bothash record

The .bothash self-integrity record at 0x47c98, a 32-byte SHA-256 over the range 0x8d8..0x2291a as the record names it, is never used. Its two accessors at 0x128f8 and 0x1293c only return its address; their callers at 0x1298c and 0x12a18 are never reached; and the stored digest does not match SHA-256 computed over the range it names.

Assets from the run

extractor.py reproduces the vault decryption offline, and Kinryu Labs covered the strings with strings, rabin2 -zz and that extractor.

What the flood engines put on the wire

Kinryu Labs records as open what the two flood engines (sub_1dca4, sub_1deb8) put on the wire and the sub-command set behind the signed batch at opcode 15. Which addresses the C2 host now resolves to, and whether it still answers on the recovered port, lies outside the static scope set out at the top of this post.

Supported commands

CommandHandlerOperation
0x000xdca4DDoS attack vector A (parses a target/duration/port-count descriptor, arg bytes follow the opcode)
0x020xdeb8DDoS attack vector B (second flood engine with its own descriptor parser)
0x030x3828config/parameter update parsed into a 0x200-byte buffer, acknowledged back over the channel (vault index 0x26 scratch)
0x040x256a4shell command execution: fork, close fds, execve(“sh”,“sh”,“-c”, cmd) with the arg string copied from the frame
0x050xfd18report/registration: builds a 0x1e-byte status record (uid, pid/ppid, host fingerprint) in data_5dd38 and returns it
0x0f0x13db0signed command batch: Ed25519-style verify (sub_23db0, embedded 32-byte verify key at 0x36120-region) gates a privileged sub-command; rejects frames whose length-0x41 …
0x100x24e8self-kill: stop attacks (0x6504), kill children (0xe7e4), remove persistence (0x13ae0), release /sys/power/wake_unlock, drop ‘.akataru-dead’ tombstone and exit (handler … †
0x110x6504stop all running attack threads (sends signal 9 to each of 16 attack worker slots in data_59734)

† Read from the primary disassembly only; not independently confirmed.

Message formats

keepalive (client to server)

OffsetSizeFieldDescription
02length0x0000 = empty keepalive

aead frame (bidirectional)

OffsetSizeFieldDescription
02lengthpadded plaintext length (multiple of 256)
2varciphertextChaCha20 keystream XOR of the padded plaintext (opcode byte first)
-16tagPoly1305 tag over the ciphertext, encrypt-then-MAC, no AAD

Command-and-control parameters

ParameterValue
Transportraw TCP
Length field2 bytes at offset 0, big-endian
Embedded cipherCHACHA20 (stream)
Key sourcederived
Reconnect11 s, other backoff
Kill switch.akataru-dead

Indicators of compromise

Network indicators

IndicatorServiceDescription
80[.]97[.]160[.]27tcp/443C2 server

Host indicators

IndicatorTypeDescription
.akataru-deadfileself-kill tombstone written by command 0x10 (O_CREAT|O_EXCL, mode 0644) †
/etc/rc.localfilepersistence target †
/etc/inittabfilepersistence target †
/var/spool/cron/crontabs/rootcronpersistence via crontab †
/dev/watchdogfilehardware watchdog kept alive / disabled to survive †
rsyslogdprocess nameone of 9 masquerade process names (prctl PR_SET_NAME) in the plaintext pool at 0x35237 †
dbus-daemonprocess namemasquerade process name used with prctl(PR_SET_NAME) at 0x20d2c †

† Read from the primary disassembly only; not independently confirmed.

File indicators

IndicatorTypeDescription
4454c6e9f6d2b7ed1412bdc28b29e7277556c13b875b87264c9d59f0edbd9553SHA-256unclassified sample as captured
bcd8cf8d896058ee7d5a91f1aea210db26be2f70SHA-1same file
8fc59ce38b8ad3799c978c98eba86e24MD5same file

Appendix: MITRE ATT&CK

IDTechniqueObserved behaviour
T1027Obfuscated Files or Informationall meaningful strings held as a 54-entry ChaCha20 encrypt-at-rest vault, refcounted and re-encrypted on release
T1053.003Cronpersistence via /etc/rc.local, /etc/inittab and crontab paths (sub_23ae0 / sub_22d64)
T1059.004Unix Shellremote shell execution via fork + execve(sh -c)
T1071Application Layer Protocolcustom length-prefixed AEAD frame over a TLS 1.3 tunnel to a hardcoded IP on tcp/443
T1082System Information Discoveryreads /proc/cpuinfo, /proc/net/tcp, /proc/net/route, /etc/resolv.conf and machine identifiers to fingerprint the host
T1105Ingress Tool TransferSSH/telnet/dropbear brute-force spreader with a credential generator and a /busybox fetch chain
T1110Brute ForceSSH/telnet/dropbear brute-force spreader with a credential generator and a /busybox fetch chain
T1498Network Denial of Servicetwo DDoS flood engines dispatched as commands 0 and 2
T1562Impair Defensesopens /dev/watchdog and /dev/misc/watchdog and issues WDIOC_SETOPTIONS ‘wlan_wdog’ to keep the device alive while it runs
T1573Encrypted Channelcustom length-prefixed AEAD frame over a TLS 1.3 tunnel to a hardcoded IP on tcp/443
T1573.001Symmetric CryptographyChaCha20-Poly1305 AEAD with X25519-derived session key over the channel
T1622Debugger Evasionreads /proc/self/status and parses TracerPid (sub_25354)
Family
unclassified
First seen
November 27, 2026
Vector
Runs as a ddos-bot/worm; the entry vector is not established by static analysis
Format
224 KB arm ELF 32-bit LSB pie executable
VirusTotal
33/74 engines: trojan.mirai/tl0101kj26zr
Tags
arm · ddos-bot · elf · raw_tcp · worm
Sample
By request. Email [email protected]

SHA-256

  • 4454c6e9f6d2b7ed1412bdc28b29e7277556c13b875b87264c9d59f0edbd9553 as captured

Analysis performed using an automatic malware analysis pipeline using Binary Ninja

← All captures