Stack Notes

AI servers mined by a botnet: checking your Linux box for PoeLLM

A botnet has taken over more than 3,400 self-hosted AI and developer servers since April, and it is still growing. If you run LiteLLM, Ollama, Gitea or Gotenberg at home, here is how to check your host, what to patch, and what a compromise looks like.

Stack Snack Crew

October 25, 2026 · 5 min read · Updated the same day: Stack Snack now flags the Kryptex pool ports

What happened

Lumen's Black Lotus Labs has been tracking a campaign it calls Canto Incognito. Its malware, PoeLLM, has hit more than 3,400 servers since April 2026, mostly in the US and Western Europe. At its peak, around 800 infected machines were active on a single day. Lumen reported in October that three of its control servers were still live and new victims were still joining.

The targets are services people put online after installing open-source AI and developer tools:

  • LiteLLM, the AI gateway, usually on port 4000. This is the main way in.
  • Gotenberg, a PDF conversion API, usually on port 3000.
  • Ollama and Gitea servers were among the victims too. Lumen did not say how those were entered.

For LiteLLM, the attackers use CVE-2026-42271, a command-injection bug in its MCP connection test endpoint. On its own the bug needs a valid API key. Horizon3 showed that paired with a Starlette bug, CVE-2026-48710, it needs no key at all. CISA added CVE-2026-42271 to its list of exploited vulnerabilities in June.

Once in, the malware installs two Monero-style miners, XMRig and Iron, pointed at the Kryptex mining service. The infected server then scans the internet, mostly ports 3000 and 4000, and attacks the next victims. Lumen also saw early attempts at SSH and login brute-forcing from infected hosts.

The name comes from how it finds its controller. The malware reads a poem in a GitHub repository and turns four of its words into an IP address. The operator edits the poem to move every infected machine to a new server, without changing the malware. It has done that 11 times so far.

Check what you expose

Start by listing what listens on all addresses, not just on localhost:

# listening TCP ports and the program behind each
sudo ss -tlnp | grep -vE '127\.0\.0\.1|\[::1\]'

Look for 4000 (LiteLLM), 3000 (Gotenberg, and many web apps), 11434 (Ollama). Gitea also uses 3000 by default. Ollama listens only on localhost unless you set OLLAMA_HOST=0.0.0.0 or publish its port in Docker. A port published with docker run -p 4000:4000 is open on every interface, and Docker's firewall rules can bypass ufw.

None of these services needs to face the internet. Put them behind a VPN such as Tailscale or WireGuard, or behind a reverse proxy that asks for a login, and remove any router port forwards for them.

Patch

LiteLLM 1.74.2 through 1.83.6 is affected. Update to 1.83.7 or later, and make sure Starlette is 1.0.1 or later, which closes the no-key path.

# pip install
pip show litellm starlette | grep -E '^(Name|Version)'

# Docker (use your container's name)
docker exec litellm pip show litellm starlette | grep -E '^(Name|Version)'

Update Ollama, Gitea and Gotenberg to their latest releases too. Lumen did not name the bugs used against them, so the latest release is the safe answer.

What a compromise looks like on the host

  • CPU you can't explain. Miners keep cores busy around the clock, usually as the same user the AI service runs as.
  • A new program you didn't install. Lumen's sample was an ELF file named libgcrypt, a real library's name used to blend in. Don't search by name alone.
  • A flood of outgoing connections. An infected host connects to thousands of addresses on ports 3000 and 4000, and sometimes 22.
  • Connections to the attacker's servers. Lumen lists the control servers and the Kryptex pool addresses in its public indicator file. Addresses change with every poem edit, so use the current list.

What Stack Snack shows you

Stack Snack watches the host itself. It doesn't need to know which bug the attacker used to see what happens next.

The CPU, first

The host CPU chart rises. On the host's Metrics tab, the per-service, per-container, per-program and per-user series show which one rose at that minute: your LiteLLM container or service, its user, and the miner program. That history stays after the miner is gone.

The miner alerts

SEC-044, Cryptominer command-line indicators, flags miner arguments such as a pool address, an algorithm choice or a wallet. SEC-045, Sustained process CPU with a mining indicator, fires when a process keeps nearly a full core busy for ten minutes and also shows a mining sign, for example miner arguments or running from a hidden or scratch folder.

The scanning

SEC-036, Possible network scanning, fires when one process holds 64 or more half-open connections, or 256 open connections to 128 or more different addresses on one port. That is the point where your server stops being a victim and starts attacking others.

The exposure

SEC-005, New TCP listener appeared, tells you when a new port opens on the host after its first baseline. That catches the day you, or a compose file, published LiteLLM or Ollama on all interfaces.

The mining pool

SEC-035, Connection to a suspicious remote port, now includes the Kryptex pool ports 7029 and 8029 that PoeLLM's miners use. A connection to either port raises an alert, and it also counts as a strong mining sign for SEC-045, so a busy miner is flagged even when it was started without miner flags.

The attacker addresses

Add Lumen's control server and mining pool addresses as your own indicators on the Threat intel page. SEC-078, Connection with a known malicious IP, then flags any connection to them.

What it won't tell you

  • Stack Snack doesn't check LiteLLM or Ollama versions. It checks distro packages against Debian, Ubuntu and Alpine advisories, and these tools ship outside those lists. Check the versions yourself, as above.
  • A miner configured by a file instead of command-line flags gives SEC-044 nothing to match. SEC-045 still fires when it talks to a known pool port, and the charts still show the CPU.
  • A pool on a port outside Stack Snack's list goes unflagged by port. Add the pool addresses on the Threat intel page as well.
  • Stack Snack takes a process snapshot every 30 seconds. The exploit itself is over in a moment; what it sees is what stays running afterwards.
  • Without the optional privileged helper, Stack Snack can't read the executable paths of processes owned by other users, or connections inside bridge-network containers. Turn on the helper for the full picture.

If you were hit

  1. Take the service off the internet, and stop the miner processes.
  2. Update LiteLLM and Starlette as above, and the other services to their latest releases.
  3. Treat every API key the service held as stolen. LiteLLM sits in front of your model providers, so rotate those provider keys and the LiteLLM master key.
  4. Check for persistence: cron jobs, systemd units and authorized_keys. Stack Snack's SEC-001, SEC-002 and SEC-029 cover these paths.
  5. If the service ran as root, or in a container with the Docker socket mounted, rebuild the host from a clean install.

Sources

Want this watching your stack?

Every signal in this post comes from the Stack Snack agent and console. Install the agent on a Linux host and see what it sees.