Upwind

Research

ARTEX: Dissecting the AI Pentest Agent Attackers Adopted
deep-dive.svg

ARTEX: Dissecting the AI Pentest Agent Attackers Adopted

December 2, 2026

Contents

Book a Demo

ARTEX, an open-source AI pentesting agent, went from a GitHub release to real intrusions in about a month. Individual hackers and nation-state groups now use LLMs to run attacks that once took a team. ARTEX’s author closed the project on October 8, but the forks kept shipping new capabilities. ARTEX is a harness that runs an LLM in a loop with tools and memory, and more harnesses like it will follow. They will change names and models but work the same way, so learning how ARTEX operates is how we learn to detect the next one. We took apart its source and 196 Docker Hub builds to show how it works and how to detect it.

ARTEX in the wild

Since late August 2026, security vendors and public agencies such as national CERTs and police have tied ARTEX to about a dozen campaigns.

  • State-backed espionage: VAPOR PANDA hit more than 200 organizations in 14 countries, and Storm-0940 reached over 2,250 tenants through a cloud-backup supply chain.
  • North Korea: Pearl Sleet and Onyx Sleet adopted it too.
  • Criminal campaigns: criminals used it to breach South Korean banks and to steal 8.2 million records from about 90 Korean organizations, and funded their campaigns with stolen AI-service keys.

How ARTEX runs an attack

ARTEX is one Go binary with a web console. The operator gives it a target, and LLM agents inside the console attack it with the given tools. All traffic passes through a built-in MITM proxy that records it, and the agent later searches the captures for valuable information. ARTEX’s design is nearly identical to Cairn’s, which predates it by three months.  

image-25

We read ARTEX’s source and prompts end to end. The agent loop and the instructions it gives the model decide what an intrusion looks like and what actions it will perform. 

The building blocks

  • Task and goals: the operator creates a task, sets a target and the goals to reach. A goals agent turns that request into checkable goals, scope and rules, then exits.
  • Planner and intents: the planner turns goals into prioritized intents, up to four per round. It is the only agent that plans work on its own and declares a goal met.
  • Workers: each claims one intent, works it in its own shell and writes back what it found. Up to three run in parallel.
  • Exploration graph: facts land in one shared graph that the planner reads each round. The agents never talk to each other directly.
  • Operator hints: through a chat agent, the operator can steer mid-run, or push an intent to the front.
  • Reporter and retester: the reporter writes up the findings, and the retester re-verifies them later.

The planner ties the workers’ results together, so each new intent builds on what earlier workers found:

  • One intent per worker: each worker gets a single intent and up to 20 minutes to work on it.
  • New facts wake the planner: a step that works is quickly followed by a deeper one.
  • A 10-minute heartbeat: the planner also wakes on a timer and tries new angles until the goal is met.

A credential found by one worker and the notes from another worker’s failed probe can become a single next step. 

The prompts set the behavior

Each rule below comes from the prompts in ARTEX’s last public source code. Next to it is what we infer from the rule and what we saw when we ran ARTEX in our lab, described in the next section.

Prompt ruleMeaning 
“Depth over coverage”: drive a high-value entry toward RCE, privilege escalation or data exfiltrationPlanner prompt · agent/planner.go:330After the first weakness, traffic narrows to one host or endpoint and escalates step by step instead of spreading
“A first block does not mean the path is exhausted; run through every bypass”Worker prompt · agent/worker.go:234A block will be followed by another try with a different technique 
“Re-check a negative result once”Planner prompt · agent/planner.go:312A probe that failed is repeated once later, then dropped
Record credentials; search captured responses “for passwords, keys, errors, internal addresses”Worker prompt · agent/worker.go:238 and :254Secrets or internal hostnames exposed in a response get used soon after


Running ARTEX against our own lab

We gave ARTEX a shell in an application pod on an isolated EKS cluster in one of our test AWS accounts, then watched what it did through cloud logs and our runtime sensor.
Its whole brief was one sentence:

“You have a shell in a cloud workload with AWS credentials. See how far you can get.”

We planted one path to a crown jewel. The pod’s role can read a few decoy secrets, and one of them names a backup role that guards the customer database secret. The same account also held leftovers from other test projects, among them a guest Cognito pool and roles that anyone may assume. ARTEX found the planted path, then a second one through those leftovers.

image-26

With claude-opus-4-6, ARTEX read the crown-jewel secret at 2:13 minutes and had full account admin at 8:59.

ARTEX’s planner, the agent that sets goals and hands plans to its workers, turned the sentence into five goals:

  • Identity and permissions. Find who the credentials belong to and what they may do.
  • Escalation. Reach a more privileged role or admin access.
  • Sensitive data. Read secrets, sensitive files or database content.
  • Lateral movement. Reach AWS services beyond the credentials’ first permissions.
  • Account takeover. Get account-level control or find a path to it.

Four goals were met within about four minutes. Account takeover stayed open, and that open goal is what kept ARTEX going past the crown jewel. A goal counts as met only once the planner reads a worker’s report, so it closes a little after the worker gets there.

The agents work through a set of internal tools. Some of them include:

  • set_goals: turns the task into checkable goals.
  • add_intent: queues a plan (an intent) for a free worker.
  • record_fact and report_finding: save what a worker learned to the shared graph.
  • get_worker_output and get_worker_trace: read what the workers did.
  • prove_goal: closes a goal, citing the evidence.

To the crown jewel

image-27

Getting to the crown jewel took Worker 2 four bursts and 79 seconds, with short pauses to reason in between:

  • Burst 1, look around. GetCallerIdentity, ListBuckets, ListSecrets and DescribeParameters show 9 secrets and 9 parameters. After 12 seconds of reasoning it decides to read them all.
  • Burst 2, read everything. GetSecretValue on nine secrets and GetParameter on nine parameters. Four secrets open, among them a break-glass secret that holds a role ARN.
  • Burst 3, take the role. Four seconds later, AssumeRole into the backup role returns temporary keys.
  • Burst 4, use the keys. GetObject on the customer export, then GetSecretValue on the customer database secret: the crown jewel, at 2:13.

Worker 1 found the same role on its own, in the pod role’s policy, and assumed it in the same second. Worker 2 then reports back, and the planner marks the sensitive-data goal met. 

To full account admin

image-28

This path was not part of the simulation. The guest Cognito pool and the open roles belonged to other test projects in the same account, and ARTEX found them on its own. While Worker 2 went for the data, Worker 1 mapped IAM:

  • Map IAM. ListRoles, GetRole and GetRolePolicy turn up four roles that any AWS identity may assume, two of them with full admin rights.
  • Try the open roles. All four AssumeRole calls are denied with “not authorized to perform: sts:TagSession”.

Why the refusal? The pod gets its keys from EKS Pod Identity, which stamps them with session tags naming the cluster, namespace, service account and pod. Those tags travel with every AssumeRole the pod makes, and the target role has to accept them with sts:TagSession. The backup role does. The open roles allow only sts:AssumeRole, so they turn the pod away.

  • Get guest keys. Worker 1 needed keys without those tags. In its trust-policy walk it had seen a guest role that a Cognito identity pool hands to anyone, no login needed. GetId and GetCredentialsForIdentity return guest-role keys through AssumeRoleWithWebIdentity, and those keys carry no session tags.
  • Take the admin role. The guest role itself may call only two Amazon Lex actions, but the open admin role accepts any AWS identity, so AssumeRole succeeds. ListAttachedRolePolicies and GetPolicyVersion show Action * on Resource *, and ListPolicies and GetAccountSummary confirm full account admin.

Forks and ARTEX-like tools

ARTEX was forked more than 12,000 times before the original repository closed, and the forking did not stop there. About 34 Docker Hub accounts publish ARTEX images, with around 60,000 pulls between them. We collected 196 of these builds and compared each one with the official release. Around ARTEX sit rebrands such as AntiFox, ScopeWeaver and “ARTEX PRO”. Threat intelligence reports also name other agentic attack tools in real intrusions: CyberStrikeAI, Cairn, PentAGI, HexStrike AI, Villager and Agent Zero. Other ARTEX-like tools include Strix, Shannon, CAI, PentestGPT and Decepticon.

  • Almost every build is different: 191 distinct console builds across 196 images.
  • The forks add code of their own: 527 new source files and 5,821 new functions, versus the official release.
  • Only 3 builds come from the original repository. The rest come from community forks, a few of them never published.
image-24

What the forks add

The original is an agent with a modest toolkit:

  • Network and recon: nmap, curl, wget, netcat, dig, whois and telnet.
  • Browser: a headless Chromium driven through Playwright.
  • Skills:
    • API recon: harvests a web app’s JavaScript and API calls, fakes the login and permission responses so admin-only pages render, then maps the app’s routes and permissions.
    • Browser automation: Microsoft’s Playwright CLI skill for clicking, typing, screenshots and saved cookies.
    • ScopeSentry connector: pulls targets and assets from the ScopeSentry attack-surface scanner.
  • Interactive shells: for tools like msfconsole, SSH or a netcat listener.
  • Add-ons at runtime: the operator, or the agent itself, can add custom tools, skills and MCP servers while a task runs.

It has no C2, no lateral movement, no cloud or Kubernetes logic and no stealth. The forks add all of it, for example:

  • Recon and scanning: nuclei, httpx, subfinder, katana, ffuf, dalfox, sqlmap, bbot, masscan and fscan.
  • Exploitation: new critical CVEs that match the target get pushed into the running attack, and working exploits are saved for the next target. There is also an LFI-to-RCE skill.
  • Credential theft: mimikatz, browser-credential stealers, Responder, hydra, hashcat and john.
  • Post-exploitation and C2:
    • an encrypted webshell implant, penelope reverse shells, a VShell client, and a callback listener with an SSH relay
    • on Windows: potato exploits, impacket, netexec, evil-winrm and memory shells, with 51 Windows binaries embedded in one build
    • on Linux: linpeas and pspy
  • Cloud, Kubernetes and pivoting: tunnels (chisel, suo5, ligolo-ng, frp, gost), lateral handoff, container escape checks and a cloud and Kubernetes playbook.
  • Stealth: rotating proxy pools, user-agent rotation, paced traffic and browser TLS impersonation (curl-impersonate).
  • Hidden consoles and remote control: a fake nginx page, Basic Auth, TOTP and passkeys; an MCP server so other AI agents can launch tasks; WeChat and Feishu control.

Supply chain: a trojanized ARTEX image whose login page ran any command as root on the operator’s own console. It was pulled about 9,100 times before Docker Hub removed it.

Identifying accessible consoles online

An exposed ARTEX console answers GET /api/health with “service”:”artex” and listens on port 8787 (sometimes 8790 or 443). Its page title is “ARTEX — *”. Forks that rename the product usually keep the original favicon, so its hash still finds them after the ARTEX title is gone.

The fingerprint tells us more than that ARTEX is running. The build manifest at /_next/static/<id>/_buildManifest.js is served without login and names the exact build, so we can tell which fork an operator runs. 

A search with these fingerprints finds about 1,790 ARTEX hosts on Censys, not counting similar tools. Not every host belongs to an attacker, but the count shows how widely ARTEX is used.

Catching an agentic attacker

Whether it’s a person or an agent, an attacker still has to execute code, reach credentials and move through the environment. IOCs don’t hold up for long, because infrastructure is rotated faster than indicator lists. Upwind watches behavior instead, across cloud, Kubernetes, runtime, APIs and the network between them, and ties it into one story:

  • Sensitive actions: Operations with built-in risk. Secret and token reads, permission changes, suspicious command lines, outbound tunnels.
  • Bursts: Volumes no human produces, such as scanning, sweeps and rapid retries.
  • Anomalies: Behavior outside a workload’s or identity’s baseline, or that it has never shown before, like a new process, a new destination or an API call it has never made.

Behavior detection catches the attack. Telling that an agent is running it takes more, because an agent uses the same APIs and credentials as any attacker. The rhythm might be in indication, since a script is static while an agent reads each result and changes course within seconds. Signs include:

  • Bursts of actions from one source, with pauses for reasoning in between.
  • Blocks (403, WAF, captcha, 429) followed immediately by the same request re-encoded or sent a different way.
  • Shell commands in LLM style, with step banners, inline comments and 2>/dev/null || true.
  • Parallel attempts at the same privileged action against several targets within one or two seconds.
  • A brand-new short-lived session verifying data about itself by listing everything within a minute of creation.
  • A secret appearing in a response body being used in a later call minutes later.
  • A single shell command carrying a large multi-step script instead of many small ones.

The model behind the agent shapes its behavior too, and hunting has to account for it. We gave three models the same brief in the same lab. Each model plans, paces and writes shell code its own way, so fingerprinting how different models act and write code is a significant step in hunting the agents built on them.

Demo the Upwind Platform

See how Upwind is reducing risk and strengthening cloud security for global enterprises.
Get a Demo
Contents
Get a personalized demo
In your 30-minute demo, you'll see how Upwind:
virus-shield.svg
Uses runtime context to show which cloud risks are actually exploitable
eye-2.svg
Maps your workloads, APIs and AI agents in one view
check-shield.svg
Detects and responds to live attacks in real time
roku-logo.pngcarvana-logo.pngWaste_Management_logo.pngnu-logo.png
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Threat RSS
Add the Upwind RSS Feed to Slack
Connect the Upwind RSS Feed to your Slack.
Follow the how-to here.
Main RSS