cybersecurity Request an audit

Malware analysis / loader / Mirai, cozykoala campaign

The 1 KB loader that botnets type into cameras

When a camera has no tool to download a file, the botnet writes one: a program of about a thousand bytes, typed in through Telnet, whose only job is to fetch the real malware. We captured five builds and read them instruction by instruction.

The short version

  • It is a complete program of 1,152 to 2,016 bytes, small enough to be typed into a device through a Telnet session.
  • It does one job: fetch the real malware, the cozykoala Mirai bot, from 103.153.68.126 and save it as .rrfxd.
  • It exists because many cameras and recorders have no download tool. With this loader the attacker needs nothing on the device except a shell that can write bytes.
  • We captured five builds, one per processor family, on 30 November 2026.

How it gets onto the device

After a Telnet login with a factory password, the attacker's script reads the first bytes of a program already on the device to learn its processor. It then sends the matching loader as a series of echo commands, each writing a few dozen bytes to a file named .d. One of our sessions took 298 commands from login to the end. The last line makes the file runnable, runs it, and starts what it fetched:

/bin/busybox chmod +x .d; ./.d; ./.rrfxd telnet

On one of our decoys a transfer broke off early: the first 1,088 bytes of the MIPS build arrived and the session ended. That fragment is on our list as a file of its own.

What is inside

  • File header, 176 bytes
  • Code, 684 bytes
  • Text, 60 bytes
  • Tables, 232 bytes

The program uses no system library. It talks to the Linux kernel directly, which is what keeps it this small. The ARM v5 build, read instruction by instruction, does this:

  1. Prints a short marker word, so the attacker's script sees that the program started.
  2. Opens the file .rrfxd for writing, creating it with every permission set (mode 777).
  3. Opens a TCP connection to 103.153.68.126, port 80. The address is not stored as text: the four numbers 103, 153, 68 and 126 are loaded one by one into the processor's registers and joined at run time, so a search of the file for an IP address finds nothing.
  4. Sends one line, GET /arm5 HTTP/1.0, followed by an empty line. No Host line, no browser name.
  5. Reads the reply one byte at a time until it has seen the empty line that ends the headers, then copies everything after it into .rrfxd, 128 bytes at a time.
  6. Closes both and exits. It never runs the file it fetched; the shell line above does that.

The five builds

ProcessorBytesRequestSHA-256
ARM v41,152GET /arm4 HTTP/1.0ae9afd87c202aadd1f5fe2987ec929ca8905b9f09ca28ac130c0a6bc27ff6801
ARM v51,152GET /arm5 HTTP/1.016820191967cc1e8f88e64a02f569435222530072af268e986b94912ace8b68a
ARM v71,472GET /arm7 HTTP/1.0e4fc09d4cca11db7f59b23bab410d0556a675a52b0e8ca32c3e047d5cc5a4016
MIPS, big-endian1,984GET /mips HTTP/1.0a79e60816545cb60ae5256ce93c7a7ec02fe46c11d06a4664d5b92100018802f
MIPS, little-endian2,016GET /mpsl HTTP/1.0753c88f2bac97f5c783efd5a9750a178b0c4ae5afd960c40fd350f303d697442

None of the five was on MalwareBazaar when we captured them.

How to spot it

  • On the network: a camera, recorder or router that sends a web request with HTTP/1.0 and no Host line to a bare IP address, for a path that is the name of a processor (/arm5, /mips, /mpsl).
  • On the device: hidden files named .d and .rrfxd in a writable folder such as /dev/shm, /var/tmp or /mnt. They disappear on restart.
  • At the firewall: the download server is on our free firewall feed, with Suricata and Snort rules.

How we know

The files were typed into our own decoys by infected devices. We never ran them and never connected to the server with them: everything above is read from the files' processor instructions. The reverse engineering was done with Claude Mythos, Anthropic's AI model, inside our own tooling: it read the file's processor instructions one by one and wrote this page from the raw file and the session records.