Report an Incident Become a Partner Careers Contact
Book a Demo
Threat Research

Three Web Shells In Thirteen Minutes: Hunting Agentic Offensive Frameworks With The Signals CISA And Microsoft Just Published

Heider Albadawi · Senior SOC Analyst 2 December 2026 8 min read
A bar chart of distinct commands per minute: low grey bars along a dashed "normal app activity" line, then a tall red spike labelled "3 web shells", beside the headline "Thirteen minutes. Three web shells."

Two pieces of guidance landed within a day of each other this week, and they describe the same problem from opposite ends. On 30 November, CISA published an alert on agentic offensive frameworks: AI-driven toolkits that plan and run intrusion steps with little human input. It says it has responded to numerous incidents involving them across federal, state and local government and critical infrastructure. On 1 December, Microsoft published a detailed write-up of one such intrusion, with the timings, the techniques and a set of Defender XDR hunting queries.

Neither describes a new vulnerability. What has changed is tempo. This post pulls the two together into a hunt you can run in Microsoft Defender XDR and Microsoft Sentinel this week.

What CISA is warning about

According to coverage of the alert, CISA names five frameworks as examples: ARTEX, Cairn, PentAGI, HexStrike and CyberStrikeAI. Some started life as legitimate penetration-testing projects. The points that matter for defenders:

  • Same techniques, more of them. The alert reports no new CVEs. The frameworks exploit the same classes of weakness as human operators, but run many attempts in parallel and cheaply probe things a human would skip, such as old APIs, forgotten subdomains and repository history.
  • Speed over stealth, for now. Current tooling is noisy. Intrusions can move from foothold to data theft in minutes, and CISA's detection advice leans on that: alert on high-volume bursts of activity, on security tools being disabled, and on outbound traffic that does not match the baseline.
  • The basics still decide it. Limit and secure internet-facing assets, patch, use phishing-resistant MFA, apply least privilege, segment, centralise logs off-host, and rehearse incident response.

What Microsoft saw: an intrusion in minutes

Microsoft's anchor case is an internet service provider. The operator's infrastructure was linked to a self-hosted AI penetration-testing console that appears to have been repurposed. Microsoft is careful to say its evidence "does not establish complete autonomy", so AI assistance is its assessment rather than a proven fact. The observed timeline:

  • Start: command execution through a custom PHP application on a Linux server, followed by quick inspection of the host, the application's files, its credential-decoding routine and its database settings.
  • About 7 minutes: queries against subscriber records using the application's own database helper and recovered credentials.
  • About 13 minutes: PHP web shells on three peer servers, reached by reusing an upload path found in a neighbouring application.
  • After that: database login testing, internal discovery, native tools staged and launched on peers, and, once direct outbound connections failed, an internal relay set up on a peer that could reach the internet.

Microsoft describes seven more intrusions with similar patterns across government, retail, telecoms and payments, rail, education and hosting. The one Windows defenders should study is the government case. It started with command execution through WebLogic, then moved to authentication relay activity aimed at Active Directory Certificate Services (AD CS), and a successful network logon from the relay host using a domain controller's machine account. Microsoft notes this does not prove a certificate was issued or the domain was taken over. It is still the path to watch: an NTLM relay to AD CS web enrolment, often called ESC8, can turn one coerced authentication into a certificate for a domain controller. Our explainer on AD CS covers the background, and we hunted a human-run version of the same chain in our help desk to ESC8 write-up.

Hunting in Microsoft Defender XDR and Sentinel

Microsoft's post includes five Defender XDR queries, and they are worth running as published. The queries below are our own and complement them. They are starting points to tune, not finished detections. Run them over 30 days, baseline what is normal for your estate, and only then alert. Several rely on Defender for Endpoint being deployed on your Linux servers, which is a gap in many estates.

1. Bursts of distinct commands from an application runtime

DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName in~ ("php", "php-fpm", "java", "node", "httpd", "apache2", "nginx", "w3wp.exe", "tomcat9.exe")
| where FileName in~ ("sh", "bash", "dash", "zsh", "cmd.exe", "powershell.exe", "pwsh.exe")
| summarize DistinctCommands = dcount(ProcessCommandLine), Sample = make_set(ProcessCommandLine, 10)
    by DeviceName, InitiatingProcessFileName, bin(Timestamp, 1m)
| where DistinctCommands >= 15

A web application occasionally shells out. It does not run fifteen different commands in a minute. This is the "high-volume burst" signal CISA describes, expressed as a query.

2. Credential and key files read from an application context

DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName in~ ("php", "php-fpm", "java", "node", "sh", "bash")
| where FileName in~ ("cat", "grep", "find", "head", "tail", "tar", "base64")
| where ProcessCommandLine has_any (".env", "id_rsa", "id_ed25519", "authorized_keys", "/etc/shadow", "wp-config", "database.yml", "settings.py", ".pgpass", ".my.cnf", "credentials")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

Our post on exploits that go straight for .env files covers why secrets in readable configuration are now the first target.

3. Uploads to webhook and notification services

DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName in~ ("curl", "wget", "curl.exe")
| where ProcessCommandLine has_any ("ntfy.sh", "webhook.site", "discord.com/api/webhooks", "hooks.slack.com", "pipedream.net", "requestbin")
| where ProcessCommandLine has_any ("--data-binary", "-F ", "--upload-file", "-T ", "@")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, ProcessCommandLine

Servers rarely have a reason to post files to public notification services. If yours do, list them and exclude them explicitly.

4. Relay and coercion tooling

DeviceProcessEvents
| where Timestamp > ago(30d)
| where ProcessCommandLine has_any ("ntlmrelayx", "certipy", "petitpotam", "printerbug", "coercer", "dfscoerce", "--adcs", "certfnsh.asp")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessCommandLine

These tools run on the attacker's foothold, which is often a Linux server or an unmanaged box, so this only fires where you have endpoint coverage. Query 5 catches the result on the identity side.

5. A domain controller's machine account logging on from somewhere else

let DomainControllers = dynamic(["DC01", "DC02"]); // replace with your DC names
IdentityLogonEvents
| where Timestamp > ago(30d)
| where AccountName endswith "$"
| extend AccountHost = toupper(trim_end(@"\$", AccountName))
| where AccountHost in~ (DomainControllers)
| where isnotempty(DeviceName) and not(toupper(DeviceName) has_any (DomainControllers))
| project Timestamp, AccountName, DeviceName, IPAddress, LogonType, Protocol, DestinationDeviceName

A domain controller's own account authenticating from an application server is the pattern Microsoft recorded in the government case. On the certificate authority itself, forward the CA's issuance events (4886 and 4887) to Sentinel and review any certificate issued against the DomainController template to a requester that is not a domain controller.

What to do now

  1. Close ESC8. If AD CS web enrolment is not needed, remove it. If it is, require HTTPS with Extended Protection for Authentication and disable NTLM on the enrolment endpoints. Enforce SMB and LDAP signing, and patch the coercion paths.
  2. Shrink the front door. Inventory internet-facing applications, especially custom PHP, Java and Node.js apps and admin interfaces. Patch or retire them. Disable shell-capable functions in PHP where the application does not need them.
  3. Get your Linux servers into Defender and Sentinel. Every timing in Microsoft's case came from telemetry on Linux application servers. Without it you would see only the end of the story.
  4. Restrict egress from servers. Application servers should reach a short, known list of destinations. Alert on new listeners and on one server starting to forward traffic for its peers.
  5. Get secrets out of readable files. Move them to a vault, use managed identities where you can, and rotate anything that has sat in a config file on an internet-facing host.
  6. Agree containment in advance. At this tempo there is no time to debate isolating a server. We wrote about setting containment rules before the machines arrive.

How a managed SOC helps

In Microsoft's case, the attacker had web shells on three servers in about thirteen minutes. A queue that is looked at every morning cannot keep up with that, and neither can a monitoring service that only escalates after an analyst has finished their other tickets.

Our SOCs are staffed 24/7, with Microsoft Sentinel and Defender at the core of the managed service. CYBERSHIELD AI investigates each incident as it arrives through a multi-stage pipeline, with an average time to verdict of 3 minutes 30 seconds, and groups related incidents into a single case, so a burst of shell commands on one server and an unexpected machine-account logon on another are investigated together rather than as two unrelated alerts. Whether a case closes or escalates is decided by policy and your own decision templates, not by the model, and a senior analyst signs off by default. Connectors, parsers and analytical rules for the rest of your estate, Linux servers included, are built at onboarding.

We covered earlier examples of machine-speed intrusions in Storm-3168 and Storm-3358. To see how this would work on your estate, book a demo.

Agentic AIAI-Driven AttacksCISAAD CSESC8NTLM RelayWeb ShellsLinux ServersDefender XDRMicrosoft SentinelKQLThreat Hunting

Ready to see the agents work?

Book a demo of CYBERSHIELD AI against a real scenario.