Skip to content
Bleeping Computer

ArtexPot honeypot exploits ARTEX AI flaws to hack back attackers


An open-source honeypot called ArtexPot turns the tables on the ARTEX AI pentesting framework by exploiting a flaw in the platform to “hack back” and compromise the attacker’s environment.

An open-source honeypot system called ArtexPot can counter autonomous attacks using the ARTEX AI pentesting framework by running payloads with root privileges to compromise the offensive environment.

ArtexPot exploits weaknesses in ARTEX version 0.3.15, allowing operators to achieve remote code execution in an average of less than three minutes, with the fastest attack taking 27 seconds.

image

Researchers at cybersecurity company NebuSec built ArtexPot after identifying three attack paths in ARTEX that let them take control of the platform without its agents detecting the compromise.

According to the company’s tests, a public deployment of the honeypot system proved successful against another, unknown pentest framework.

Deluge of ARTEX AI attacks

ARTEX was released in July as an AI-powered security pentesting tool that can automate multiple stages of a cyberattack, from reconnaissance and vulnerability discovery to exploitation and data exfiltration.

By October, cybercriminals started using it, with the first accounts being the attack against the South Korean financial sector, attributed to a Chinese actor.

Chinese hackers were also blamed for using ARTEX in attacks targeting more than 200 organizations in the government, telecommunications, pharmaceutical, semiconductor, defense, nuclear, and financial sectors.

Microsoft had observed a China-aligned actor using the pentesting framework since September to obtain “privileged access to an organization’s cloud infrastructure,” sometimes in less than three hours.

The offensive framework became so popular with malicious actors that the FBI warned in mid-November about it being weaponized by multiple threat actors.

In a public alert this weekend, the FBI has urged defenders to adopt AI automation into the incident response process to match the machine speed  of the current barrage of attacks.

Honeypots exploiting bugs

ArtexPot includes seven honeypots that exploit three design weaknesses in ARTEX, turning its engine “into a gift for defenders”:

  • attack-only prompts: agents lack operational security instructions, which does not prepare them for hostile files from the target
  • one container with root permissions has outbound network access and includes the operator’s keys (LLM API, signing) and credentials
  • parallel AI agents do not share security warnings in real time

Because ARTEX’s workers, backend services, and generated code operate in a shared container with root privileges and unrestricted outbound network access, compromising any of them could expose the operator’s credentials, campaign data, identified vulnerabilities, and previously collected credentials.

ArtexPot honeypot obtaining root inside ARTEX
ArtexPot honeypot getting root inside ARTEX
source: NebuSec

Direct prompt injection ineffective

NebuSec put ArtexPot to a battery of tests, which included a set of eight prompt injections on one target that told the agent to fetch and execute a script.

This approach failed as the workers downloaded the script in seven cases but never executed it, with ARTEX’s planner detecting the prompt injection attempt and instructing the workers to just inspect it statically.

Command injection also failed, the researchers said in a report this week, adding that “the agents quoted or encoded the untrusted input and flagged it as honeypot bait.”

NebuSec conducted 36 initial tests against ARTEX 0.3.15, which was powered by DeepSeek’s deepseek-flash-cyber and OpenAI’s gpt-5.6-sol models. ArtexPot compromised the execution environment in 33 runs, succeeding in all 18 tests involving DeepSeek and 15 of 18 involving OpenAI’s model.

In the first attack class, a trusted tool turns on the agent via an exposed .git/ directory with a malicious .git/config that bypasses git-dumper’s sanitizer via a zero-day flaw and runs when the tool executes git checkout.

The second weakness allows code to run when the agent reads or imports data, like Python pickle files in exposed directories or hidden in form state, cookies and pagination cursors, and poisoned checked-hash .pyc files (PEP 552) that execute when Python imports the corresponding modules.

The third attack class relies on the agent deliberately running target-supplied code. NebuSec used a backdoored SDK that the agent is led to install.

A second round replaced the SDK’s implant with a bounds-check bug in a bytecode interpreter that let the server supply the code.

Each trap delivers a loader of about 4.4 KB that opens an encrypted command-and-control (C2) session.

ArtexPot success rate against ARTEX AI
ArtexPot success rate against ARTEX AI
source: NebuSec

Most runs lasted less than three minutes, and the backdoored SDK was successful in all eight cases. In one instance, when exploiting the git-dumper zero-day vulnerability, ArtexPot obtained root inside ARTEX in just 27 seconds.

NebuSec researchers on November 28 notified the maintainer of the open-source git-dumper tool of the bypass they discovered.

ArtexPot catches pentest agents

On November 15, researchers deployed the ArtexPot honeypot on the NebuSec platform and caught two automated agents probing it.

“One used ARTEX, the other used an unknown pentest framework,” the researchers say.

​The honeypot returned five verified reverse shells, one of them in 57 seconds for the unknown pentest framework and just 14 seconds in the case of the attacking ARTEX, with the agents’ existing non-root privileges.

“Measured from the first request, the shells returned after 3 minutes 42 seconds and 2 minutes, respectively,” NebuSec notes.

The public version of ArtexPot is not the most powerful variant of the honeypot system. The researchers said that they built a more capable research version the leverages zero-day vulnerabilities and extra deception techniques designed to defend against AI cyberattacks.

NebuSec recommends that developers of autonomous AI penetration testing frameworks isolate workers in disposable sandboxes and remove sensitive credentials from their execution environments.

It is also advisable to restrict outbound network connections and to implement mechanisms that stop parallel workers when a threat is detected.

The company is also warning that hacking back without authorization is illegal in many jurisdictions. NebuSec designed ArtexPot to collect only basic information from the compromised environment before terminating the connection, without maintaining persistent access.

article image

On December 15th, join Eoin Hinchy, our co-founder and CEO; Martin Moroney, our Head of AI Transformation; and Christina Troy, our Sr. Manager, IT for an open conversation about what worked, what didn’t, and what we learned along the way.

Bring your questions and get candid insights!

Register and ask your question



Source link