Hacking the Hacker Agent: ARTEX Counter-Exploitation and Deception as Defense

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

Categories: Agentic AI Security
Download PDF
Download Markdown

Hacking the Hacker Agent: ARTEX Counter-Exploitation and Deception as Defense

Key Takeaways

Between early November and the first days of December 2026, four separate lines of evidence indicated that autonomous offensive agents such as ARTEX are highly exposed to defensive deception. Amazon’s MadPot decoys, posing as LLM inference APIs, captured the working memory of ARTEX-class agents between October 3 and November 5, 2026 [1]. An academic preprint showed that source-planned honeypots reduced ARTEX’s real compromises on 40 critical CVE-Bench tasks from 20 to zero [3]. Microsoft reported that honeypots, tarpits, and “fake wins” reduced attack traffic reaching real assets in its own testing, although it published no figures [4]. NebuSec’s ArtexPot went further, achieving root code execution inside unmodified ARTEX 0.3.15 containers in 33 of 36 controlled runs [5][6].

The evidence also shows that this advantage is already being contested. A recovered ARTEX fork contains a dedicated honeypot-detection module with signature checks already implemented and behavioral and post-login checks planned [7]. Academic work on the Rouxii framework found that a prompt change alone raised three reasoning models’ correct honeypot identification from 19% to 97%, and that a deception-aware agent could then disable or poison the honeypots it found [8]. Deception against AI attackers should therefore be treated as a perishable, adversarially contested control, not a settled one.

Defenders have a wide range of options, and their legal exposure differs sharply across that range. Passive decoys, canary credentials, shadow environments, and tarpits operate on infrastructure the defender owns and fit well within existing security programs. Counter-exploitation, in which a decoy causes code to run on the attacker’s own systems, is a different act. NebuSec’s own disclaimer warns that “unauthorized hacking back remains illegal in many jurisdictions,” and reporting notes that its published research states no legal or authorization basis for its live captures [5][6]. CSA recommends that organizations invest now in passive and containment-oriented deception tuned for AI agents. Any measure that executes code on an attacker’s agent should require explicit legal sign-off.

Background

ARTEX is an open-source, multi-agent penetration testing framework first published on GitHub as Autumn-27/ARTEX on July 26, 2026, under the AGPL-3.0 license [9]. It is written in Go with a web console backed by PostgreSQL. A planner agent turns an operator’s goal into discrete “intents,” which worker agents carry out with tools such as nmap, curl, git, and shell access [5][9]. The framework has no model of its own and can call Anthropic, OpenAI, or any OpenAI-compatible endpoint [9]. The author withdrew the original repository on October 8, 2026, after reports of abuse, but this did little to slow its spread [9][10]. Cloudflare reports more than 12,000 repositories in the ARTEX lineage, at least 204 public forks with their own code changes, and a thirtyfold increase since October 1 in daily requests from AI pentesting orchestrators, ARTEX among them [10]. ThreatBook has since claimed ownership and sells a restricted commercial edition, ARTEX Pro [4][6].

ARTEX’s abuse is well documented. Microsoft has linked it to Storm-0940, Storm-3358, Onyx Sleet, Pearl Sleet, Crystal Typhoon, and Salt Typhoon. It reports one Storm-0940 campaign that generated more than 151,000 failed sign-ins and one case in which an agent moved from searching GitHub for secrets to exfiltrating data from Azure Key Vault in five minutes [4]. Censys counted 1,465 exposed ARTEX consoles in early November, as reported by SOC Prime [9]. CSA has published earlier notes on ARTEX’s spread, its detection fingerprints, and its use in harvesting AI gateway keys [2][13]. This note addresses a narrower question: what defenders can do once they accept that the attacker is software making decisions at machine speed.

That question matters because autonomous agents behave differently from human operators in ways deception can exploit. An agent’s job is to explore every promising lead, and it has no instinct for when an environment feels wrong. It also relies on external inference, transmitting its working context to whatever model endpoint it is configured to use [1]. And ARTEX in particular is architected for capability rather than operator safety. NebuSec found that the backend, every worker, and every model-written command share a single container running as root, with the operator’s LLM API key, database credentials, and console signing key in the environment and unrestricted outbound access [5]. Café Security Research’s separate code review, as reported by The Hacker News, found that ARTEX bypasses its engine’s approval step for every agent and enforces scope only against its own records rather than against the commands agents actually run [6]. These are the conditions that make the hacker agent hackable.

Security Analysis

A Spectrum of Deception Against AI Attackers

Recent evidence covers a range of defensive measures that differ in mechanism, demonstrated effect, and legal risk. Treating them as a single category, whether labeled “deception” or “hack back,” obscures distinctions that matter for program design. The table below organizes the published evidence from the most passive measures to the most active.

Measure Mechanism Evidence Primary benefit Legal/operational risk
Inference-shaped decoys Fake LLM API endpoints that attacker agents adopt as model backends Amazon MadPot captured agents’ task context, tool histories, and findings over 34 days [1] High-fidelity threat intelligence Low; runs on defender infrastructure
Honeytokens and canary secrets Planted credentials whose use triggers alerts Recommended by Microsoft for early warning of compute hijacking [4]; ARTEX reported planted fake secrets as genuine in 30 of 120 deception-arm tasks [3] Early detection, attribution signal Low
Source-planned shadow honeypots Confirmed attackers routed to an isolated copy of the application ARTEX real compromises reduced from 20/40 to 0/40 on CVE-Bench (31 valid runs), and from 15/20 to 0/20 on held-out tasks [3] Containment of working exploits Low, but pre-confirmation requests still reach production
Tarpits and “fake wins” Consume agent budget or present false evidence of success Microsoft reports reduced traffic to real assets, no figures published [4] Cost imposition, diversion Low
Counter-exploitation lures Target-supplied artifacts that execute code in the attacker’s runtime ArtexPot: root execution in 33 of 36 lab runs; 5 non-root reverse shells claimed from live agents [5][6] Visibility into attacker infrastructure High; potential unauthorized access to third-party systems

Passive Deception Has the Strongest Defensive Case

Amazon’s MadPot findings may be the most consequential result in this set, because they were observed against live criminal campaigns rather than in a lab, and because they show that an agent’s reliance on third-party inference makes it vulnerable to intelligence collection. The decoys did not need to compromise anything. Attacker agents configured to use a defender-controlled endpoint as a model backend sent it their full task context with each request, and Amazon reconstructed a campaign in which stolen AI provider keys were fed back into ARTEX’s model gateway to fund further key harvesting [1]. Amazon was careful to note that it could not independently verify the outcomes the agents recorded and that its attribution was at moderate confidence [1]. Even with those caveats, the approach turns the attacker’s own architecture into a sensor without crossing into the attacker’s systems.

The source-planned honeypot research reaches a similar conclusion through containment rather than collection. In that design, an LLM defender reads the application’s source code and builds a static deception plan. Once a router confirms that a client is hostile, all of its later requests go to an isolated shadow copy [3]. Against ARTEX, real compromise fell to zero in both deception configurations tested, and in about half of the deception-arm runs ARTEX’s exploit succeeded against the shadow while the real target stayed intact [3]. The authors frame this candidly: the defense “moved a working exploit rather than stopping it,” and the residual risk sits in requests that reach production before the router confirms the attacker [3]. This is a lab result on a benchmark, not a production deployment, and it should be read that way. It nonetheless indicates that agentic attackers struggle to tell a convincing shadow environment from the real one.

Microsoft’s guidance places these techniques within mainstream defensive practice. Its November 25 analysis recommends honeypots and decoy surfaces that look valuable but are worthless, tarpits that drain the agent’s time and token budget, fake wins that persuade the agent its goal has been met, and honeytokens as early warning of AI compute hijacking [4]. Microsoft states that in its testing these controls reduced attack traffic reaching real assets and “produced high-confidence, attribution-quality signal,” though it did not describe the test conditions or publish quantitative results [4]. Cloudflare’s guidance on AI pentest orchestrators, by contrast, emphasizes blocking and containment through WAF rules, bot defense, identity-gated access, and schema validation, and does not discuss deception [10]. The two approaches complement each other. Deception can only buy time and intelligence if the hardened perimeter has already removed the easy paths.

What ArtexPot Actually Demonstrated

ArtexPot’s results show precisely where the agent’s judgment fails, and they challenge a common assumption. Many defenders expected prompt injection to be the natural weapon against an attacking LLM. In NebuSec’s testing, direct prompt injection succeeded zero times in eight attempts, and command-injection bait succeeded zero times in seventeen [5]. The ARTEX planner flagged the first injection it saw and instructed workers to “inspect statically, never curl | sh” [5]. The backend models, in other words, were reasonably good at recognizing hostile instructions.

The successful lures worked differently. They got the agent to perform actions it considered routine, such as cloning a repository, restoring a pickled backup, importing Python bytecode, configuring a cloud credential helper, or installing an SDK it had discovered. NebuSec’s seven decoys fall into three classes: a trusted tool that fails unsafely (including what NebuSec describes as a previously unreported bypass of git-dumper’s configuration sanitizer), a runtime that executes what looks like data, and an agent that knowingly runs target code [5]. The fastest compromise took 27 seconds, and most runs gave up root within three minutes [5]. In one run, a worker deserialized a trapped pickle file less than two seconds after a parallel worker had flagged the same files as traps, because warnings propagate between workers only on the planner’s next cycle [5]. NebuSec’s summary of the behavior of the more cautious model it tested, GPT-5.6, that it “guards file formats, not actions,” describes the core weakness well [5].

Baldur Security’s single documented run, as reported by The Hacker News, points the same way. Its ARTEX agent, running GLM-5.3, initially refused to pipe a remote script into a shell, then ran it after the server returned misleading errors that made the step look like routine troubleshooting [6]. The lesson for anyone running autonomous offensive agents, including legitimate red teams, is that model-level caution is not a security boundary. The lesson for defenders is that the most effective lures reframe hostile actions as ordinary task progress rather than issuing commands.

The live-capture claims are weaker than the lab results. NebuSec reports five reverse-shell sessions from a public ArtexPot instance, three attributed to an unidentified framework and two to ARTEX, all running with non-root privileges [5][6]. The Hacker News notes that five sessions do not necessarily mean five operators, that the identity and authorization of whoever ran the agents are unknown, and that a timeline caption in NebuSec’s own report refers to “internal testing,” leaving it unresolved whether the captures came from genuine public traffic [6]. No host-level break-out was demonstrated in either the lab or live settings [6]. These claims should be treated as vendor-reported and unverified until independently corroborated.

The Counter-Deception Arms Race Has Already Begun

The evidence suggests that deception against AI agents will not remain an uncontested advantage for long, because attackers are already building countermeasures. huntback Research recovered a fork, ARTEX-ymh, from an open directory on an Alibaba Cloud host in early November 2026 [7]. It contained a design document dated September 18, 2026, and a honeypot-detection module [7]. The implemented layer matches static signatures from banners, default pages, and certificates against known honeypot families such as Cowrie, OpenCanary, Kippo, Dionaea, and HFish. Planned layers add behavioral probing and post-login checks, including reading /proc/meminfo twice to detect emulators and an egress callback test that treats a reported success with no arriving callback as “near-certain” Cowrie [7]. The fork also adds defenses against lures aimed at AI agents: wrapping target content in untrusted-data tags, filtering outbound secrets by hash, and a tarpit breaker that flags a host after a configurable 40 fetches [7]. Its operating rule, “missed honeypots are normal, false positives are incidents,” indicates that the author prioritized avoiding false positives over catching every honeypot [7].

The Rouxii research suggests such adaptation is cheap. With only a prompt change, three reasoning models raised correct honeypot identification from 19% to 97% across 1,544 attack reports, while false alarms on real services stayed at 0.7% [8]. The researchers then showed that a deception-aware agent could counter-exploit the honeypots themselves, disabling a Conpot instance without tripping its liveness monitoring and corrupting the intelligence a GasPot instance reported [8]. This reverses the ArtexPot scenario: a honeypot is software, and an attacker that knows it is there can target it.

Two implications follow. First, commodity honeypots with default banners and fingerprints are likely to lose effectiveness quickly against AI attackers, and decoys need the realism of source-planned or production-derived designs. Second, detection itself creates signal for defenders. huntback notes that the fork’s behavior is itself recognizable, including a stale Chrome user agent paired with a curl or Go TLS fingerprint, retreating to read-only after a single signal, flagging a host as a suspected tarpit after about 40 fetches, and a characteristic sequence of post-login checks [7]. An agent that is busy testing for deception reveals what it is.

The most important difference between deceiving an attacker on your own infrastructure and executing code on the attacker’s system is legal rather than technical. In the United States, the Computer Fraud and Abuse Act prohibits intentionally accessing a computer without authorization and contains no exemption for victims acting in self-defense [17]. Many other jurisdictions take a similar approach, and NebuSec’s own disclaimer warns that unauthorized hacking back “remains illegal in many jurisdictions” [5]. The container running an ARTEX worker may belong to an unwitting hosting customer, a compromised intermediary, or a legitimately contracted red team. NebuSec acknowledges this risk, designing ArtexPot to “collect only basic information and disconnect, without establishing a persistent shell” and advising against other uses [5]. The Hacker News nonetheless observes that NebuSec’s report states no legal or authorization basis for its own live captures [6]. That gap is a warning for enterprises tempted to deploy the open-sourced tooling as-is. This note is not legal advice, and organizations should consult counsel in each jurisdiction where they operate.

There is also a less obvious risk. The same research that enables counter-exploitation applies to authorized offensive agents. An organization’s own red team, or a penetration-testing supplier running ARTEX or a similar framework, faces the same exposure when it touches a hostile or deceptive target [5][6]. As counter-exploitation lures spread, operators of legitimate offensive agents should assume that some targets will try to take over their tooling.

Recommendations

Immediate Actions

Security leaders should first determine whether their organization runs ARTEX, one of its forks, or any comparable autonomous offensive framework, either internally or through a supplier. Where one is in use, the worker that touches targets should run in a disposable environment with no console access, no secrets, egress limited to the engagement scope, and scope enforced outside the model [5][6]. In parallel, organizations should deploy honeytokens in the places AI agents search first, such as public repository history, .env files, CI/CD variables, AI gateway configurations, and cloud metadata paths, and route their use to high-priority alerts [4]. Organizations should also adopt a written policy that no deception measure may execute code on systems the organization does not own without approval from legal counsel.

Short-Term Mitigations

Over the next 30 to 90 days, organizations with mature security operations should pilot passive deception tuned for AI agents. Promising options include decoy services built from real application code rather than default honeypot images, tarpits and fake-success responses on high-value paths, and, for organizations that operate AI infrastructure, decoy inference endpoints modeled on Amazon’s approach [1][3][4]. Detection engineering should add the counter-deception behaviors huntback documented to existing hunts, along with the ARTEX user agents and burst patterns Microsoft and others have published [4][7]. Deception should complement, not replace, the baseline controls Cloudflare and Microsoft emphasize, including WAF prevention mode, rate limiting, identity-gated administrative interfaces, short-lived CI/CD tokens, and restricted egress from web servers [4][10]. CSA further recommends keying rate limits to identities rather than IP addresses where possible.

Strategic Considerations

Deception against AI attackers is likely to follow the familiar pattern of detection and evasion, but on a compressed timeline. Decoy design should therefore be treated as a maintained capability with regular realism testing against current open-source agents, not a one-time deployment. Organizations are also likely to face more pointed questions about active defense from regulators, insurers, and contracting partners. Developing a documented position on where the organization draws the line between passive deception and counter-exploitation, ideally aligned with industry peers and law enforcement guidance, will be easier now than after an incident. Finally, developers of offensive security tools, including legitimate commercial red-team platforms, should treat target-supplied data as hostile code by design. The ArtexPot results show that at least one widely deployed open-source agent runtime does not, and CSA is not aware of public evidence that others have been tested against comparable lures.

CSA Resource Alignment

This note extends CSA’s research note Hacking the Hacker’s Agent: Target-Side Code Execution Against ARTEX [11], published December 1, 2026. That note analyzes the ArtexPot, Baldur Security, and Café Security Research findings mainly from the perspective of operators who must harden their offensive agents. This note takes the defender’s perspective, placing counter-exploitation within a broader range of deception measures and weighing it against the counter-deception capabilities already appearing in ARTEX forks. Readers responsible for red-team tooling should read both.

CSA’s whitepaper Autonomous Agentic AI Adversaries [12] established in June 2026 that autonomous agentic adversaries had moved from a theoretical concern to an operational reality, and it mapped defensive guidance to MAESTRO, the AI Controls Matrix, and Zero Trust. The ARTEX evidence confirms that assessment and adds a defensive opportunity it anticipated only in general terms: an adversary that delegates judgment to a model inherits that model’s vulnerability to deception. CSA’s research note Fingerprinting Agentic Offensive Frameworks: Intent IDs, Cadence, and Self-Labels [13] complements the detection guidance here, since the intent IDs, machine cadence, and self-labels it documents are the signals that let a router confirm an attacker before diverting it to a shadow environment. Two further CSA works describe the economics behind the inference-decoy finding. Self-Funding Agents: ARTEX Campaigns Harvesting AI-Gateway Keys [2] analyzes the key-harvesting campaign Amazon’s MadPot exposed, and LLMjacking Evolution: From Cost Theft to Offensive Agent Infrastructure [18] traces how stolen AI compute came to power offensive agents, the same dependency that inference-shaped decoys and compute-hijacking honeytokens exploit.

For organizations operating offensive agents legitimately, CSA’s Agentic AI Red Teaming Guide [14] provides testing methodology that should now include the operator-side risks shown by ArtexPot, particularly tool misuse and the handling of untrusted target data. At the control level, the AI Controls Matrix (AICM) v1.1 [15] addresses the relevant requirements through its Threat and Vulnerability Management, Application and Interface Security, and Identity and Access Management domains, which cover isolating agent runtimes, managing secrets, and monitoring credential use. MAESTRO [16] gives teams a layered threat model for analyzing both sides of this problem: the attacking agent’s exposure in its tool and runtime layers, and the defender’s deception infrastructure as a target in its own right.

References

[1] Moses, CJ / Amazon Threat Intelligence. “Amazon Threat Intelligence observes threat actors running cybercrime campaigns with ARTEX AI agents.” AWS Security Blog, November 13, 2026.

[2] Cloud Security Alliance AI Safety Initiative. “Self-Funding Agents: ARTEX Campaigns Harvesting AI-Gateway Keys.” CSA Lab Space, November 18, 2026.

[3] Roh, Seungdeok; Ryu, Seokjun; Park, Sohee; Choi, Daeseon. “A Gingerbread House for LLM Agents: Source-Planned Honeypots That Lure Autonomous Attackers into an Isolated Shadow.” arXiv:2611.07611, November 5, 2026.

[4] Microsoft Threat Intelligence. “What defenders need to know about ARTEX, the agentic AI framework threat actors abuse.” Microsoft Security Blog, November 25, 2026.

[5] NebuSec. “ArtexPot: the honeypots that hack Artex back.” NebuSec Research, November 28, 2026.

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

[7] huntback Research. “ARTEX learns to spot honeypots: dissecting an AI pentest agent’s decoy detector.” huntback, November 4, 2026.

[8] Cordeiro, Arthur; Mongardini, Alberto Maria; Vasilomanolakis, Emmanouil. “Rouxii: Exploiting Honeypots with Deception-Aware AI Pentesters.” arXiv:2609.26555, September 22, 2026.

[9] SOC Prime Team. “ARTEX Detection: Hunting the AI Pentest Framework Turned Attack Platform.” SOC Prime, November 17, 2026.

[10] Darché, Blake; Sloan, Myles; Crisp, Jacob; Cloudforce One. “Adapting to AI penetration testing orchestrators: The Modern Security Model.” Cloudflare Blog, November 13, 2026.

[11] Cloud Security Alliance AI Safety Initiative. “Hacking the Hacker’s Agent: Target-Side Code Execution Against ARTEX.” CSA Lab Space, December 1, 2026.

[12] Cloud Security Alliance AI Safety Initiative. “Autonomous Agentic AI Adversaries: Frontier Models Cross the Threshold from Tool to Actor.” CSA Lab Space, June 24, 2026.

[13] Cloud Security Alliance AI Safety Initiative. “Fingerprinting Agentic Offensive Frameworks: Intent IDs, Cadence, and Self-Labels.” CSA Lab Space, November 27, 2026.

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

[15] Cloud Security Alliance. “AI Controls Matrix (AICM) v1.1.” Cloud Security Alliance, 2025.

[16] Cloud Security Alliance. “Agentic AI Threat Modeling Framework: MAESTRO.” Cloud Security Alliance Blog, February 6, 2025.

[17] Legal Information Institute. “18 U.S. Code § 1030 – Fraud and related activity in connection with computers.” Cornell Law School.

[18] Cloud Security Alliance. “LLMjacking Evolution: From Cost Theft to Offensive Agent Infrastructure.” Cloud Security Alliance.

← Back to Research Index