What is ArtexPot? How it hacks ARTEX back, and what are the risks
ArtexPot is seven open-source honeypots that execute code inside ARTEX AI agents. How it works, why running it in the wild is risky, and safer defenses.
Definition
ArtexPot
Also called ArtexPot honeypots, ARTEX counter-exploitation honeypots, The Billing SDK
ArtexPot is an open-source family of seven decoy web applications released by NebuSec in November 2026 to gain remote code execution inside autonomous AI penetration-testing agents such as ARTEX when they attack the honeypot. Because it delivers implants or server-triggered code onto a remote caller's machine without knowing who owns that system, it functions as a hack-back tool that carries severe attribution, collateral-damage, and legal risks if deployed on public servers.
- Initial lab runs where ArtexPot gained root in stock ARTEX (NebuSec)
- 33 of 36 (92%)
- Fastest lab run from task start to root code execution (NebuSec)
- 27 seconds
- Direct prompt-injection traps that triggered code execution (NebuSec)
- 0 for 8
- Runs hooked by the seventh honeypot, including 4 implant-free (NebuSec)
- 8 for 8
How ArtexPot turns ARTEX against itself
ArtexPot exploits the execution boundary inside ARTEX rather than trying to trick its language model with hidden instructions. NebuSec published the research on November 28, 2026, and open-sourced seven decoy targets on GitHub under the PolyForm Noncommercial 1.0.0 license.
Stock ARTEX 0.3.15 runs its backend, planner, three parallel workers by default, and every shell command as root inside one container with open outbound network access. The operator's LLM API keys, Postgres database credentials, and console signing key sit in the same environment. Independent analyses reported by The Hacker News—an RCE write-up by Baldur Security and a source audit by Café Security Research—documented the same flat container design and missing approval gates. That layout contrasts sharply with isolated agent runtimes such as Cotool, where each SOC agent runs in its own Linux sandbox with outbound traffic restricted per agent and write tools gated separately.
Instead of prompt injection, ArtexPot feeds the agent normal-looking target artifacts whose standard handling executes code. In NebuSec's control tests, eight direct prompt injections and 17 command-injection probes produced zero executions because ARTEX's planner recognized them and told workers to inspect scripts statically. Across 36 runs against the first six honeypots using deepseek-flash-cyber and gpt-5.6-sol, ArtexPot gained root execution in 33 runs (92%), with the fastest run taking 27 seconds and the slowest 17 minutes.
Each of the first six decoys embeds only a 4.4 KB loader. Once triggered, the loader detaches, opens an encrypted Diffie-Hellman session to a command-and-control server, receives an in-memory implant, and counts as a win only after completing four tasks written and signed after the session opens: a Python nonce computation, an in-memory native ELF binary via memfd, a two-step adaptive task, and a 1.5 MB program.
The seven ArtexPot honeypots
NebuSec grouped the seven decoys into three classes by how much fault lies with the agent's judgment versus its tools and runtime.
| Class | Honeypot | Execution mechanism | Lab win rate |
|---|---|---|---|
| 1. Trusted tool failure | The Unclonable Repository | Exposed .git/ without smart-HTTP forces git-dumper; a 0-day bypasses its .git/config sanitizer on checkout | 6 of 6 |
| 2. Implicit execution | The Pickled Backups | Exposed Python backups load via pickle.load, shelve, or joblib.load with obfuscated opcodes near STOP | 4 of 6 |
| 2. Implicit execution | The Stateful Form | Unsigned base64 __state fields, signed cookies, and cursors invite pickle.loads decoding | 5 of 6 |
| 2. Implicit execution | The Shadowed Bytecode | Clean .py source sits beside poisoned PEP 552 checked-hash .pyc files in __pycache__ | 6 of 6 |
| 3. Deliberate execution | The Unpatched Advisory | Real decoy flaw with a vendor PoC that imports a compiled native helper | 6 of 6 |
| 3. Deliberate execution | The Keyless Ops Repository | Ops configs trigger bundled aws, kubectl, ssh, or PEP 517 SDK helpers to mint live tokens | 6 of 6 |
| 3. Deliberate execution | The Backdoored SDK (Billing SDK) | Forged X-NS-Role: staff reveals a private SDK whose 14 KB native module hides a server-triggered bounds bug | 8 of 8 |
Two runtime findings stood out across the 36 initial runs and the eight SDK runs. First, warnings did not propagate fast enough across parallel workers: in one DeepSeek run, a worker flagged backup files as carrying builtins.exec, and another worker ran pickle.loads on one less than 2 seconds later. Second, agents repeatedly filed ArtexPot's own loader as a vulnerability on the target even after the container had been owned for minutes.
The seventh honeypot, tested in two rounds across both models, went 8 for 8 in 40 to 51 seconds on DeepSeek and 2 to 3 minutes on GPT-5.6. In round two, NebuSec removed the embedded loader completely and left a 14 KB native module with no networking or shell imports; an out-of-bounds opcode sent by the honeypot server triggered arbitrary Python execution on demand, leaving nothing suspicious when agents dumped the binary's strings.
Why you should not deploy ArtexPot in the wild
ArtexPot is revealing research into autonomous agent runtimes, but deploying it on internet-facing infrastructure turns a honeypot into a hack-back tool with severe operational and legal risk.
- You do not know who you are hacking back. Triggering a 4.4 KB loader, an in-memory implant, or a server-side bugdoor executes code inside a remote environment you do not own or control. Even when a trap requires forging an HTTP header first, you still do not know whose machine is running the client.
- Threat actors routinely operate through compromised infrastructure. You can easily deploy an implant onto another victim's already compromised server. Microsoft documented Storm-0940—one of the groups linked to ARTEX—operating through CovertNetwork-1658, an average of 8,000 compromised SOHO devices. CISA advisory AA25-239A notes that Salt Typhoon compromises edge devices regardless of who owns them to pivot into other networks, and CISA's April 2026 advisory AA26-113A warns that China-nexus covert networks such as Raptor Train (more than 200,000 infected devices) route attacker traffic through compromised third-party hardware, some of it shared with legitimate users.
- Successful code execution does not equal successful attribution. Getting a shell proves your payload ran inside a runtime; it does not establish who owns the box, who launched the campaign, or whether the scan was criminal or authorized. NebuSec's own November 30 public capture illustrates that gap: its listener logged five reverse-shell sessions across two frameworks (two from ARTEX and three from an unknown framework) at non-root privileges, with host-level access unverified and operators unknown. As The Hacker News noted, the report states no legal authorization basis and contains an unresolved conflict between describing public traffic in the text and labeling the timeline chart as "internal testing."
- Criminal, civil, and license liability. Under the U.S. Computer Fraud and Abuse Act (18 U.S.C. § 1030), accessing a protected computer without authorization to obtain information (§ 1030(a)(2)) or knowingly transmitting code that causes unauthorized damage (§ 1030(a)(5)(A)) carries federal criminal penalties and civil lawsuits for losses of $5,000 or more, with no private self-defense exception (Congressional Research Service, R46536). The U.S. Department of Justice's CCIPS victim-response guidance states directly that organizations must not access, modify, or damage another network regardless of motive, warning of federal, state, and foreign computer-crime laws, harm to innocent intermediaries, third-party privacy intrusion, attacker retaliation, and interference with law enforcement investigations. ArtexPot's PolyForm Noncommercial 1.0.0 license also bars commercial use.
What to run against autonomous attackers instead
Defenders get cleaner signal—and stay inside the law—by keeping deception, detection, hunting, and containment strictly inside their own network boundary. DOJ guidance explicitly supports monitoring your own environment, blocking traffic, isolating compromised systems, and sharing evidence with law enforcement.
If you want intelligence on autonomous scanners, use passive deception that never executes code on the caller. Between October 3 and November 5, 2026, Amazon's MadPot sensors presented decoy LLM APIs and captured ARTEX system prompts, tool histories, and knowledge-graph state purely from incoming requests, without touching any remote host.
For operational defense against fast agentic tooling, pair behavioral detection with automated triage inside your own perimeter. Because covert networks rotate nodes and ARTEX forks churn rapidly, detections need to track per-identity and per-source behavior—such as rapid probing across .git/, __pycache__, .pkl, and /.env paths, or bursty API enumeration—rather than static IP blocklists. In Cotool, detections are Python code that queries stored logs or federated APIs directly and replays against 30 days of history before deploying:
WINDOW_MIN = 5
MIN_PATHS = 3
probes = tools.cotool_runQuery(query=f"""
SELECT src_ip, COUNT(DISTINCT path) AS paths
FROM cotool_logs.http_access
WHERE ts > now() - INTERVAL {WINDOW_MIN} MINUTE
AND (path LIKE '%.git/%' OR path LIKE '%__pycache__%' OR path LIKE '%.pkl' OR path = '/.env')
GROUP BY src_ip
""")
hits = [p for p in probes if p["paths"] >= MIN_PATHS]
emit_results(hits)
Alert volume from scanners also has to be triaged at machine speed without giving an agent unchecked write access. In Cotool, hunt agents map feeds such as CISA advisories against internal assets to flag exposed workloads and run API-level hunts—such as querying 14 days of GitHub audit logs without centralizing them—before promoting verified findings into detections (see when a threat hunt should become a detection). When an alert fires, response agents gather cross-tool context from SIEM logs, identity providers, and endpoints automatically, then stage containment—such as isolating a host in CrowdStrike or Microsoft Defender, or revoking Okta sessions—for analyst approval in the app or Slack.
What ArtexPot proves about securing defensive AI agents
ArtexPot's most durable finding applies to defensive and authorized testing agents as much as offensive ones: better models do not compensate for a flat container. gpt-5.6-sol inspected .pkl files cautiously and rejected every direct prompt injection, yet still compromised itself through git checkout, checked-hash .pyc files, and a compiled SDK because ARTEX processed untrusted target artifacts as root beside its secrets with open egress.
Any security team running autonomous agents that inspect attacker emails, raw logs, exposed repositories, or suspicious binaries should enforce four runtime boundaries outside the model, illustrated by the architecture Cotool documents for its own SOC agents:
- Per-agent sandboxes with egress allowlists. Run untrusted parsing and payload decoding in an isolated Linux sandbox with outbound traffic restricted per agent—for instance, allowing
api.virustotal.comand*.amazonaws.comwhile blockingpaste.ee—so a trapped parser cannot open a shell to an arbitrary C2 server. - Tool permission boundaries and human approvals. Separate read-only investigation tools from state-changing actions outside the prompt. Cotool runs read-only calls such as listing Okta sign-ins automatically, requires approval in the app or Slack for host isolation in Defender or user suspension in Okta, and provides a one-click read-only toggle.
- Versioned configuration and continuous evaluation. Keep agent prompts, skills, and tool grants in Git as YAML for pull-request review and rollback, and grade every run automatically so missed checks or broken integrations surface immediately.
- Detections on agent behavior itself. Monitor production agents like any other privileged identity. Cotool logs every execution's tool inputs and outputs and ships detections for a hijacked AI agent session and a coding agent pivoting to credentials after untrusted instructions. Teams connecting coding or SOC agents over MCP should apply the same checks covered in MCP security risks.
Related terms
- ARTEX: an open-source, multi-agent AI penetration-testing framework widely adopted by threat actors in 2026. See what ARTEX is.
- Prompt injection: untrusted text crafted to steer an LLM's instructions, which failed 0 for 8 in NebuSec's ArtexPot control tests. See prompt injection.
- Command and control (C2): the remote channel an implant uses to fetch and execute tasks. See command and control.
- Operational relay box (ORB): a covert network of compromised consumer routers, IoT devices, and leased servers that obscures attacker origin and breaks hack-back attribution.
- AI SOC: an operations model where sandboxed, auditable agents handle alert triage, hunting, and detection tuning inside the defender's trust boundary. See what an AI SOC is.
FAQ
- Should security teams deploy ArtexPot on public servers?
- Security teams should not deploy ArtexPot on public servers. ArtexPot delivers code that executes on the remote system attacking the honeypot, turning it into a hack-back tool when threat actors routinely operate through compromised third-party infrastructure. Deploying it in the wild risks planting an implant on another victim's server, exposes the organization to criminal and civil liability, and violates ArtexPot's PolyForm Noncommercial 1.0.0 license.
- Is running ArtexPot in the wild illegal under the CFAA?
- Running ArtexPot against external callers raises serious liability under the U.S. Computer Fraud and Abuse Act (18 U.S.C. § 1030), which bars unauthorized access to obtain information and knowingly transmitting code that causes unauthorized damage, with no self-defense exception. The U.S. Department of Justice's Cybercrime guidance explicitly warns victims not to hack into or damage source computers regardless of motive, noting both criminal and civil exposure under federal, state, and foreign laws.
- Does ArtexPot use prompt injection to compromise ARTEX?
- ArtexPot does not rely on prompt injection. NebuSec tested eight direct prompt injections and 17 command-injection probes against ARTEX and achieved zero executions, because the planner flagged them and instructed workers to inspect scripts statically. Every ArtexPot trap instead exploits trusted tool bugs, runtime deserialization or bytecode loading, or realistic lures that require running target-supplied code.
- What should defenders run against ARTEX instead of hacking back?
- Defenders should keep deception, detection, and response strictly inside their own network boundary. Passive sensors such as Amazon's MadPot gather campaign intelligence from incoming requests without running code on remote hosts, while behavioral detections and automated alert triage contain intrusions lawfully. Agent-native platforms such as Cotool run Python behavioral detections over stored and federated sources, investigate each alert as it lands, and require human approval before taking containment actions.
- What does ArtexPot mean for teams running defensive AI agents?
- ArtexPot shows that model alignment cannot protect an autonomous agent running in a flat, privileged container. Defensive AI agents that parse untrusted logs, emails, repositories, or binaries need runtime containment outside the model: per-agent Linux sandboxes with outbound egress allowlists, a one-click read-only mode with approval gates for state-changing tools, and automated run evaluations, the model Cotool documents for its SOC agents.
Sources
- ArtexPot: the honeypots that hack Artex back - NebuSec · accessed December 1, 2026
- NebuSec/ArtexPot - GitHub · accessed December 1, 2026
- ARTEX AI Hacking Tool Used by Cybercriminals Can Be Hacked by Its Own Targets - The Hacker News · accessed December 1, 2026
- Best Practices for Victim Response and Reporting of Cyber Incidents (Version 2.0) - U.S. Department of Justice CCIPS · accessed December 1, 2026
- Cybercrime and the Law: Computer Fraud and Abuse Act (CFAA) and the 116th Congress - Congressional Research Service · accessed December 1, 2026
- Countering Chinese State-Sponsored Actors Compromise of Networks Worldwide to Feed Global Espionage System (AA25-239A) - CISA · accessed December 1, 2026
- Defending Against China-Nexus Covert Networks of Compromised Devices (AA26-113A) - CISA · accessed December 1, 2026
- Chinese threat actor Storm-0940 uses credentials from password spray attacks from a covert network - Microsoft Security Blog · accessed December 1, 2026
- Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents - AWS · accessed December 1, 2026
- AI SOC Without the Black Box - Cotool · accessed December 1, 2026
- AI Detection Engineering with Python Detections - Cotool · accessed December 1, 2026
- AI Threat Hunting and Actionable Threat Intel - Cotool · accessed December 1, 2026
- AI Alert Triage and Incident Response Agents - Cotool · accessed December 1, 2026
- AI-Native SIEM Built for Agents - Cotool · accessed December 1, 2026





