Full Report
Contents4 sections
ArtexPot
Honeypots that hack the hacking agent back.
ARTEX is an autonomous AI pentest agent: give it a URL and it attacks. ArtexPot is seven fake targets built so that the attack itself ends with our code running inside the agent's own container. No prompt injection anywhere. Each honeypot offers the agent something it wants (credentials, source code, a working exploit) in a form whose normal handling executes code.
Against stock ARTEX the first six hooked 33 of 36 runs, the fastest in 27 seconds. The seventh, built from what those taught us, went 8 for 8. The full story: ArtexPot: Seven honeypots that hack Artex back.
Try it
git clone https://github.com/NebuSec/ArtexPot && cd ArtexPot
./demo.sh allThat 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:
==> 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
VERIFIEDThe seven honeypots
Three classes, ordered by how much the agent gets wrong: in Class 1 nothing, in Class 2 it walks into a trap it cannot see, in Class 3 it sees the risk and takes it.
| Honeypot | The trap | |
|---|---|---|
| 1 | The Unclonable Repository | git clone fails, the agent reaches for git-dumper, and our .git/config runs on checkout (a 0-day in its sanitizer). |
| 2 | The Pickled Backups | Leaked backups are pickles. The agent knows pickle is unsafe and calls pickle.load anyway. |
| 2 | The Stateful Form | No files at all. A hidden form field begs to be decoded, and decoding it is the trap. |
| 2 | The Shadowed Bytecode | Every .py is clean. A .pyc in __pycache__ is not. |
| 3 | The Unpatched Advisory | A real vulnerability with a vendor PoC. The PoC needs one compiled helper. |
| 3 | The Keyless Ops Repository | A leaked ops repo with no static keys. Every route to a credential runs a bundled helper. |
| 3 | The Billing SDK | Forge a role, find a private SDK, install it. The SDK has a bug only our server can trigger. No implant in the package. |
What lands on the agent
A 4.4 KB loader hidden in the artifact, a Diffie-Hellman handshake, an implant that only ever exists in memory,
and tasks signed per session. Nothing is canned: c2ctl prove sends four pieces of code written after the
session opened and checks every answer. The Billing SDK goes further and ships no implant at all, just a
deliberate bug that our server triggers.
Nothing binary is committed. Every payload is generated by a commented script when the containers start, with
fresh keys, for the addresses in your .env.
Docs
|---|---| | Running it | step by step, configuration, troubleshooting | | Pointing a real ARTEX at it | networking, the canary, watching it get hooked | | How it works | the chain, how each payload is generated, repository layout | | The Billing SDK | the bugdoor honeypot and its shell listener | | Session protocol | handshake, sealing, task signatures | | Porting a honeypot | building your own on the same chain |