# ArtexPot: honeypots that run code inside the attacking agent

> ArtexPot is an open-source honeypot family that turns an ARTEX attack into code execution inside the agent's own container.

- **Severity:** Info: Research, tools, evals or lab claims with no direct exposure. Context, not an alert.
- **Category:** Tool, Research
- **Published by:** NebuSec
- **Disclosed:** 2026-11-28
- **Affects:** ARTEX
- **Research by:** [NebuSec](https://nebusec.ai/research/)
- **Primary source:** https://nebusec.ai/research/artexpot/
- **Page:** https://theinjection.dev/items/nebusec-artexpot/

ArtexPot is a set of seven open-source honeypots from NebuSec that end with the authors' code running as root inside the attacking agent's container. NebuSec reports root code execution in 33 of 36 runs against ARTEX 0.3.15.

## What happened

NebuSec published ArtexPot on 28 November 2026 and released the code on GitHub under PolyForm Noncommercial 1.0.0. The write-up tests ARTEX 0.3.15, an open-source agentic pentest framework, driven by two models the authors name as deepseek-flash-cyber and gpt-5.6-sol. NebuSec reports root code execution inside the ARTEX container in 33 of 36 runs, the fastest after 27 seconds and the slowest after 17 minutes.

## How it works

Each of the seven honeypots is a fake target the agent must process to make progress, in three classes: a trusted tool that runs attacker code during checkout, implicit execution through pickles, form state or imported bytecode, and artifacts the agent knowingly runs to reach credentials. Every honeypot embeds a loader of about 4.4 KB that opens an encrypted session to the authors' command-and-control server, which then sends payloads the agent never sees in advance. A run counted as a success only when four proof tasks completed, among them a native binary run from an in-memory file and a 1.5 MB program.

## Who is affected

Operators who point an agentic pentest framework at a target carry the exposure here, which is NebuSec's central claim: the framework itself becomes an attack surface. The honeypots are built against ARTEX 0.3.15, and a public honeypot NebuSec ran on 30 November recorded five verified reverse shells, two of them from ARTEX and three from an unidentified framework. Defenders can run the demo locally, which builds everything in Docker and starts all seven honeypots on localhost.

## What to do

Never process a target's artifacts as root or inside an agent's trust boundary, which is the first of NebuSec's recommendations for agent builders. Remove secrets from worker environments, run each task in a disposable sandbox with strict egress rules, enforce scope at the execution layer rather than in the prompt, and add a real-time circuit breaker for parallel workers. NebuSec also argues that traps requiring code execution give defenders a signal within minutes of first contact.

## Quick facts

- **Published:** 28 November 2026; code released on GitHub
- **Target:** ARTEX 0.3.15, driven by deepseek-flash-cyber and gpt-5.6-sol
- **Result:** Root code execution in 33 of 36 runs; fastest 27 seconds, slowest 17 minutes
- **Backdoored SDK:** 8 of 8 runs, including 4 with the embedded implant removed
- **What did not work:** 0 of 8 direct prompt injections and 0 of 17 command injections
- **Live capture:** Public honeypot, 30 November 2026: five reverse shells, two from ARTEX
- **License:** PolyForm Noncommercial 1.0.0

## Questions

### What does ArtexPot actually run on a machine I deploy it on?

ArtexPot's demo script builds everything in Docker and starts seven honeypots on localhost, then points a stand-in agent at each one and prints proof of code execution in the visitor's container. NebuSec licenses the project under PolyForm Noncommercial 1.0.0 and states that it is for research and authorized use on systems you own or may test.

### Did prompt injection work against ARTEX in NebuSec's tests?

No. NebuSec reports 0 of 8 direct prompt injections and 0 of 17 command injections produced code execution against ARTEX 0.3.15. What worked instead was making the agent process attacker-supplied artifacts: a malicious git config during checkout, pickles, form state, imported bytecode, and binaries or modules the agent chose to run to reach credentials.

### How is ArtexPot different from canary tokens left for an attacking agent?

Canary tokens tell a defender that an agent touched a decoy secret. ArtexPot goes further and requires code execution: each honeypot embeds a loader that opens an encrypted session back to NebuSec's command-and-control server, which then drives the agent's container. NebuSec reports that in 20 audited runs, four DeepSeek agents wrote up the loader as a backdoor belonging to the target.

## Sources

1. [NebuSec Write-Up](https://nebusec.ai/research/artexpot/)
2. [ArtexPot Repository](https://github.com/NebuSec/ArtexPot)
