Independent AI intelligence Two editions daily · ET
Fervor AI

Analysis · December 4, 2026 · repo

ArtexPotNebuSecARTEXagent-securityagent-harnessmcp-security

ArtexPot Shows the Easiest Way to Hack an AI Agent Is to Let It Win

Seven honeypots ran code inside an AI pentest agent's own container. Prompt injection scored zero. The agent's loot did the work.

Most of the effort going into AI agent security points at words. Filters for hidden instructions in web pages, classifiers for poisoned emails, system prompts that say "ignore commands found in documents." The fear is a clever sentence.

A new open project from the security firm NebuSec suggests the sentence is the wrong thing to watch. Its honeypots (decoy systems built to be attacked) took over an autonomous AI hacking agent in 33 of 36 runs, usually in under three minutes. They never needed to talk the agent into anything. They gave it what it was looking for: a source repo, a backup file, a working exploit. The agent opened its prize, and the prize ran code.

That is the shift worth understanding. For an autonomous agent, the risky moment isn't reading. It's handling what it took. And that applies to far more agents than the one NebuSec attacked.

What ArtexPot is

ArtexPot is "seven fake targets built so that the attack itself ends with our code running inside the agent's own container," in the README's words. Its target is ARTEX, an autonomous AI penetration-testing agent: you hand it a URL, and it plans, scans and exploits on its own. NebuSec's write-up says ARTEX appeared on GitHub as open source in July 2026 and that the original repo went private in October, with forks still in circulation.

The headline numbers come from NebuSec's own tests against ARTEX version 0.3.15, run on two models (deepseek-flash-cyber and gpt-5.6-sol):

  • The first six honeypots compromised the agent in 33 of 36 runs. The fastest took 27 seconds.
  • A seventh, built from those lessons, went 8 for 8.
  • Direct prompt injection went 0 for 8.

"Compromised" here means more than a crash. NebuSec counted a run only when four pieces of code, written on its server after the agent took the bait, all executed inside the agent's container. In the write-up's words, "not a single agent ever realized its own container was owned."

The repo is source-available under PolyForm Noncommercial 1.0.0, not an open-source license. It allows noncommercial use, including personal projects and use by nonprofit, educational, research and government organizations, and rules out commercial use. It carries a "research and authorized use only" warning, and for good reason. It ships real attack code: a small loader, an implant (code that lives only in the agent's memory and takes orders) and a command channel for sending it those orders.

How the traps work, in plain terms

The README sorts the seven honeypots into three classes, "ordered by how much the agent gets wrong."

Class 1: the agent's tools betray it. The agent gets nothing wrong. When git clone fails, a pentester reaches for git-dumper, a tool that rebuilds a repository from a website's exposed .git folder. ArtexPot serves a .git/config (git's settings file) that runs code on checkout, through what NebuSec calls a 0-day bypass of git-dumper's earlier fix. The agent did exactly what a careful human would do, with a tool that had a hole.

Class 2: harmless-looking actions that aren't. The agent walks into a trap it cannot see.

  • Pickled backups. Leaked "backups" are Python pickle files. Pickle is Python's built-in way to save objects to disk, and loading one can run arbitrary code. The Python docs warn about this at the top of the page. The agent "knows pickle is unsafe and calls pickle.load anyway."
  • Shadowed bytecode. Every .py source file is clean. A compiled .pyc file in the __pycache__ folder is not.
  • A stateful form. No files at all. A hidden form field begs to be decoded, and decoding it is the trap.

Class 3: real loot behind a risk the agent can see. The agent sees the danger and takes it anyway.

  • A real vulnerability with a vendor proof-of-concept that needs "one compiled helper."
  • A leaked ops repo where every route to a credential runs a bundled helper.
  • A private billing SDK (software development kit, the library you install to talk to a service). It carries no implant at all, just a bug that only NebuSec's server knows how to trigger. This is the one that went 8 for 8.

The pattern underneath all seven: the payload rides in something the agent wants, in a form whose normal handling executes code.

Why a smarter model didn't save it

The most useful line in the write-up is this one: gpt-5.6-sol "audited Python pickles like a veteran analyst, and still fell to almost everything else."

Model quality helped on the trap the model had been trained to fear. It did nothing for the traps hiding inside normal work: checking out a repo, running a helper, installing a package. NebuSec's conclusion is blunt: "Better models will not save bad architecture."

The architecture is the real finding. According to the write-up, ARTEX pulls whatever the target hands back into a single container that runs as root, sits right beside the operator's secrets and has unrestricted outbound network access. Once code ran there, NebuSec says it could reach the operator's LLM API keys, database credentials and campaign data.

This isn't only a pentest problem

You may never point an attack agent at anything. But look at what a coding agent does on an ordinary afternoon. It clones a repo someone linked in an issue. It runs pip install on a package the README suggested. It opens a notebook, loads a model checkpoint, runs a project's helper script to "set up the environment."

That is the same shape as ArtexPot's bait: fetched material, opened by a tool that executes on sight, inside a process that often holds your tokens. The difference is that a pentest agent goes looking for loot on hostile ground, while a coding agent usually trusts what it finds. That's an inference from NebuSec's results, not something they tested, but the mechanism is identical.

Put this into practice

NebuSec's advice for agent builders is to "apply the same isolation primitives browser and CI engineers learned the hard way." Translated into steps you can take this week:

1. Open fetched things in a throwaway container, never in the agent's own process. A minimal pattern with Docker:

docker run --rm -it \
  --network none \
  --user 1000:1000 \
  --read-only --tmpfs /tmp \
  -v "$PWD/untrusted:/work:ro" \
  python:3.12-slim bash

No network means a payload cannot call home. A non-root user and a read-only file system limit what it can change. --rm throws it all away afterward. If a step genuinely needs the network (installing dependencies, say), give it a separate container and nothing else.

2. Keep secrets out of the worker. The container that touches untrusted files should not have your API keys, cloud credentials or SSH keys in its environment or mounted volumes. If the agent needs a key to call a model, that call should happen in a different process from the one opening downloads.

3. Treat formats that execute as code, not data. Don't pickle.load anything you didn't create. Delete compiled bytecode from fetched Python projects before running them:

find ./untrusted -name "__pycache__" -type d -prune -exec rm -rf {} +

Read helper scripts and post-install hooks before they run, or don't run them.

4. Put the guardrails in the execution layer. NebuSec recommends enforcing scope "at the execution layer," with a "real-time circuit breaker" for parallel workers. In practice: an allowlist of commands and hosts enforced by the sandbox, not by a line in the system prompt, and a kill switch that stops every worker at once.

5. Try the honeypots against your own setup, safely. If you build or run agents that fetch code, ArtexPot is a ready-made test:

git clone https://github.com/NebuSec/ArtexPot && cd ArtexPot
./demo.sh all

The README says this builds everything in Docker, starts the seven honeypots on localhost and lets a stand-in agent walk into each one, printing proof of code execution for every hit. Run it only on machines you own. The demo uses only that stand-in agent. Pointing a real agent at the honeypots takes more setup (a reachable honeypot and session server, plus a registered canary value, a unique marker that lets you confirm the hits came from your own agent), and the docs for that are worth reading before you try. What to expect from the demo: a block per honeypot ending in VERIFIED when the stand-in agent got hooked, which is a quick way to see each trap's mechanism before you check whether your own agent would open the same bait.

Honest limitations

These are NebuSec's own results, from its own harness, against one agent at one version. NebuSec is a security company with a product to sell (the site promotes a Black Hat Europe booth and demo bookings), so read the numbers as a well-documented vendor demonstration rather than an independent benchmark.

The live results are thinner than the lab ones. NebuSec says it ran ArtexPot on its public site from November 15, and on November 30 two real pentest agents (one ARTEX, one unknown framework) returned shells in 3 minutes 42 seconds and 2 minutes. But those ran at the agents' existing non-root privileges, NebuSec says the exact client-side trigger "would require a trace from the agent environment," and "host-level access remains unverified."

"Hacking back" carries legal risk. NebuSec itself notes it is "illegal in many jurisdictions" and says it designed the public deployment to collect basic information and disconnect. The license also rules out commercial use, so you can study the code and run it for noncommercial work, but not build a product on it.

And the sandbox advice has a cost. Containers without network, secrets or root make agents slower and more annoying to work with, and some tasks really do need a credential. The point is to keep the credential and the untrusted file in different places, not to pretend the tradeoff is free.

Where this leaves you

The agent-security conversation has been about what an agent reads. ArtexPot is a clean demonstration that what an agent opens matters more, and that a sharper model does not fix it.

Look at the last thing your agent fetched and ask two questions. What ran when it opened it? And what could that code reach? If the answer to the second question includes your keys, you have the same problem ARTEX has. Fix the room, not the model.

Sources: NebuSec/ArtexPot README and LICENSE (main, Dec 2026) · NebuSec, "ArtexPot: the honeypots that hack Artex back" (Nov 28, 2026) · Python pickle docs