Product

Hunting adaptive intrusions: Detection engineering with ARTEX

Written by
Darya Fleishman
Oren Biderman
Published on
November 30, 2026

ARTEX has moved quickly from GitHub project to intrusion tooling. Microsoft, Google Threat Intelligence Group, and Unit 42 have all published on threat actors using it, from financially motivated groups to state-aligned clusters. Their reports are written from the victim side: incident response cases and telemetry across many customers. This post comes from the other side. We ran ARTEX in an instrumented lab, lined up its execution logs with the WAF, load balancer, DNS, and cloud logs it produced, and looked at which decisions left a trace a SOC could use.

The scope is the web and API layer, where Microsoft notes ARTEX does most of its work, and the first hops after it. The lab was an AWS environment running a deliberately vulnerable setup, with ARTEX configured to use DeepSeek.

How ARTEX's design shows up in your logs

Microsoft's breakdown of the architecture is the most useful one to start from. A goals model splits the task into verifiable objectives. A planner reads a shared graph of assets and findings and issues short directions, called intents. Workers claim intents, run tools, and write results back to the graph, which wakes the planner again.

Each part of that loop leaves something behind:

  • Workers run in parallel. One worker can be mapping routes while another works on an endpoint already found. Overlapping bursts from one task can arrive from more than one session, so grouping by client IP alone can split a single run into several weaker signals.
  • The planner waits on the model. Unit 42 measured bursts of 1 to 14 requests about a second apart, followed by pauses of 25 to 31 seconds.
  • Workers act on responses. An error or a block becomes input for the next request. This is the behavior the mutation rule below is built on.
  • Default deployments identify themselves. Microsoft documents two ARTEX user agents: artex-enrich/* on a short title-grabbing GET to each newly discovered asset, and norma/* on requests made through the agents' built-in web fetch tool. Operators change these, so treat them as context rather than a rule on their own.

Detection 1: broad probing (credit: Microsoft)

The default configuration is noisy and volume catches it. Microsoft's hunting query flags a client that requests 100 or more distinct paths with 50 or more 4x responses in one minute.

Two adjustments help. Count paths without query strings, and if you have route templates, collapse paths that differ only by object ID. Expect authorized scanners and QA runs to trigger it.

The limit is that an operator who throttles, or a worker that stays on one route, stays below the path threshold. That is where the next rule comes in.

Detection 2: request changes after a block

When a worker is blocked or gets a validation error, it usually changes the request and tries again on the same route: a different method, the parameter moved from the query string into a JSON body, a new encoding. One change proves little. Several changes on one route, each following a block, is a sequence worth an analyst's time.

The query reduces each request to a shape: method, content type and the sorted set of parameter names. It then looks for shape changes that directly follow a confirmed WAF block on the same route.

// Post-block request mutation on a single route
// WebRequests = a normalized view joining WAF and access logs
// ParamKeys = parameter names from the query string and body (dynamic array)
let MaxGap = 60s;
WebRequests
| where TimeGenerated > ago(1d)
| extend SessionKey = coalesce(SessionId, UserId, ClientIP),
         Route = tostring(split(Url, "?")[0]),
         Shape = strcat(Method, "|", ContentType, "|",
                        strcat_array(array_sort_asc(ParamKeys), ","))
| sort by SessionKey asc, Route asc, TimeGenerated asc
| extend PrevKey = prev(SessionKey), PrevRoute = prev(Route),
         PrevAction = prev(WafAction), PrevShape = prev(Shape),
         PrevTime = prev(TimeGenerated)
| where SessionKey == PrevKey and Route == PrevRoute
    and PrevAction == "BLOCK" and Shape != PrevShape
    and TimeGenerated - PrevTime <= MaxGap
| summarize Mutations = count(), Shapes = make_set(Shape, 10),
            FirstSeen = min(PrevTime), LastSeen = max(TimeGenerated)
    by SessionKey, Route
| where Mutations >= 3

Use the WAF action, not the status code, to confirm a block, because the application can return 403s too. Group by session or authenticated identity where you have it; shared proxies and NAT make client IP unreliable. Detecting changes inside a body depends on logging those fields, which many WAF configurations do not do by default.

A skilled human with Burp produces the same pattern. That is acceptable: The rule is meant to catch an adaptive attacker, whatever is driving it.

Detection 3: Decoys, probe markers, and callbacks

Your canaries. Agents read what the application returns and act on it. A decoy route listed only in a source map or HTML comment, such as /api/v1/internal/debug, should see no legitimate traffic. A request that reuses a value only that decoy returned is stronger evidence still. For cloud credentials, the decoy has to be a real, zero-permission key, as Canarytokens does it: a made-up key that does not exist fails authentication and never appears in your CloudTrail.

Their canaries. Unit 42 found that ARTEX-driven activity tests with its own placeholder values first: bogus usernames before real ones and values such as evil[.]com, test@example[.]com and deadbeef-style strings. These are cheap to search for in identity provider and application logs and rarely appear in production traffic.

Out-of-band callbacks. When an injection does not return output in the response, the agent needs another way to confirm it worked. Watch DNS and egress from application workloads for OAST domains such as interact.sh and oast.*, and for webhook services: GTIG saw ARTEX send command output across 491 rotating webhook.site URLs.

Following it past the application

ARTEX made me think about speed at two levels. Request volume tells you how fast a source is probing. The time between a web probe and unusual activity on the workload or identity behind it tells you how fast the investigation has to move. Microsoft recorded privileged access less than three hours after initial targeting in multiple intrusions.

Telemetry What to look for
WAF, application and API logs Broad probing, mutation on a sensitive route, a request that reuses a decoy value
DNS and egress OAST or webhook lookups from the associated workload
Identity and cloud audit First use of a credential from a new source, permission probing, write-then-delete tests on storage
EDR Shells spawned by the web server process, short-lived script files with incrementing names in web directories

Correlate on the strongest link you have: session, workload, host, or identity. Closely spaced events matter when those links hold; in a busy environment, unrelated events happen seconds apart.

Rolling it out

  1. Run Detections 1 and 2 in hunt mode against a baseline that includes authorized scans, QA automation, and normal retries.
  2. Deploy decoy-value reuse and attacker-placeholder searches first. They are the highest-confidence signals and the cheapest to run.
  3. Promote the mutation rule once its false positives are understood.
  4. Keep cadence and default user agents as triage context, not alerts.

The correlation in the table above is the part that takes analysts the longest, and it is where defensive automation helps most: An agent can pull the workload's DNS, identity, and EDR activity the moment a web signal fires, and hand the analyst a timeline with the evidence attached.

Subscribe to newsletter

Subscribe to receive the latest blog posts to your inbox every week.

Thanks for your interest.
Oops! Something went wrong while submitting the form.
By subscribing you agree to our Privacy Policy.
Two pinkish translucent bubbles of different sizes on a black background.Two pinkish translucent bubbles of different sizes on a black background.Two pinkish translucent bubbles of different sizes on a black background.
Illustration of a mythical hippocampus creature with the upper body of a horse and the lower body of a fish with scales and a curled tail.Illustration of coral colony with tube-shaped and frilled coral structures in shades of pink and red on a transparent background.

For expert judgment, scaled to your world, head for Daylight