{"slug": "honeypots-that-hack-the-hacking-agent-back", "title": "Honeypots that hack the hacking agent back", "summary": "NebuSec released ArtexPot, a set of seven honeypots designed to turn an autonomous AI penetration-testing agent's own attack into code execution inside the agent's container, with no prompt injection involved. Against stock ARTEX the first six honeypots hooked 33 of 36 runs, the fastest in 27 seconds, and the seventh, built from those lessons, succeeded 8 for 8. The project is published on GitHub under the PolyForm Noncommercial 1.0.0 license, with payloads generated at container start rather than committed as binaries.", "body_md": "**Honeypots that hack the hacking agent back.**\n\nARTEX 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.\n\nAgainst stock ARTEX the first six hooked **33 of 36 runs**, the fastest in **27 seconds**. The seventh, built\nfrom what those taught us, went **8 for 8**. The full story:\n**[ArtexPot: Seven honeypots that hack Artex back](https://nebusec.ai/research/artexpot/)**.\n\n```\ngit clone https://github.com/NebuSec/ArtexPot && cd ArtexPot\n./demo.sh all\n```\n\nThat 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:\n\n``` js\n==> pickled-backups\n(a) python nonce proof: OK\n(b) native ELF via memfd: OK (8992 B, exe=/memfd:s2)\n(c) adaptive two-step: OK\n(d) large program (1500232 B source, 15515 functions): OK\nVERIFIED\n```\n\nThree 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.\n\n|  | Honeypot | The trap | \n|---|---|---|\n| 1 | [The Unclonable Repository](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/unclonable-repository) | `git clone` fails, the agent reaches for git-dumper, and our`.git/config` runs on checkout (a 0-day in its sanitizer). | \n| 2 | [The Pickled Backups](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/pickled-backups) | Leaked backups are pickles. The agent knows pickle is unsafe and calls `pickle.load` anyway. | \n| 2 | [The Stateful Form](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/stateful-form) | No files at all. A hidden form field begs to be decoded, and decoding it is the trap. | \n| 2 | [The Shadowed Bytecode](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/shadowed-bytecode) | Every `.py` is clean. A`.pyc` in`__pycache__` is not. | \n| 3 | [The Unpatched Advisory](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/unpatched-advisory) | A real vulnerability with a vendor PoC. The PoC needs one compiled helper. | \n| 3 | [The Keyless Ops Repository](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/keyless-ops-repository) | A leaked ops repo with no static keys. Every route to a credential runs a bundled helper. | \n| 3 | [The Billing SDK](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/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. | \n\nA 4.4 KB loader hidden in the artifact, a Diffie-Hellman handshake, an implant that only ever exists in memory,\nand tasks signed per session. Nothing is canned: `c2ctl prove` sends four pieces of code written after the\nsession opened and checks every answer. The Billing SDK goes further and ships no implant at all, just a\ndeliberate bug that our server triggers.\n\nNothing binary is committed. Every payload is generated by a commented script when the containers start, with\nfresh keys, for the addresses in your `.env`.\n\n| [Running it](https://github.com/NebuSec/ArtexPot/blob/main/docs/running.md) | step by step, configuration, troubleshooting | \n| [Pointing a real ARTEX at it](https://github.com/NebuSec/ArtexPot/blob/main/docs/real-artex.md) | networking, the canary, watching it get hooked | \n| [How it works](https://github.com/NebuSec/ArtexPot/blob/main/docs/how-it-works.md) | the chain, how each payload is generated, repository layout | \n| [The Billing SDK](https://github.com/NebuSec/ArtexPot/blob/main/honeypots/billing-sdk/README.md) | the bugdoor honeypot and its shell listener | \n| [Session protocol](https://github.com/NebuSec/ArtexPot/blob/main/c2/README.md) | handshake, sealing, task signatures | \n| [Porting a honeypot](https://github.com/NebuSec/ArtexPot/blob/main/docs/porting.md) | building your own on the same chain | \n\n[PolyForm Noncommercial 1.0.0](https://github.com/NebuSec/ArtexPot/blob/main/LICENSE). Research, teaching and personal use are welcome. Commercial use is not\npermitted.\n\nCopyright NebuSec.\n\nCaution\n\nArtexPot is a security research project designed for controlled environments. Use it only on systems, agents,\ncontainers, networks, and infrastructure that you own or have explicit permission to test. **Do not deploy or\nuse this project to access, compromise, disrupt, or execute code on another person's machine or services without\nauthorization.** Unauthorized use may be illegal and unethical.\n\nYou are solely responsible for how you use this project and for complying with all applicable laws, regulations, and agreements. By using ArtexPot, you assume all risks and consequences arising from its use or misuse. To the maximum extent permitted by law, the authors and contributors provide this project \"as is,\" without warranties, and disclaim liability for any damage, data loss, service interruption, legal consequences, or other harm resulting from its use or misuse.", "url": "https://wpnews.pro/news/honeypots-that-hack-the-hacking-agent-back", "canonical_source": "https://github.com/NebuSec/ArtexPot", "published_at": "2026-12-03 21:20:34+00:00", "updated_at": "2026-12-03 21:46:49.543531+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools"], "entities": ["NebuSec", "ARTEX", "ArtexPot", "GitHub", "Docker"], "also_reported_by": [], "takeaway": "Honeypots that hand an autonomous pentest agent credentials, source code or exploits in a form whose normal handling executes code hooked 33 of 36 runs against stock ARTEX in as little as 27 seconds, and the seventh design went 8 for 8.", "recommendation": {"advice": "Treat any artifact an agent retrieves during a pentest as executable: the ArtexPot honeypots hooked 33 of 36 runs by hiding code in .git/config, pickles, .pyc files and a bundled helper, so sandbox and inspect retrieved files before loading them.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/honeypots-that-hack-the-hacking-agent-back", "markdown": "https://wpnews.pro/news/honeypots-that-hack-the-hacking-agent-back.md", "text": "https://wpnews.pro/news/honeypots-that-hack-the-hacking-agent-back.txt", "jsonld": "https://wpnews.pro/news/honeypots-that-hack-the-hacking-agent-back.jsonld"}}