Hacking the Hacker’s Agent: Target-Side Code Execution Against ARTEX

Authors: Cloud Security Alliance AI Safety Initiative
Published: 2026-12-01

Categories: Agentic AI Security
Download PDF
Download Markdown

Hacking the Hacker’s Agent: Target-Side Code Execution Against ARTEX

Key Takeaways

Three independent research groups published findings in late November 2026 showing that the autonomous penetration-testing platform ARTEX can be made to execute code chosen by the systems it is attacking [1][2][3]. ARTEX has been used by financially motivated criminal actors since at least August 2026 [5][6], so the research matters both to defenders facing ARTEX-driven intrusions and to any organization running an autonomous offensive agent, legitimately or otherwise.

The strongest evidence comes from NebuSec, whose “ArtexPot” decoys achieved arbitrary code execution as root inside unmodified ARTEX 0.3.15 containers in 33 of 36 controlled runs across six scenarios, with a seventh scenario succeeding in all 8 of its runs [1]. Notably, the successful techniques did not rely on prompt injection. NebuSec reports that direct prompt injection went 0 for 8 and command-injection bait went 0 for 17; the agent was compromised instead when it cloned, deserialized, imported, or installed artifacts that the target supplied [1]. Baldur Security separately obtained a reverse shell inside the ARTEX container in a single documented run using one model (GLM-5.3), combining DNS manipulation that turned the agent against its own host with staged error messages that talked the model past its initial refusal [2][4]. A static source review by Café Security Research found that ARTEX bypasses its engine’s approval step for every agent, checks scope only against its own records rather than against executed commands, and by default exposes the operator’s model API keys and database password to agent-run commands [3].

Read together, these findings show that the initial compromise comes from the agent handling target-supplied artifacts as code, and that ARTEX’s architecture then amplifies the damage, because the backend, workers, and model-written shell commands share one root container that also holds operator secrets and has unrestricted egress [1][2][3]. NebuSec’s public honeypot has since captured reverse shells from live pentest agents, including ARTEX, although attribution and impact remain unverified [1][5]. Any organization operating an autonomous offensive agent should treat target data as hostile code and isolate the worker that touches targets from the console and its credentials. Defenders, for their part, should treat the research as threat intelligence rather than as license to hack back, given the legal exposure that active measures carry.

Background

ARTEX is described by Check Point Research as a Chinese open-source, AI-powered penetration testing platform in which large language models coordinate multiple agents, with a web dashboard (the “panel”) that tracks assets, progress, captured traffic, and findings [6]. NebuSec’s teardown describes the architecture as a goal decomposer feeding a planner that dispatches “intents” to workers (three by default), all backed by a shared Postgres store [1]. The project first appeared on GitHub in mid-2026, and its original public repository was withdrawn in September or October 2026; sources disagree on the exact date, with Check Point’s report itself citing both September 8 and October 8 [1][6]. The Hacker News reports that ThreatBook now claims ownership of the project and sells a restricted commercial edition, though no security fix was announced alongside that claim [5].

The tool has a substantial criminal footprint. Check Point identified 2,557 systems that host or had hosted ARTEX panels, 1,608 of them live at the time of its November 5 report, and documented campaigns aimed at stealing Apple signing certificates, draining cryptocurrency, and taking over game accounts [6]. The Hacker News reports that an FBI warning issued on November 13 described criminal use against finance, government, and healthcare organizations since at least August, including theft of personal data on roughly 67,000 people from South Korean financial firms [5]. Separate reporting has also described a backdoored third-party ARTEX Docker image, identified by a researcher known as Badbyte, that permitted unauthenticated root command execution through a hidden function in a modified login handler, with 62 internet-facing consoles observed running the compromised build between November 2 and 4, 2026 [7]. If those backdoors were deliberate, ARTEX operators face supply-chain risk in addition to risk from the targets they scan.

The idea that defenders can turn an attacking agent’s autonomy against it is not new. Academic work in 2024 showed that decoy services with embedded prompt injections could not only stall LLM-driven attackers but, in an active “hack-back” mode, induce them to compromise their own machines, with reported effectiveness above 95% against the agents tested [8]. Work presented at USENIX Security 2025 further examined proactive deception defenses against LLM agents [9]. What distinguishes the November 2026 research is that it targets a specific, widely deployed criminal tool, and that it finds that against this tool and the models tested, direct prompt injection failed while exploitation of the ordinary software operations an agent performs while doing its job succeeded.

Security Analysis

Three Independent Lines of Evidence

The three studies used different methods, different models, and different levels of rigor, and the table below summarizes what each actually established. Readers should note that only NebuSec reported repeated runs, that Baldur documented a single run, and that Café did not execute anything.

Researcher Method Models Key Result Stated Limits
NebuSec [1] Seven purpose-built decoy services (ArtexPot) against stock ARTEX 0.3.15, fresh container per run DeepSeek (deepseek-flash-cyber) and GPT-5.6 (gpt-5.6-sol) Root code execution in 33 of 36 runs on six decoys (DeepSeek 18/18, GPT-5.6 15/18); seventh decoy 8/8; fastest compromise 27 seconds Scenarios chosen by the researchers; GPT-5.6 required an explicit attack goal; no host escape shown
Baldur Security [2][4] Lookalike subdomain resolving to loopback plus staged bait on a live site GLM-5.3 via OpenRouter Reverse shell inside the ARTEX container after model initially refused One model, one documented run; root not confirmed; no version stated
Café Security Research [3] Static source review of ARTEX v0.3.15 and v0.3.30 None (nothing built or run) Approval step bypassed for all agents; scope checked only against ARTEX records; secrets readable by agent commands by default Target exploitability explicitly untested

Taken together, the studies corroborate one another without depending on one another. The Hacker News notes that NebuSec and Baldur published on the same day without citing each other, and that a third team (Café) reached the same conclusion from the code [5]. The convergence is meaningful, but the 33-of-36 figure should be read as evidence that the attack classes work reliably under favorable conditions, not as a rate at which ARTEX operators are being compromised in the wild.

How the Target Compromises the Attacker

NebuSec organized its successful techniques into three classes, and the distinction between them is the most practically useful part of the research [1]. The first class, trusted tool failure, exploits weaknesses in third-party tools the agent invokes. NebuSec’s “Unclonable Repository” decoy exposed a .git directory and relied on a previously unknown bypass of the git-dumper sanitizer for malicious .git/config files, yielding code execution during checkout. NebuSec reported the bypass to the maintainer on November 28, 2026, the same day it published its research, and the bypass was unpatched at the time of writing [1]; anyone using git-dumper should therefore run it only in isolated environments. The agent did nothing unusual here; it ran a standard reconnaissance tool against an exposed repository, which is a common step for human testers as well.

The second class, implicit code execution, targets operations that look like data handling but execute code. NebuSec’s decoys served obfuscated Python pickles disguised as backups, pickled form state and cookies, and poisoned checked-hash .pyc bytecode files, including a planted sitecustomize.pyc [1]. An agent that loads a “backup” to inspect its contents, or that runs Python in a directory containing attacker-supplied bytecode, executes the target’s code without any decision to run code.

The third class, deliberate code execution, covers cases where the agent knowingly runs target-supplied software because it believes doing so advances the attack. Examples include a native extension shipped inside a vendor proof-of-concept, credential helpers such as AWS credential_process, kubeconfig exec entries, and SSH ProxyCommand directives, and a private SDK installed with a token the agent “discovered” [1]. In the seventh scenario, the Backdoored SDK, four of eight runs used an implant-free variant in which a bounds-checking flaw in a native interpreter was triggered by rules the server supplied, which shows that the malicious behavior need not be visible in the package the agent installs [1].

Baldur’s approach illustrates the third class against a model that resisted at first. Baldur created DNS records that pointed admin.baldur.dk at 127.0.0.1, so that ARTEX discovered the hostname during enumeration and began scanning its own environment [2][4]. Baldur then planted an HTML comment containing an “encrypted” debug SSH key and a curl ... | bash instruction to decrypt it. The model fetched the script, inspected it, and declined to run it, but a staged server returning fake timing errors persuaded it that piping a second endpoint to a shell was routine troubleshooting, and the model eventually ran the flow and returned a reverse shell [2]. Although based on a single documented run against one model, this sequence suggests that model-level refusals cannot be relied on as a boundary: in this case they were worn down by an environment that framed dangerous actions as necessary next steps.

Why Prompt Injection Was Not the Winning Path

The negative results deserve as much attention as the positive ones. NebuSec reports that all eight direct prompt-injection attempts failed to produce execution; workers downloaded seven of the supplied scripts only to inspect them [1]. All 17 command-injection probes also failed, because the agents quoted or encoded untrusted input and in some cases recognized the bait [1]. This indicates that the models tested in ARTEX have absorbed some defensive habits against the most familiar attack patterns. The result differs sharply from the 2024 findings, in which prompt injection achieved high success against LLM-driven attackers [8]; plausible explanations include the different models tested, improvements in model behavior since 2024, and ARTEX-specific prompting, although none of the researchers isolated the cause.

The same result also indicates that defenses focused on prompt injection alone, whether by agent builders or by defenders attempting deception, address a narrower slice of the risk than the architecture of the agent exposes. The attack surface is the full set of tools, file formats, and package ecosystems the agent touches, and each one carries the same code-execution semantics it carries for a human operator. The agents’ suspicion, while real against overt bait, did not extend to these routine operations.

Architectural Amplifiers

What turns a foothold into a serious operator compromise is ARTEX’s deployment model. NebuSec reports that the backend, every worker, and every LLM-written shell command share a single container running as root, that the LLM API key, database credentials, and console signing key sit in the environment, and that outbound network access is unrestricted [1]. Baldur’s directory listing of the compromised container shows the artex binary, a jwt.key file, and key and data directories as root-owned files in the same filesystem, although the shell’s own process privileges were not confirmed to be root [2][5]. Baldur’s researcher summarized the design as offering “no sandboxing” with “everything mashed together” [2][5].

Café’s code review explains why the platform’s own guardrails do not help. ARTEX bypasses its underlying engine’s approval step for every agent, leaving only a small fixed floor plus ARTEX’s own deletable rules. Scope limits are checked against ARTEX’s records of assets rather than against the commands its agents actually execute, the rule against piping data out ships switched off, and the stay-in-scope instruction lives in a prompt section editable from the console [3]. NebuSec adds that workers do not share warnings in real time and that nothing in the prompts tells agents that target data may be hostile, so one worker’s suspicion does not protect another [1].

The scope weakness is not only theoretical. NebuSec observed agents drifting beyond their authorized targets, including a DeepSeek worker that declared an entire /24 network in scope and a GPT-5.6 worker that tested leaked credentials against real-world domains and live cloud services [1]. On the basis of this design, NebuSec and Baldur describe plausible consequences of a target-side foothold that include theft of model API keys and database credentials, forged console sessions using the signing key, manipulation of assessment results, access to campaign data on other victims, and pivoting from the operator’s network [1][2]. These consequences are inferred from the architecture; none of the researchers reported demonstrating them end to end, and none demonstrated escape from the container to the host.

Evidence From the Wild

NebuSec also deployed a public ArtexPot honeypot on November 15 and reports that, on November 30, two pentest agents probed it, one identified as ARTEX and one unidentified, producing five reverse-shell sessions, two from ARTEX and three from the unknown framework [1][5]. These shells ran with the agents’ existing non-root privileges, NebuSec could not determine which action triggered them, and host access was not verified [5]. Notably, the absence of root privileges contrasts with NebuSec’s stock-container tests, which suggests that at least some live deployments differ from the default configuration; the architectural consequences described above may therefore not apply uniformly to operators in the wild.

The Hacker News also notes an internal inconsistency in NebuSec’s page, where a timeline caption refers to internal testing, and that NebuSec stated no legal or authorization basis for capturing shells on third-party systems [5]. A more conservative approach has also been reported: according to The Hacker News, Amazon stated on November 13 that its decoy sensors had captured AI agents’ own campaign records without running code on any operator system [5]. Taken together, these observations show that the technique can plausibly reach live operators, but they do not establish who those operators were or how often compromise occurs.

Recommendations

Immediate Actions

Organizations that run ARTEX or any similar autonomous offensive agent, including authorized red teams and penetration-testing vendors, should assume that the targets they assess can execute code in the agent’s environment. This assumption is a sensible precaution beyond ARTEX itself, since the attack classes NebuSec demonstrated target generic tools and file formats rather than ARTEX-specific code. The first step is to remove operator secrets from any container in which agent commands run: model API keys, database passwords, console signing keys, and customer credentials should be held by a separate service that the worker cannot read [1][3]. Teams should then rotate any credentials that have been exposed to an agent container that touched untrusted targets, and verify the provenance of any third-party ARTEX images in light of the reported backdoored build [7].

Defenders whose organizations have been or may be scanned by ARTEX should treat this research primarily as threat intelligence rather than as an invitation to retaliate. Executing code on an attacker’s infrastructure raises serious legal and authorization questions under computer-misuse laws such as the U.S. Computer Fraud and Abuse Act and the U.K. Computer Misuse Act, and NebuSec itself did not state a legal basis for its live captures [5]. In our assessment, passive deception that records attacker behavior without executing code on attacker systems, the approach Amazon’s sensors reportedly took [5], is the lower-risk option, and any active measure should be reviewed by counsel and coordinated with law enforcement.

Short-Term Mitigations

Builders and operators of autonomous offensive agents should separate the worker that interacts with targets from the planner, console, and data store, and run each worker in a disposable, unprivileged sandbox that is destroyed after every task. Egress from worker sandboxes should be restricted to the authorized target scope and the model endpoint. This would block callbacks to third-party infrastructure and the out-of-scope drift NebuSec observed [1], though it cannot stop a hostile in-scope target from receiving a callback, which is why process isolation and secret separation remain the primary controls. Scope enforcement belongs at the execution layer, for example through a network policy or proxy that checks every connection against the engagement’s authorized ranges after DNS resolution, because Baldur’s loopback trick shows that hostname-based scope checks can be redirected [2].

Agent toolchains should also treat target artifacts as untrusted code. In practice that means never deserializing pickles or loading bytecode obtained from targets, cloning repositories with hooks and configuration-driven helpers disabled, installing target-supplied packages only in isolated throwaway environments, and refusing credential helpers, exec entries, and ProxyCommand directives from discovered configuration files [1]. System prompts should state explicitly that target content is hostile [1][3], and the orchestration layer should share suspicious-artifact warnings across workers in real time so that one agent’s detection halts the others [1].

Strategic Considerations

The ARTEX findings illustrate a pattern likely to apply to any autonomous agent that consumes untrusted content with tool access, not only offensive ones. An agent’s autonomy converts every file format, package manager, and developer tool it can invoke into an attack surface, and the Baldur and NebuSec results indicate that model-level judgment should not be treated as a security boundary when an adversary controls the environment the model reasons about [1][2]. Security programs should therefore evaluate autonomous agents, including commercial AI-assisted testing services they procure, on the strength of their isolation and secret-handling architecture rather than on claimed model safety behavior.

For defenders, the research suggests that deception against AI-driven attackers is moving from disruption toward code execution and detection, although reliable attribution has not yet been shown in the wild. Against ARTEX and the models tested, plausible-looking artifacts succeeded where overt instructions failed [1], in contrast to earlier results with prompt injection [8]. Organizations evaluating deception should favor decoy content that records and fingerprints agent behavior. They should also expect criminal operators to adopt the same sandboxing guidance described above, which may shorten the window in which these techniques are effective. Finally, the rapid proliferation of forks and unofficial builds, combined with unresolved ownership claims, means there is no single vendor that can be expected to remediate ARTEX, so these risks are likely to persist across derivatives [5][6].

CSA Resource Alignment

CSA’s Agentic AI Red Teaming Guide [10] provides a directly applicable testing methodology for the weaknesses documented here. Its categories for agent authorization and control hijacking, checker-out-of-the-loop failures, and supply chain attacks map closely to ARTEX’s bypassed approval step, its scope checks that do not cover executed commands, and the Backdoored SDK scenario. Organizations that build or procure autonomous offensive agents can use the guide to test those agents against the same classes of attack that NebuSec and Baldur used, rather than testing only their effectiveness against targets.

CSA’s Using AI for Offensive Security [11] examines how AI changes offensive security practice and the governance needed when organizations adopt AI-driven testing. The ARTEX research adds a concrete counterpoint to that discussion: the offensive agent itself becomes privileged infrastructure that requires the same isolation, credential management, and rules-of-engagement controls as any other production system that processes hostile input. CSA’s white paper Autonomous Agentic AI Adversaries [15] complements this view from the defender’s side, treating autonomous AI attackers as an operational reality, which is the context in which ARTEX’s criminal use and the defender guidance above should be read.

CSA’s research note Agent Data Injection: A New Class of Agentic AI Attack [12] showed that agents can be subverted through corrupted trusted data rather than through injected instructions. The ARTEX findings extend that observation from metadata to executable artifacts: the most reliable attacks on ARTEX avoided overt instructions entirely and instead exploited operations the agent considered routine.

For implementation, CSA’s research note Sandboxing Agentic AI: Least-Privilege Patterns for MCP and Coding Agents [16] describes the disposable, least-privilege sandboxing, egress control, and secret separation patterns that underpin the worker-isolation recommendations in this note. For threat modeling, MAESTRO [13] provides a layered framework for analyzing the agent ecosystem, and its separation of agent framework, deployment infrastructure, and data operations makes ARTEX’s single shared container a clear cross-layer failure. The AI Controls Matrix (AICM) v1.1 [14] supplies the control baseline for remediation, particularly its identity and access management, cryptography and key management, and threat and vulnerability management domains, which cover secret isolation, least privilege, and the handling of untrusted inputs discussed in the recommendations above.

References

[1] NebuSec. “ArtexPot: the honeypots that hack Artex back.” NebuSec Research, November 28, 2026 (updated November 30, 2026).

[2] Joensen, Kevin. “ARTEX, go hack yourself: How we got RCE in ARTEX.” Baldur Security, November 28, 2026.

[3] Café Security Research. “ARTEX: what the code says.” Café Security Research, Version 1.6, November 27, 2026.

[4] Vigliarolo, Brandon. “ARTEX may be dangerous, but it’s also dumb enough to hack itself.” The Register, November 30, 2026.

[5] Khandelwal, Swati. “ARTEX AI Hacking Tool Used by Cybercriminals Can Be Hacked by Its Own Targets.” The Hacker News, December 1, 2026.

[6] Check Point Research. “Hacking on Autopilot: Inside ARTEX Cybercrime Campaigns.” Check Point Research, November 5, 2026.

[7] Mallory. “ARTEX AI Pentesting Agent Tricked Into Running Target-Controlled Code.” Mallory.ai, December 1, 2026.

[8] Pasquini, Dario, Evgenios M. Kornaropoulos, and Giuseppe Ateniese. “Hacking Back the AI-Hacker: Prompt Injection as a Defense Against LLM-driven Cyberattacks.” arXiv, October 2024.

[9] Ayzenshteyn, Daniel, Roy Weiss, and Yisroel Mirsky. “Cloak, Honey, Trap: Proactive Defenses Against LLM Agents.” USENIX Security Symposium, August 2025.

[10] Cloud Security Alliance. “Agentic AI Red Teaming Guide.” CSA, 2025.

[11] Cloud Security Alliance. “Using AI for Offensive Security.” CSA, 2024.

[12] Cloud Security Alliance AI Safety Initiative. “Agent Data Injection: A New Class of Agentic AI Attack.” CSA, July 2026.

[13] Huang, Ken. “Agentic AI Threat Modeling Framework: MAESTRO.” Cloud Security Alliance, February 6, 2025.

[14] Cloud Security Alliance. “AI Controls Matrix (AICM) v1.1.” CSA, 2026.

[15] Cloud Security Alliance AI Safety Initiative. “Autonomous Agentic AI Adversaries.” CSA, June 2026.

[16] Cloud Security Alliance AI Safety Initiative. “Sandboxing Agentic AI: Least-Privilege Patterns for MCP and Coding Agents.” CSA, May 2026.

← Back to Research Index