Lab write-up — CD Security Lab

The short version

Attackers have started handing the whole break-in to AI. One of the tools they use is called ARTEX. It is free and open source. Public reporting ties it to real intrusions since August 2026.

The detail I like, because it is the one thing the AI cannot hide: it is too regular. Its password guessing runs at a steady beat, roughly one try every second. People are never that steady.

One second apart, every time

What ARTEX actually is

Think of it as a small team of AI agents:

  • One agent makes the plan.
  • Other agents do the work: scan, guess passwords, try exploits, move deeper.
  • They keep going until they reach the goal, or run out of road.

Targets in the reporting: Microsoft 365, Entra ID, Okta, AWS, Azure, web apps and Active Directory.

 [ THE PLAN ] <- one AI decides the next move / | \ [AI 1][AI 2][AI 3] <- others run the real attack tools | | | M365 Entra ID Azure / AWS 

The free defence pack

A company called ThreatDefence published a detection pack on GitHub under the MIT licence. Free, no sign-up.

For Microsoft Sentinel you get:

What How many
KQL hunting queries (ARTEX) 31
Scheduled analytics rules 7
Watchlist of known-bad indicators 1 (AGENTIC_IOCs)

It also ships Sigma, Suricata, Zeek, YARA, Splunk and Elastic versions, and covers ten other agentic frameworks besides ARTEX.

Repo: https://github.com/ThreatDefence/agentic-attack-detections

The first hunt I would run

Failed sign-ins, grouped by source IP and user agent, then measure the gap between attempts.

union isfuzzy=true SigninLogs, AADNonInteractiveUserSignInLogs | where TimeGenerated between (datetime(2026-08-01) .. now()) | where ResultType != "0" | project TimeGenerated, IPAddress, UserAgent, UserPrincipalName, ResultType | sort by IPAddress asc, UserAgent asc, TimeGenerated asc | extend GapSec = iff(IPAddress == prev(IPAddress) and UserAgent == prev(UserAgent), datetime_diff('second', TimeGenerated, prev(TimeGenerated)), long(null)) | summarize Attempts=count(), Users=dcount(UserPrincipalName), MedianGapSec=percentile(GapSec, 50) by IPAddress, UserAgent, bin(TimeGenerated, 1h) | where Attempts between (200 .. 100000000) and Users between (20 .. 100000000) and MedianGapSec between (0 .. 2) 

Read it in plain words:

  1. Take every failed sign-in.
  2. Line them up per IP and user agent, oldest first.
  3. prev() gives you the previous row, so GapSec is the pause between two tries.
  4. Keep the sources with 200+ failures, 20+ users, and a median pause of 2 seconds or less.

A person who forgot their password does not fail 200 times across 20 accounts at a metronome pace. A script does.

(This is hunt 02-password-spray-at-a-fixed-rhythm.kql from the repo. Microsoft reported that one-second rhythm in Storm-0940 ARTEX sprays.)

Then work in order

The repo's own hunting order, which is worth following because each step narrows the next:

  1. Sweep the indicators. Load the watchlist, look back 90 days. A hit tells you where to start. No hit proves nothing: addresses rotate in minutes.
  2. Check identity. The fixed-rhythm spray, then the spray that ends in a success, then service principals.
  3. Check apps and APIs. ARTEX maps an app loudly before it attacks it.
  4. Check cloud accounts. Any identity that showed up in steps 1–3, then every long-lived access key.
  5. Check servers, then the network. A web or database service starting a shell is the moment an attack became an intrusion.

Before you turn anything on

The author is honest about this, so I will be too:

Status: Experimental. Tested for syntax, conversion and against a synthetic pcap. No rule here has been tested against a captured ARTEX intrusion.

So:

  • Run each rule over 30 days of your own data first.
  • Keep a list of your authorised scanners and red teams and exclude them, or you will chase your own pentest.
  • Raise the thresholds until the noise is gone, then enable the alert.
  • Treat low-confidence indicators (AI model APIs, webhook.site, proxy ASNs) as context only, never as a finding on their own.

Download, and is it safe?

I checked the repo before recommending it (commit 31631af, 25 Nov 2026):

Check Result
Files 826, all plain text (KQL, Sigma YAML, Suricata rules, CSV, Markdown, Python, shell) plus 4 small test captures
Programs (EXE, DLL, ELF, archives) None
Executables hidden inside the test captures None
Scripts that download and run code, or long encoded blobs None found
Sentinel template Only analytics rules, saved searches and one watchlist. No role assignments, no VMs, no automation

Two honest limits. This was a manual static review, not an antivirus verdict. And because the pack lists attacker strings, hashes and addresses, your antivirus may flag the YARA and indicator files. That is a false positive on signatures, the same way an antivirus flags its own definitions.

Sources

Lab build. No customer data, no production telemetry.

Made by CD with love from VietNam. One short Microsoft security video a day at 20:00 (Vietnam time) on YouTube: CD Security Lab.

Thanks for reading! I'm Cuong, and on CD Security Lab I rebuild real Microsoft security cases in a safe lab and explain them simply. Follow along:

Got a question about your own tenant? Drop it in the comments.