Reconix LogoReconix

ArtexPot: The Risks of Agentic AI Pentest and AI Hacking Agents

Reconix Team
Agentic PentestingAI HackingAI SecurityAI PentestAutonomous PentestingARTEXArtexPotAI Agent SecurityHoneypot
ภาพประกอบบทความ ArtexPot: The Risks of Agentic AI Pentest and AI Hacking Agents

In 33 of 36 runs, a website took root on the autonomous AI pentest agent that was attacking it. Most runs took under three minutes. The fastest took 27 seconds.

NebuSec published that result on November 28, 2026 as ArtexPot, seven honeypots (source) built to hack back the agent that attacks them. Their target was stock ARTEX 0.3.15, an open-source agent that runs a whole penetration test by itself: a planner hands tasks to a pool of LLM workers, and the workers run real tools against the target with nobody approving each command. The seventh honeypot hooked 8 of 8 runs.

If your organization buys AI-assisted penetration testing, or runs offensive agents of its own, this research describes risk you now carry. Agentic pentesting, where an AI agent plans the test and runs the tools itself, adds a new attack surface: the agent testing them. An agent that tests your systems holds your evidence, session tokens and often customer data, and it runs code that a hostile target chose. This guide covers what can go wrong, what a sound control looks like for each risk, and what to ask before an agent touches your environment.

At Reconix we build and run our own agent harness, and we mapped every ArtexPot trap against it. Where a lesson comes from that work, we say so, including the flaws we found in our own platform.

The risks of agentic pentesting at a glance

Risk What it costs you What to require
Execution traps on the target Attacker code runs with the agent's privileges Unprivileged agent processes with no platform secrets in reach
Cross-client (cross-tenant) exposure Another client's target reads your evidence A separate OS identity for each task
Guards that misread files A pre-scan approves a file the tool then executes Guards that parse files exactly as the tool does and refuse on error
Out-of-scope or off-window traffic Legal exposure and a real incident response Scope enforced at the network edge, and a watcher on windows and source IP
A stop button that depends on the broken system Testing nobody can halt A kill path that bypasses the main server and confirms the drop
Hallucinated findings An emergency change for a vulnerability that does not exist Findings bound to captured traffic and certified by a human tester

How ArtexPot hacks back an AI pentest agent

# Honeypot What the agent does What runs
1 Unclonable Repository dumps an exposed .git/ with git-dumper a command from the repository's own .git/config, during git checkout .
2 Pickled Backups opens .pkl files from /backup/ or /debug/ the payload inside the pickle, via pickle.load, shelve or joblib.load
3 Stateful Form decodes a hidden form field or cookie the same, via pickle.loads
4 Shadowed Bytecode runs a project whose .py files are clean a planted checked-hash .pyc in __pycache__
5 Unpatched Advisory runs a vendor PoC a bundled native extension the PoC imports
6 Keyless Ops Repository reaches for promised cloud credentials a native helper, or the SDK's build backend during pip install
7 Backdoored SDK installs and uses a private signing SDK server-supplied rules that hit a deliberate bounds bug in the native interpreter

Read the "What the agent does" column. Dumping an exposed .git/, opening a backup file, running the vendor's PoC: a competent human tester does every one of those, and the agent does them on reflex. The better an offensive agent gets at finding source code, credentials and exploits, the more reliably it walks into a trap built from those three things.

Four-step flow: the target serves bait such as an exposed .git directory, a pickle file or a PoC; the agent opens it with a normal tool; the payload runs as the agent's user; the payload reaches whatever that user can read and connect to. Below, what a contained agent can still reach: an unprivileged user, no platform keys, the task's own files and allowlisted egress only.

Prompt rules do not stop execution traps on AI hacking agents

NebuSec also tried the attacks most agent hardening is built for. Direct prompt injection went 0 for 8 and command injection 0 for 17 (the workers downloaded seven of the eight injection scripts and ran none), against 33 for 36 for the execution traps.

Most hardening advice for agents targets prompt injection: label tool output as untrusted, tell the model to ignore instructions inside it, filter suspicious commands. A pickle file carries no instruction for the model to refuse. git checkout . is a safe command right up until the repository's config defines a filter. And a model that finds a promising .pkl forty steps into a long task is chasing the finding, so a rule asking it to stay careful on every step will lose some of the time.

If a vendor's main answer to agent risk is the system prompt, that answer does not reach this class of attack. A prompt rule is worth keeping as the weakest layer, with every other control designed on the assumption that it fails. That is how we rank ours.

On a shared platform, root is the smaller problem

NebuSec counts a hit as root inside the agent's container. For one researcher running one test, that is a fair score. A firm testing several clients from shared infrastructure has a worse outcome to worry about: one client's target reaching another client's evidence.

Evidence from a bank test holds request and response captures, session tokens and often customer records reached during testing. If a hostile target in one engagement can read that evidence, a second client's data leaks because the vendor tested the first.

Our own harness shows how easy this is to miss. It already ran agents as an unprivileged user, with database credentials and LLM API keys out of their environment and signing keys readable by root only. Mapping the traps still turned up four shared resources:

  • Shared working group: every task's working directory belonged to one shared executor group, so code from one target could read and rewrite another engagement's loot, notes and evidence.
  • Shared home: one home directory served every task. A poisoned package cache, nuclei template or shell rc file planted by one target would run in later engagements for other clients.
  • Cross-task signals: the shared user could signal and trace other tasks' processes.
  • No targeted stop: stopping one engagement stopped every engagement's tools, because there was only one identity to kill.

NebuSec's advice to agent builders covers the basics: keep target artifacts away from root, strip secrets from worker environments, run every task in a disposable sandbox with strict egress, and enforce scope at the execution layer. "Every task" is the part that is easy to skip. The easy build is one sandbox per deployment, which protects the host from the agent and leaves every engagement inside it exposed to the others. Our harness had made exactly that choice.

The control that closes it is one OS identity per task. In our harness each task and chat conversation now runs as its own Linux user and group. The ids derive from the task id and are never reused, so a new task cannot inherit files an old one left behind, and the working directory, home, temp directory and browser output belong to that identity alone. A trap that fires in task 41 cannot read task 42's files.

ARTEX and Reconix Harness side by side. ARTEX: every worker shares one container with its files, tools and environment, and a trap in any worker gets root in that container, as in 33 of 36 NebuSec runs. Reconix Harness: each task runs as its own user with its own workdir, home, temp and browser output, no read or signal across tasks, a root-owned stop marker checked after every identity switch, and a stop that kills only that task's identity.

Per-task identity also makes a targeted stop possible, since stopping one engagement kills only its own processes. Watch for the race: a process launch already in flight when the stop arrives can start after the kill finishes. Each launch should check a root-owned stop marker after it switches identity, which is how ours works.

A guard that pre-scans a file must read it the way the tool does

NebuSec found a bypass of git-dumper's sanitizer and reported it to the maintainer on November 28. A patch there protects git-dumper's users. The wider problem is that a repository's own config can define commands that git runs during ordinary subcommands, and an agent runs ordinary subcommands on target repositories all day.

A common control is a wrapper that reads the config first and refuses any key that would execute a command: filter.*.smudge, core.fsmonitor, diff.*.textconv, an alias starting with !, core.sshCommand, and the rest of that family. We built one in front of git, and it took four fix rounds to hold, each closing a bypass we confirmed against git 2.43:

  • GIT_CONFIG=/dev/null hid a smudge filter from git config --list, while git checkout still ran it. A scanner that asks git for the config can be lied to through the environment.
  • A populated submodule's core.fsmonitor ran on a plain git status in the parent repository. The submodule's config sits under .git/modules/, which a top-level config listing never shows.
  • A symlinked .git/modules/s led git to a config file the scanner never opened.
  • A submodule .git file holding gitdir: <path> plus a second line sent git to a different git directory, because git takes everything after gitdir: , newlines included.
The agent runs git status. The shim first reads every config git would read: .git/config, submodule configs under .git/modules, gitdir files and symlinks, and GIT_CONFIG and other environment. If any key would run a command, or a read fails, it refuses and nothing runs. Otherwise real git runs with hooks, fsmonitor, credential helpers and the ext transport turned off.

Every bypass came from the scanner reading a file differently from git. The lesson applies to any guard that inspects a file and then hands it to a tool: it has to parse the file exactly the way the tool does, accept only the layouts the tool itself writes, and treat any read error as a refusal. Fixed command-scope settings that turn off hooks, fsmonitor, credential helpers and the ext:: transport add a second layer behind it.

Prevention and containment work together

A prevention guard catches the traps someone has published. For Python, a guard can hook the pickle.find_class audit event and refuse globals that run code or reach the OS, move the bytecode cache to a private path so a planted .pyc is never read, and refuse native extensions and build backends that come from target files. Ours does all three, and it still has documented gaps. The pickle check is a deny list, so an allowed callable with a side effect, or a third-party class with a dangerous __reduce__ path, can get through. A Python the agent installs through pyenv or conda loads no guard at all.

Containment limits what any trap reaches, published or unpublished: an unprivileged identity per task, no secrets in reach, egress held to an allowlist. If your budget covers one control, fund containment.

Every guard should also fail closed. The first version of our stop-marker check failed open: the server's umask left a directory at mode 0750, the lookup hit a permission error, and the code read "cannot read the marker" as "no marker". Tests caught it before release. An agent probes edge cases at machine speed, so ask for the test that proves each guard refuses on error.

Every vendor draws a line on exploit execution

The simplest defense against traps 5, 6 and 7 is to forbid the agent from running anything it downloads or builds. That also takes away the agent's ability to prove a finding, because proving one means running the exploit. Our doctrine is that every finding ships with a PoC, so we kept exploit execution and accepted the cost in writing. If the agent deliberately runs poc.py or an ELF from the target, it runs, and containment limits what it can reach.

The one workflow our guard removes is loading a native library into Python from the task's own directory or a temp directory, including a library the agent compiled itself. Packages from the public index still load, so pip install numpy in a fresh virtual environment works, while pip install ./vendor-sdk.whl from the target cannot load its native core.

Anyone who runs an offensive agent has made this tradeoff somewhere. Ask your vendor where they drew the line and what contains the code on the far side of it.

The operational risks executives ask about first

ArtexPot covers one class of risk: the target attacks the agent. A bank's CISO usually starts somewhere else. Will the agent touch a system outside the signed scope? Will it hit production at 2 p.m. on a business day? Will it report a vulnerability that does not exist? Autonomy raises the odds of each, because the agent acts at machine speed and nobody reads every command before it runs.

1. Leaving scope

A model told to test only 10.0.0.0/24 will still follow a link, resolve a host name it found in a JavaScript file, or write a script that builds its target from a variable. The contract makes scope a legal boundary, so it needs enforcement in layers, each built on the assumption that the one above it failed. Ours has four:

  • Target gate on tool calls. Every tool call is checked against the engagement's declared scope before it runs, including bare host names inside Bash commands.
  • Proxies held to scope. The recording proxy, the SOCKS5 listener and the transparent listener refuse connections outside the scope of engagements with running work.
  • Destination allowlist at the network edge. All target traffic leaves through a WireGuard gateway. With enforcement on, the gateway drops every new connection to an address outside the allowlist, whatever tool sent it, and records each drop for a tester to review.
  • Exclusions that always win. Rules of engagement often carve a host out of an authorized range, such as a production database inside the client's /24. Each carve-out carries its RoE reference and a reason, and it beats every allow entry at the gate, the proxies and the gateway.
Four scope layers between the agent and the target: 1 a target gate that checks scope before the tool runs, 2 recording, SOCKS5 and transparent proxies, 3 a WireGuard gateway that passes only allowlisted addresses, and 4 RoE exclusions that win at every layer. A script that ignores the proxy and hard-codes an IP skips layers 1 and 2, meets the gateway, and is dropped and logged for tester review.

The network layer is the one that matters most to you. A script that hides its target and ignores proxy settings gets past the first two layers and still cannot reach an address outside the allowlist.

In-scope web applications also load hosts the client never authorized, such as CDNs, font hosts and payment APIs. A sound platform reaches those on ports 80 and 443 for page loads and never accepts them as targets. When the agent asks to add one, a tester approves it, and the agent's stated reason counts as untrusted text, since the model may have read hostile content moments earlier.

2. Testing at the wrong time, or from the wrong IP

Regulated clients set testing windows, declare blackouts around change freezes, and allowlist the tester's source IP so their SOC can tell a test from an attack. An agent that keeps going past the window, or sends traffic from an IP nobody registered, starts a real incident response.

Require one route to the target with a fixed public IP, where traffic is dropped if the tunnel or gateway fails, never rerouted. Require a watcher that pauses work when a window closes, a blackout starts, the route or source IP check fails, or traffic capture stops. Ours runs every 15 seconds.

3. Stopping it when the tool itself is broken

A kill switch that runs through the main server fails when the server does. Ours has three triggers: the UI, the API and a host script that talks to the gateway directly, so it works with the main server hung or down, and it reports success only once the gateway confirms the drop. A kill drops all outbound traffic, pauses every task, kills agent processes and survives a restart. Resuming requires a written reason, and every kill and resume is logged with who, when and why for the client's audit trail.

4. Unapproved actions and load on the target

An agent that can run sqlmap --os-shell can also run a destructive query by accident. Look for an interception gate in front of tool calls, with rules that can require human approval for whole classes of action and a record of who made each decision. Anything that persists, such as custom tools, MCP servers and skills, should need operator approval by default.

Load is the quieter risk. Token and turn budgets should cap each task, and a noise governor should pace requests per host, cap bursts and back off on HTTP 429 and 503. An agent at machine speed can take down a fragile banking API that a human tester would never push that hard.

5. Findings that are not real (hallucinated findings)

Language models write convincing findings for vulnerabilities that are not there. A false critical costs the client an emergency change.

Require every request and response recorded through the platform's proxy, with work refused while capture is off. In our harness a finding reaches verified only with a bound proof response and evidence quotes that match the captured traffic word for word, it can be replayed from the recorded request, and a human tester certifies it before it goes in a report.

6. Tool output that tries to steer the agent

Prompt injection remains a risk even though ArtexPot did not need it. Wrapping every tool result in nonce-tagged markers, so the model reads target content as data, is a useful layer. Like the prompt rule, it should sit on the assumption that it fails.

Deception built for AI hacking agents already works in the wild

NebuSec deployed ArtexPot on its own website on November 15. On November 30, two pentest agents probed it, and the listener recorded five verified reverse shells: three from an unknown framework and two from ARTEX. Those shells ran with the agents' existing non-root privileges, and NebuSec did not verify host-level access. Autonomous AI hacking agents are already probing public sites, and two of them took execution-gated bait within about two weeks.

For defenders at banks and securities firms with mature monitoring, that makes deception worth a second look. A trap gated on execution fires within minutes of first contact, because taking the bait is the agent's job. We expect deception tuned for AI attackers to become standard blue-team kit, and attacker agents to get warier in response.

NebuSec also notes that the original ARTEX repository went private in October, while forks and a commercial edition stay in circulation. If your team runs one of those forks, or an agent built in-house, nobody upstream will ship per-task isolation for you.

Questions to ask before an AI pentest agent tests your systems

  1. What user do agent processes run as? If the answer is root, a target can take root in the agent's container in the minutes NebuSec measured.
  2. What secrets can an agent shell read? LLM keys, database credentials and cloud tokens belong out of reach of anything the target can influence.
  3. Is my engagement isolated from other clients' engagements, down to the user, home directory and package cache? With one shared identity, one hostile target exposes every client on the platform.
  4. Can you stop my engagement without stopping, or missing, anything else?
  5. If the agent writes a script that ignores your proxy and hard-codes an out-of-scope IP, what stops the packet?
  6. Can you stop all testing if your own server hangs, and can you prove when it stopped?
  7. How do you know a reported finding is real? Ask for the captured request and response behind it.
  8. What happens when the agent finds a .git/ directory, a .pkl file or a vendor PoC? A good answer names a control at the execution layer. A line in the system prompt is a request to the model.
  9. Which of the agent's actions did a human review? A human tester should certify every finding and check what the agent ran to get there.

Controls running in our platform today

For reference, these are the controls described above as they run in our own platform. All of them are built, covered by automated tests and deployed.

  • Runtime isolation: unprivileged agent processes; database credentials, server keys and LLM API keys out of their environment; signing keys and the proxy's CA key root-only; file tools limited to the task's own directory.
  • Per-task isolation: one Linux identity per task and per conversation, with private directories, homes and temp directories, per-run browser output, and kill by identity with a root-owned stop marker.
  • Execution guards: the git shim and fixed git settings; the Python guard for pickles, planted bytecode and target-supplied native code (traps 2 to 7); the prompt rule and the untrusted-output boundary.
  • Scope and safety: the target gate, scope-held proxies, the WireGuard gateway and destination allowlist, RoE exclusions, the kill switch, the safety watcher, the interception gate, budgets, the noise governor and evidence-bound verification.
  • AI and LLM Penetration Testing: we test agent platforms, tool calling and execution sandboxes for this class of flaw.
  • Secure Code Review: review of the code that runs, including build backends and bytecode, beyond the source on disk.
  • Red Teaming: adversary simulation that includes deception and counter-intrusion techniques like the ones in ArtexPot.

Further reading (in Thai): why the AI harness has become a new target for attackers.


AI assisted in writing this post. The author reviewed the final text.

Frequently Asked Questions

Common questions about this topic

Want this tested on your own systems?

Every Critical and High finding comes with a working proof of concept, a named tester's signature, and one retest after you fix it. Send us your scope and we will propose a test plan.

บทความ

บทความที่น่าสนใจอื่นๆ

สำรวจบทความอื่นๆ ที่คุณอาจสนใจจากบล็อกของเรา

ภาพประกอบบทความ ArtexPot: ความเสี่ยงของ Agentic Pentest เมื่อ AI Hacking Agent ถูกแฮกกลับ

ArtexPot: ความเสี่ยงของ Agentic Pentest เมื่อ AI Hacking Agent ถูกแฮกกลับ

3 ธันวาคม 2026Reconix Team

Honeypot ชุด ArtexPot แฮกกลับ AI pentest agent อย่าง ARTEX ได้ 33 จาก 36 รอบ สรุปความเสี่ยงของ agentic pentest มาตรการควบคุม และคำถามที่ควรถามผู้ให้บริการ

ภาพประกอบบทความ เมื่อ Hardware Wallet สร้างกุญแจที่เดาได้ ช่องโหว่ RNG ใน COLDCARD Firmware

เมื่อ Hardware Wallet สร้างกุญแจที่เดาได้ ช่องโหว่ RNG ใน COLDCARD Firmware

6 สิงหาคม 2026Reconix Team (Sorawish Laovakul)

ช่องโหว่ใน firmware COLDCARD ตั้งแต่ปี 2021 ทำให้ seed ถูกสร้างจาก PRNG ที่คาดเดาได้ ปลายกรกฎาคม 2026 Bitcoin 594 BTC จากราว 500 wallet หายไปในไม่ถึง 30 นาที