ARTEX and Cairn intent ID leaks: how to correlate attacks with them and avoid false attribution

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...

This article has been automatically translated.
If you're responsible for a logging pipeline, you may have run into a strange phenomenon recently: account names, file names, or User-Agent strings created by attackers contain a string of numbers like i37257. It looks like random noise, but it may be a useful clue. A code-level analysis explains that these numbers come from the "Intent ID" of two agentic offensive frameworks, ARTEX and Cairn, and describes what they look like in victim logs, what they can be used for, and when they will mislead you. This article is aimed at defenders, detection engineers, and SOC analysts who need to distinguish automated attack traffic from human attackers. The conclusion: intent IDs can serve as a supporting signal for correlating activity from the same attack installation, but must never be used on their own for alerting or attribution.
First, let's be clear about the products. ARTEX and Cairn are both open-source agentic offensive frameworks—that is, "attack executors" that use large language models (LLMs) to orchestrate reconnaissance and exploitation workflows. They break an attack into a number of sub-goals called "intents" and assign each intent an incrementing numeric ID. This number was originally an internal implementation detail; the problem is that the frameworks put it into the model's prompts and working directory, so when the model creates files, registers accounts, pushes GitHub workflows, or sets User-Agents, it copies along the number in front of it.
An analogy: a contractor's work order number is printed on the clipboard, and he writes it on invoices and labels without thinking. That number tells you "which job this is," but not "who the worker is." Intent IDs work the same way—they are tool markers, not attacker fingerprints.
The analysis reviewed more than a hundred open-source offensive framework repositories, and in the end only two families pass numeric intent IDs to the LLM and leak them to the target side: the ARTEX family (including branches such as Pojun and AntiFox) and the Cairn family (including sapper-v2). Understanding how they differ is the first step to reading the logs.
ARTEX stores all objects—intents, facts, findings, prompts, summaries—in the same PostgreSQL table, exploration_nodes, backed by a BIGSERIAL sequence. Each installation has its own counter, which by default never resets. This produces three log characteristics: the numbers keep climbing across multiple runs and multiple targets; intent numbers are rarely consecutive, because other objects also consume the same sequence; and a fresh installation may start in the double digits, while a long-busy installation can climb into the hundreds of thousands.
Cairn's design is the opposite. It counts separately by object type, formats intent numbers as three-digit zero-padded strings (i001, i002, …), uses f001 for facts and h001 for prompts, and resets the counter for every new project. So Cairn's numbers are small, consecutive, and have no gaps.
The direct implication for defenders: if you see bare integers that climb and have gaps, lean toward the ARTEX family and try cadence analysis; if you see small, consecutive, three-digit zero-padded numbers, lean toward Cairn and don't use them for cross-event correlation, because it starts from scratch for every project. Get the family wrong and you'll draw the wrong conclusion about whether two sightings are the same campaign.
This is where intent IDs are genuinely valuable. Because an ARTEX database never assigns the same number to two different intents, when you see numbers climbing steadily across rotating IPs or different victims, they very likely point to the same installation. Proxy rotation can break IP-based clustering, but it can't break this counter.
The analysis gives a very intuitive example: in one intrusion, the attacker used a stolen IAM user in AWS and a service principal in Azure. On the AWS side, 36 intent IDs were found (in SSM command comments and resource names); on the Azure side, 34 were found (in resource names, tags, and role assignment descriptions). All came from the same climbing sequence, so two unrelated identities were linked to the same run.
The reverse also holds. Repeated numbers on different targets indicate different installations; numbers that jump out of order (i37257 on Monday, i4100 on Tuesday) indicate the sequence was split. There is also an inference based on a single victim's logs: if the numbers jump from i14200 to i15100 within an hour while your logs show only sporadic probing, those missing numbers went elsewhere—this looks more like opportunistic scanning across many targets than a campaign aimed specifically at you.
It's important to stress that this method distinguishes "installations," not "operators." The same person can easily run multiple ARTEX instances in parallel.
The analysis explicitly lists the failure modes; ignore them and you'll over-trust this signal.
So in practice, a single intent ID should never trigger an alert. It must be paired with an "anchor," such as an artex-, pentest-, probe, or canary prefix in an account name, User-Agent, CI workflow, or cloud resource, or a leaked run directory path tasks/<task>/i<N> in command-line telemetry. Also, names are preserved in error messages for rejected calls, meaning blocked attempts leak the number too.
The pattern the analysis gives is simple: anywhere an API lets users supply context, naming, or comments, an intent ID may appear. Observed surfaces include:
So in cloud audit logs, free-text naming fields should take priority over platform-generated structured fields.
Below are practical steps based on the mechanisms above, for you to check your own detection system. They describe what to check, what to expect to see, and what to do when it fails—not the results of any particular test.
If you only have single-point, short-duration logs, or you're dealing with the Cairn family, cadence analysis of intent IDs has limited value. It's also not suited to answering "who is the attacker"—it can only suggest "whether these activities come from the same tool installation." Use it as a corroborating signal alongside other anchors such as boto3 build characteristics and proxy pool overlap, which is how the analysis describes it.
For detection engineers, the most practical change may not be adding a new alert, but re-examining those free-text naming fields: they've long been treated as low-value metadata, yet they're exactly where automated tools are most likely to leave traces.