TL;DR: A RedTail sample from my honeypot pipeline ran as root on my Proxmox host instead of in the detonation VM, for about six hours. The most likely cause was an AI agent that took a shortcut over SSH. I had a choice at that point: pull the power and wipe, or turn it back on with the malware still live and see what I could learn. I chose the second. This is what came out of it — the operator pushing a self-update to the fleet in real time, both binaries captured, a capability-delta against the leading 2024 public write-up, and the lab rebuild that followed.

What happened

My lab pulls samples captured by SSH honeypots, plus related URLhaus samples, into an archive on a Proxmox host. The rule was simple: bytes get stored on the host, and they only execute inside a snapshotted detonation VM, through a wrapper script.

On 5 November one of those samples, RedTail build f0aa83bb…, executed directly on the hypervisor as root. It ran from about 14:48 to 20:51 UTC at roughly 180% CPU with 2.4 GB resident. I noticed when the host went under load — triage showed a process pinned to one core under a plausible-looking name, but from a path the archive should never have launched from. At that point the choice was wipe or instrument. I chose to instrument.

The audit afterwards:

  • All three detonation scripts were clean. Each one rolls back the VM, copies the sample in, and runs it inside the guest.
  • The first execution came from an SSH session opened from my workstation. Root’s shell history had no reference to the sample path, and the journal showed several rapid sessions in that window. That looks like a script or an agent, not me typing.
  • The most likely culprit was an AI-agent workflow doing sample analysis that reached for ssh root@hypervisor instead of the detonation wrapper. I never pinned down exactly which one, and I’m saying so here rather than guessing.

After the first run, RedTail persisted itself through root’s crontab and re-armed on every reboot.

What did hold: the hypervisor’s SSH key was never trusted by my workstation, and the workstation only accepts key auth. The infection didn’t move sideways.

What RedTail did while it had root

Since it was running anyway, I put a capture stack on the box: a renamed tcpdump, bpftrace for exec/connect/kill/ptrace/memfd events, and direct /proc sampling, all starting before cron on boot. Here’s what came out of it.

It rotated its disguise on every launch. Its process name showed up as php-fpm: pool www, apache2 -k start, nginx: worker process, and /bin/mariadbd across four runs, set via prctl(PR_SET_NAME) plus an argv overwrite.

It killed analysis tools by name. tcpdump died the instant it started, even with plenty of free memory. The fix was renaming the binary (.sysd-helper) and capturing on the upstream bridge, where the sample has no visibility. Lesson: on-host packet capture of RedTail doesn’t work. Capture from outside the victim.

It only resolved names over DNS-over-TLS. Its entire network footprint was TCP/853 to 13 hard-coded public resolvers (Google, Cloudflare, Quad9, Njalla, opennameserver.org and others), cycled round-robin. That beats passive DNS monitoring on the victim network. These resolvers are not operator infrastructure, so don’t block-list them as IOCs.

It enumerated every user’s crontab, including service accounts, shortly after boot.

It probed a fixed internal address, http://10.80.40[.]20:443/api/device/info, on every launch. That target is compiled in and has nothing to do with the victim’s network.

The operator upgraded it while I watched

The best part of a bad night: partway through the six hours, the binary on disk changed.

BuildSHA-256What it is
Beforef0aa83bbbd2c75e2f71ec16029ee5fcfad59f3a8efa30a500b815f0f6c18d987Plain XMRig miner (XMRig, Monero and stratum strings only)
Aftera0f85de525c9f1126dd701b4b9a50237ef6dd1605836da64e983e49a2c50d268Miner plus an in-process SSH worm (linked libssh: chacha20-poly1305, ssh-ed25519-cert-v01, kex-strict, …)

The update came from RedTail’s own dw.* download hosts. So the operator pushed a worm-capable build out to the bot fleet in early November 2026, and my hypervisor was one of the bots that received it. Because the worm does SSH in-process, it never spawned an external ssh. If you’re hunting for it, look for outbound :22 from a process that isn’t ssh.

A build path leaked in the binary, /var/build/redtail/scripts/x86_64-build/, along with a framework name, libredtail (already public as the campaign’s libredtail-http user-agent).

Infrastructure

Akamai’s May 2024 RedTail write-up (PAN-OS CVE-2024-3400) documented the operator’s private pool proxies on port 2137, with proxies.identitynetwork[.]top as its one domain. The later insanecppdev / insanitycpp / internetshadow / identities.network proxy hosts are public too: Nerd Herd’s April 2026 analysis lists all of them on port 2137.

For the 2137gang names, I searched the web on 27 November 2026 for 2137gang, p.2137gang, dw.2137gang and the five domains, and read Malpedia’s RedTail entry, the Akamai write-up and the Nerd Herd report. I found no public write-up that mentions the 2137gang brand or the five-TLD rotation. If I’ve missed one, tell me.

What my capture shows is a 2137gang brand across five TLDs, split into p.* (pool) and dw.* (download) tiers. “21:37” is a Polish internet meme, and port 2137 shows up on every stratum entry.

Rebuilding the lab

I decided not to clean the hypervisor. Six hours of root by a sample that kills tools and updates itself means I can’t scope what changed. Sample bytes and honeypot data went to a removable ext4 drive, and the hypervisor, every VM on it, and the cloud honeypots were all wiped. I also retired the honeypot IPs rather than reusing ones scanners already knew.

The new design rests on one principle: no bare-metal machine ever touches sample bytes. That covers parsing as well as execution, because rizin, radare2, binwalk and Ghidra all have CVE history on malformed input.

Layer 0  Proxmox host      runs VMs. No tools, no scripts, no cron, no sample bytes.
Layer 1  admin VM          control plane: Proxmox API token, DBs, evidence vault. Never executes samples.
Layer 1  analyst VM / RE   static RE in a container sandbox. Snapshotted, disposable.
Layer 2  detonation VM     the only place a sample runs.

The detonation VM has two NICs:

  • Management NIC on its own VLAN, used only to push samples in and pull evidence out. The router firewall blocks it from the internet.
  • WAN NIC: a USB-Ethernet adapter passed through to the VM and cabled straight into a dedicated router port in its own firewall zone. Inbound is dropped, it can only forward to the WAN, and it’s dropped toward every other lab zone. It never crosses the managed switch, so even a VM escape lands on one physical port.

Rules in infrastructure, not in memory

The lesson I care most about: a rule you have to remember will get skipped at 2am. A rule enforced by the wrapper won’t.

Every detonation now goes through one wrapper:

  1. Roll the VM back to its clean-baseline snapshot.
  2. Run seal-canary inside the VM. It’s a small binary that tries 21 ways out (lab subnets, management hosts, the hypervisor, DNS, and so on) and records any that succeed.
  3. If any probe gets through, the wrapper refuses to run the sample and shows which one broke.
  4. Only then copy the sample in and run it under capture.

Why run the canary every time when a snapshot restores the VM? Because the seal depends on things the snapshot doesn’t hold: router firewall rules, bridge config, kernel and virtiofs behaviour, and new VMs appearing on shared bridges. A canary that passed last week proves nothing about tonight.

For anyone running AI agents in a lab like this

The agent had SSH to the hypervisor because I had SSH to the hypervisor, and it inherited my access. Here’s what changed:

  • Agents get task-scoped access. The analysis path can reach the RE sandbox and the evidence vault, and nothing that can execute a sample outside the detonation VM.
  • Execution is only possible through the wrapper. Archived samples aren’t stored executable, so a stray ./binary fails.
  • Standing rules for agents live in project instructions they load every session (“never execute on the hypervisor or admin VM”), and the infrastructure enforces the same rules. The instructions explain why, and the infrastructure is what stops it.

If you’re building your first malware lab: every rule you carry in your head is a rule your agents don’t have. Mine knew the lab I’d described to them, not the one I’d actually built. Write the rules down, then build the lab so it doesn’t matter whether anyone read them.

The infrastructure work this incident seeded — the hosting chain behind the self-update tier and the ecosystem around it — is a longer story currently with journalists. If it lands in print, I’ll link to it from here.

IOCs

# RedTail builds
f0aa83bbbd2c75e2f71ec16029ee5fcfad59f3a8efa30a500b815f0f6c18d987   miner-only
a0f85de525c9f1126dd701b4b9a50237ef6dd1605836da64e983e49a2c50d268   miner + SSH worm

# Pool / download tiers (defanged)
p.2137gang[.]net  p.2137gang[.]pl  p.2137gang[.]shop  p.2137gang[.]st  p.2137gang[.]store
dw.2137gang[.]net dw.2137gang[.]pl dw.2137gang[.]shop dw.2137gang[.]st dw.2137gang[.]store
dw.insanecppdev[.]com  dw.insanitycpp[.]cx  dw.identities[.]network  dw.internetshadow[.]org
proxies.insanecppdev[.]com:2137  proxies.identities[.]network:2137   (previously public: Nerd Herd, April 2026)

# Host artefacts
build path string: /var/build/redtail/scripts/x86_64-build/
string in memory:  /etc/systemd/system/your-redtail.service
persistence:       root user crontab entry pointing at the dropped binary
behaviour:         TCP/853-only egress to public DoT resolvers; process names rotate between
                   php-fpm / apache2 / nginx / mariadbd; kills tcpdump/strace/gdb by name