threat-research llm-security

Inside ARTEX: How the AI Attack Framework Works

Matt Lenhard 3 min read

Share

Get our latest research

Threat research and engineering notes, monthly.

ARTEX has dominated most of my feeds over the past few weeks. I wanted to look at the code to better understand how it worked under the hood.

I pulled an archive from GitHub and spent some time with Claude to understand its architecture.

I also used Shodan to get a better idea of the hosting landscape. Most relevant to us was that 17% of hosted ARTEX servers were also running software for pooling and reselling LLM API access.

Timeline

For those less familiar with ARTEX, I included a timeline and the incidents tied to it.

Timeline of ARTEX from its GitHub release on July 26, 2026 to mid-November: project events, attack campaigns using it, and public reporting
ARTEX timeline, July–November 2026

The Agent Model

ARTEX architecture diagram: operator console, orchestration, goals decomposer, planner and worker agents on the Norma SDK, guard layer, tools, model access layer with key failover, and Postgres data stores
ARTEX system architecture (v0.3.15)

A user writes a goal that a Goal agent decomposes into specs and constraints. The planner agent then takes these specs and turns them into intents.

Worker agents pick up these intents and write “facts” back to a shared store that the planner agent reads. Under the hood, it uses a graph-based model for storage (in Postgres).

There are two underlying data models: one representing what is known about the target and one representing what has been tried so far.

When a worker reports a finding, a reporter agent writes up the POC, and the new facts and findings trigger events that kick it back to the planner agent.

Once the planner agent has verified the findings, it uses the prove goal tool to mark the goal as met.

The Data Model

As I mentioned above, everything is built on graph-shaped data in Postgres.

The asset graph represents all the domains, endpoints, credentials, frameworks, and IPs of the target.

The Exploration represents everything that has been tried so far. The Goals, intents, and facts are represented as nodes, and the edges are the relationships between them (e.g., an intent yields a fact).

Model Layer

The model layer is relatively straightforward. It has built-in fallbacks and is well suited to working with relays and other infrastructure for rotating through stolen keys.

Our Shodan data backs this up: 350 IPs hosting ARTEX also ran LLM relay or reseller software (more below).

Fingerprints

Most of these are easily rotatable, but still worth adding to stop some of the spray-and-pray attempts.

How Many Are Out There?

We used Shodan's scan data on Nov 20.

2,011 unique IPs are running an ARTEX console/ For comparison, AhnLab counted ~600 on Oct 6 and Censys 1,465 on Nov 4. The breakdown is as follows US 892, Hong Kong 448, China 219. 94% still use the default Chinese console title.


Most relevant to what we’re doing at Vectoral, 350 ARTEX IPs (17%) also run an LLM API gateway or reseller software, mostly Sub2API, New API, and CLIProxyAPI.

Conclusion


I’m guessing the agent attack frameworks will be a hot topic over the coming months. We’re seeing the cost of cyberattacks trend towards zero. Companies that previously didn’t make financial sense to target now are targets. Growing pains ahead, but we’ll get through this. This was the push needed for organizations take cybersecurity seriously.



Share