Book a demo →
← All posts
Threat Watch

ARTEX: An AI Pentest Agent That Runs Code Planted by Its Targets

Two teams got the ARTEX AI pentest agent to run code planted by its targets in lab tests, and a third found the flaws by code review. No fix is reported.

ARTEX: An AI Pentest Agent That Runs Code Planted by Its Targets

AegisAI Threat Watch · ARTEX

ARTEX: An AI Pentest Agent That Runs Code Planted by Its Targets

The Hacker News reported on 1 December 2026 that ARTEX, an AI penetration-testing tool criminals have used this year, can be made to run code planted by the systems it is sent to attack.

TL;DR
What
Two security teams showed that ARTEX, the AI pentest tool criminals have used, can run code planted by the systems it attacks.
How it works
The trap hides inside an ordinary task such as cloning a repository. In NebuSec's tests, none of eight direct prompt injections ran.
Why it matters
In the tested setup the code ran in the container that holds the operator's keys, and no fix is reported.
Do today
Treat any agentic testing tool as privileged infrastructure: isolate it, limit its rights, and enforce scope outside the model.

Source: The Hacker News, 1 December 2026, checked against NebuSec, Baldur Security and Café Security Research. The Register (26 November 2026) for the groups reported to use ARTEX.

The Hacker News reported on 1 December 2026 that ARTEX, an autonomous AI penetration-testing tool that criminals have used this year, can be compromised by the systems it is sent to attack. In controlled lab tests, two security teams separately got it to run code they had planted on the systems it was told to scan.

In NebuSec's tests that code ran as root inside the same container that holds the operator's own passwords and keys. Baldur Security's shell landed in the same kind of container but was not confirmed to be root. Neither team showed a break-out onto the underlying host. This is not an email attack, and none of the sources describes an email step.

Analysis based on The Hacker News report, checked against the three research publications it links: NebuSec, Baldur Security and Café Security Research. The Register's report is used for the groups named as ARTEX users. The original research behind that attribution is not cited. A related post covers an AI coding tool whose altered settings fetched a backdoor.

33 of 36
NebuSec lab runs against its first six decoys reached code execution
27 s
fastest run, from task start to code execution
3
teams reached the same conclusion, two by live tests and one by code review
132
forks of the original code counted by one tracker on 19 November

Source: The Hacker News (all four figures). NebuSec reports the run counts and the 27 seconds on its own page.

Key judgments

  • The Hacker News reported that NebuSec and Baldur Security separately got ARTEX to run code planted by its targets, and published on the same day without citing each other. Café Security Research reached the same architectural conclusion from a code review alone, without running anything.
  • NebuSec says unmodified ARTEX reached code execution in 33 of 36 runs against its first six decoys, using two AI models, with the fastest in 27 seconds. The traps sat inside ordinary tasks such as cloning a repository or installing a package.
  • Baldur Security got one ARTEX agent, running GLM-5.3, to return a reverse shell after the agent first refused to pipe a remote script into a shell. The Hacker News says that was a single documented run on one model, and the shell was not confirmed to be root.
  • Café Security Research's code review found that ARTEX skips its engine's approval step for every agent, checks scope only against its own records, and by default lets agent commands read the operator's model keys and database password. Whether a target could exploit that was untested in that work.
  • No fix is reported. The original author pulled the public code on 8 October, and ThreatBook, which says it now owns ARTEX, says it sells a restricted edition called Artex Pro to vetted enterprises. It has not said whether that edition carries the same flaws.

Evaluating email security tools? The 2026 Buyer's Guide to Email Security has nine evaluation areas and the questions to ask vendors. Get the guide.

What is ARTEX and who has used it?

ARTEX is an AI-powered penetration-testing framework that was released as open source. NebuSec says it landed on GitHub in July 2026 and runs a whole test on its own: given a URL, it plans, scans and exploits without a human in the loop. The Register reported that attackers have used it to automate reconnaissance, credential attacks and exploitation since the public release, and that ThreatBook claimed ownership of the tool in November.

The Hacker News reported that the FBI warned on 13 November that criminal actors have run ARTEX against organizations worldwide since at least August, in finance, government, healthcare and other sectors. In one set of attacks the FBI named, intruders copied the personal data of about 67,000 people from South Korean financial firms.

The Register reported that Microsoft named Chinese and North Korean state-sponsored groups, including Salt Typhoon, among a growing number of groups known to use ARTEX. It also reported that ARTEX offers no new attack techniques, and that its value lies in automation that chains attacks at machine speed. The Hacker News adds that the agent behind those attacks is itself privileged infrastructure that holds the operator's credentials.

How can an AI pentest agent be made to run code from its target?

NebuSec, a San Francisco AI security company, built seven decoy web services it calls ArtexPot and pointed unmodified copies of ARTEX at them. The Hacker News describes how each decoy works: the agent clones a repository, loads a backup, reads a cached file or installs a helper package, and in doing so runs code the target chose.

NebuSec ran ARTEX 36 times across two AI models against its first six decoys, and in 33 runs the target compromised the attacker. A seventh decoy, built from what those runs taught, succeeded in all eight of its runs. NebuSec says the code ran as root inside the attacker's container.

A trap that looks like troubleshooting

Baldur Security, a Danish offensive security consultancy, reached the same place by a different route. It pointed ARTEX at its own domain and planted a fake leaked key in the site's page source, with a comment that pointed the agent at a script. The agent first refused to pipe a remote script into a shell and judged it unsafe. The consultancy then changed its server to return misleading errors that made the step look like normal troubleshooting. The agent piped a second script from that server into a shell, and it returned a reverse shell inside the ARTEX container.

What each team did

The three publications used different methods, and each has its own limit.

TeamMethodResultStated limit
NebuSecSeven decoy services, unmodified ARTEX, 36 runs on the first six33 runs reached code executionSix scenarios the company picked, and two model setups given different tasks
Baldur SecurityFake leaked key on its own site, misleading server errorsA reverse shell in the ARTEX containerOne model, one run on record, shell not confirmed to be root
Café Security ResearchStatic review of the source code, nothing runApproval step skipped, scope soft, keys readable by agent commandsWhether a target could exploit the gaps was untested

Source: The Hacker News, with each team's own publication opened for the method. Café Security Research says it built and ran nothing.

What did the code review find?

Café Security Research's review of ARTEX's source code found that ARTEX bypasses its engine's approval step for every agent. It found that scope limits are checked against ARTEX's own records, never against the commands its agents run. It also found that, by default, every command an agent runs can read the operator's AI model keys and database password.

The Hacker News reads this against the two live demonstrations. The agent's runtime is a separate security boundary from the model's reasoning, and a weaker one.

The agent judged the obvious trap unsafe, then piped a script from the same server into a shell once the step looked like routine troubleshooting.

AegisAI Threat Intelligence

What do the tests not show?

The tests do not show that ARTEX is easy to order around with plain instructions. NebuSec planted eight direct prompt-injection prompts. The agent downloaded seven and ran none, and 17 command-injection probes also failed. The 33-of-36 figure is not a measure of how many agents could be caught in the wild.

NebuSec also reported something closer to the wild. A public ArtexPot honeypot, deployed on 15 November, recorded five reverse-shell sessions: three from an unidentified framework and two from ARTEX. They ran at the agents' existing non-root privileges, and host-level access is unverified. Five sessions are not five operators, and who ran the agents is unknown. NebuSec's own page describes public traffic in its main text but says internal testing in a timeline caption, a conflict The Hacker News notes is unresolved. These are not a confirmed catch of criminals in the act.

Turning an attack agent against itself is not new. The Hacker News points to a 2024 research paper on decoys and prompt injections and a 2025 USENIX paper on getting an agent to run untrusted code. What these tests add is the same class of weakness in a tool in active criminal use.

Is there an email or fraud angle?

None of the sources describes an email delivery step, a lure message or a payment diversion tied to this research. The Register lists attempted sign-ins to more than 2,250 Microsoft 365 tenants after a ConnectWise compromise as one example of reported ARTEX-linked activity. How those attempts began is not part of the reporting used here.

How AegisAI protects against it

This is not an email attack, and AegisAI has not observed it. The reporting describes no email delivery step. Where an intrusion by an ARTEX operator is followed by mail from a stolen session or a compromised account, the approach below applies. It has not been tested against ARTEX.

AegisAI's agents evaluate the message and the destination it points to together, and pull a malicious message out of mailboxes before users see or click it. More on how that works: inbound email security.

Recommendations for defenders

  • Treat any agentic testing tool as privileged infrastructure rather than a disposable script. The Hacker News gives this as the lesson for authorized testing.
  • Isolate the worker that touches targets from the console and from the secrets, as The Hacker News says the documented weaknesses point to.
  • Run the worker with least privilege in a throwaway environment, and keep model keys and database passwords out of reach of the commands an agent runs.
  • Enforce scope and authorization outside the model rather than trusting the agent to stay in bounds.
  • Take legal advice before building traps that reach back into an operator's environment. The research leaves authorization questions open, and NebuSec's report states no legal basis for its captures.

FAQ

Can the ARTEX AI hacking tool be hacked by its own targets?

The Hacker News reported on 1 December 2026 that two teams, NebuSec and Baldur Security, got ARTEX to run code planted on the systems it was told to scan, in controlled lab tests. In the tested setup the code ran inside the container that holds the operator's keys. Neither team showed a break-out onto the host.

Is ARTEX target-side code execution just a prompt injection bug?

Not in NebuSec's tests. NebuSec planted eight direct prompt-injection prompts, and the agent ran none. Execution came from ordinary tasks such as cloning a repository or installing a package. Baldur Security describes its own route, a fake leaked key and misleading errors, as prompt injection trickery. Café Security Research found gaps in the code itself, including a skipped approval step, soft scope checks and readable keys.

Is there a fix for ARTEX?

None is reported. The Hacker News says the original author pulled the public code on 8 October. ThreatBook, which says it now owns ARTEX, says it sells a restricted edition called Artex Pro and did not say whether it carries the same flaws. Forks of the original remain, with one tracker counting 132 on 19 November.

Who has used ARTEX in attacks?

The Hacker News reported the FBI's 13 November warning that criminal actors have run ARTEX against organizations worldwide since at least August. The Register reported that Microsoft named groups including Salt Typhoon, Crystal Typhoon, Onyx Sleet, Pearl Sleet and Storm-0940, and that ARTEX adds no new techniques but speeds them up.

For researchers

What the reporting does not tell us 5 gaps

Host impact. Neither live test showed a break-out from the container onto the underlying host.

Breadth. The 33-of-36 result covers six scenarios NebuSec picked and two model setups. Baldur Security's result is one run on one model. Café Security Research did not test whether a target could exploit the gaps it found.

The live captures. NebuSec's five reverse-shell sessions have no known operators, and its page conflicts on whether the traffic was public or internal testing.

Fix status. No source says whether Artex Pro or any fork carries the same flaws.

Sources. The Hacker News is a news report of the three publications, which were opened for method and figures. The groups named as users come from The Register's report of an attribution, and the original research is not cited here.

Reported names and fingerprints 4 items

These are names and one fingerprint from the sources, not a blocklist. Café Security Research reports the health check as a default setting.

TypeIndicatorNote
ToolARTEXAI pentest framework, released as open source in July 2026
ToolArtex ProRestricted commercial edition that ThreatBook says it sells
HoneypotArtexPotNebuSec's decoy services used in the tests
Port8787Default port of an unauthenticated health check that names the service and version, per Café Security Research
MITRE ATT&CK mapping 3 techniques

These three techniques are AegisAI's mapping from the reports' text. IDs and names were checked on attack.mitre.org on 2 December 2026.

IDNameUse in this research
T1595Active ScanningARTEX automates reconnaissance against targets, per The Register.
T1059Command and Scripting InterpreterThe agent runs shell commands, and the planted code ran through that path in the tests, per The Hacker News.
T1552Unsecured CredentialsCafé Security Research found agent commands can read the operator's model keys and database password by default.
References 5 sources
  • Swati Khandelwal, The Hacker News (1 December 2026). ARTEX AI Hacking Tool Used by Cybercriminals Can Be Hacked by Its Own Targets. thehackernews.com
  • NebuSec. ArtexPot research page. nebusec.ai
  • Kevin Joensen, Baldur Security (28 November 2026). How we got RCE in ARTEX (write-up). baldur.dk
  • Café Security Research (27 November 2026). ARTEX: what the code says, study summary. research.cafesecurity.com
  • The Register (26 November 2026). Hackers in China and North Korea using ARTEX AI tool to break into global tech systems. theregister.com

MITRE ATT&CK techniques T1595, T1059 and T1552 were checked at attack.mitre.org.

Phishing that reaches the inbox, stopped before anyone clicks.

Book a demo