opensourceprojects.dev

A broadsheet for software that doesn't ask for your email

Seven honeypots that get code running inside the attacking AI agent
GitHub RepoViews5

Project Description

View on GitHub

Honeypots That Hack the Hacking Agent Back

You've probably seen the wave of autonomous AI pentest agents that take a URL and attack it without anyone steering. The obvious question is: what happens when one of those agents walks into a target that's been built to fight back? ArtexPot is a set of seven fake targets designed so that the attack itself ends with the honeypot's code running inside the agent's own container.

What It Does

ArtexPot is built around ARTEX, an autonomous AI pentest agent that you point at a URL and let loose. The project provides seven honeypot targets, each one a plausible-looking fake service with a trap in it. The trick is that none of them rely on prompt injection. Instead, each honeypot offers the agent something it wants—credentials, source code, a working exploit—in a form whose normal handling executes code.

The seven targets fall into three classes, ordered by how much the agent gets wrong. In Class 1, the agent does nothing wrong and still gets caught. In Class 2, it walks into a trap it can't see. In Class 3, it sees the risk and takes it anyway. Examples include a repository whose .git/config runs on checkout (exploiting a sanitizer bug), leaked backups that are pickles the agent loads despite knowing pickle is unsafe, a .pyc hiding in __pycache__ among clean .py files, and a billing SDK with no implant at all—just a deliberate bug that only the honeypot's own server can trigger.

Everything runs in Docker. Payloads aren't committed as binaries; each one is generated by a commented script at container start, with fresh keys, for the addresses in your .env.

Why It's Cool

The core idea here is a nice inversion. Most security tooling is about defending against attackers. This is about building a target that treats the attacking agent as the thing to be compromised, and it does so without any of the usual tricks.

  • No prompt injection anywhere. The traps work through normal handling of artifacts the agent decides to trust—a git config, a pickle file, a form field, a compiled helper. That's a more honest test of an agent than tricking it with text.
  • It reports real numbers. Against stock ARTEX, the first six honeypots hooked 33 of 36 runs, with the fastest in 27 seconds. The seventh, built from what those taught the authors, went 8 for 8. Those are specific results, not vague claims.
  • The payload chain is deliberately non-canned. There's a 4.4 KB loader, a Diffie-Hellman handshake, an implant that only exists in memory, and per-session signed tasks. The c2ctl prove command sends four pieces of code written after the session opens and checks every answer—so you're seeing live proof, not a replay.
  • The Billing SDK is the cleverest of the set. It ships no implant at all, just a bug that the honeypot's server triggers. That's a meaningfully different approach from the other six.
  • It's reproducible. Because every payload is generated at startup with commented scripts, you can read exactly how each trap is built—and there's a porting guide if you want to build your own on the same chain.

How to Try It

Getting it running is a single command once you've cloned the repo:

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

That builds everything in Docker, starts the seven honeypots on localhost, and lets a stand-in agent walk into each one. For every hit you get proof of arbitrary code execution in the visitor's container, with a verification block like:

==> pickled-backups
(a) python nonce proof: OK
(b) native ELF via memfd: OK (8992 B, exe=/memfd:s2)
(c) adaptive two-step: OK
(d) large program (1500232 B source, 15515 functions): OK
VERIFIED

If you want to point a real ARTEX at it, there's a dedicated doc covering networking, the canary, and watching it get hooked. The other docs cover configuration and troubleshooting, how the chain works, the session protocol, and how to port a honeypot.

One thing to note: it's licensed under PolyForm Noncommercial 1.0.0. Research, teaching, and personal use are welcome; commercial use isn't. The README also carries a caution about authorized use, so keep this in a lab.

You can find the full project at github.com/NebuSec/ArtexPot.

Final Thoughts

ArtexPot is best suited to people working on or evaluating autonomous pentest agents—researchers, red teams, and anyone who wants to understand how these agents handle artifacts they shouldn't trust. It's a focused research artifact rather than a general-purpose tool, and the noncommercial license reflects that. The interesting takeaway is the design philosophy: instead of trying to out-prompt an agent, build a target where the agent's own competence (its willingness to clone, load, decode, and install) becomes the vulnerability. If you're testing AI attackers, this is a useful mirror to hold up to them.

Back to Projects
Project ID: artexpotLast updated: December 4, 2026 at 02:48 AM