Threat reportThreat IntelligenceTL-2026-4058
AI-Assisted Attackers Chain Web App Flaws (SQLi to xp_cmdshell, File-Upload Web Shells) for Rapid Intrusions Using Cairn, CyberStrikeAI and CupcakeC2
Sophos DFIR reports two real-world intrusions in which operators using open-source AI-driven offensive tooling (Cairn, CyberStrikeAI, CupcakeC2) chained web application weaknesses, credential theft and lateral movement into near-autonomous workflows. In one case SQL injection reached SQL Server xp_cmdshell command execution 1h45m after enumeration began; in the other, abuse of an upload endpoint led to multiple IIS web shells in just over 3 hours, followed by configuration and cloud-metadata credential harvesting, database enumeration and cleanup.
Key facts
Detection coverage
As of 2026-10-21, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4058 across Splunk SPL, Microsoft KQL and Sigma, covering 25 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: TL-2026-4058 — SQL Server (xp_cmdshell) or IIS Worker (Web Shell) Spawning Shells and Recon Utilities
Behaviour-first exploitation detection for TL-2026-4058, the AI-assisted (Cairn / CyberStrikeAI / CupcakeC2) web application intrusions reported by Sophos DFIR. In incident 1, SQL injection enabled and invoked xp_cmdshell (EXEC sp_configure 'xp_cmdshell', 1; RECONFIGURE; EXEC xp_cmdshell 'whoami'), so sqlservr.exe spawned cmd.exe and powershell.exe about 1h45m after web enumeration began. In incident 2, web shells planted through an upload endpoint made the IIS worker process w3wp.exe spawn command shells. This search alerts when sqlservr.exe or w3wp.exe launches a command interpreter, LOLBin or discovery utility (whoami, net, nltest, ipconfig, systeminfo, tasklist, certutil, curl, reg, wmic, schtasks). It scores each host on how many recon commands and distinct children appear, because the reported operators ran whoami and network enumeration within minutes.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190, T1505.003, T1505.001, T1059.001, T1059.003, T1033
- Data sources: sysmon:EventCode=1 (process creation), mde:DeviceProcessEvents, sigma:windows/process_creation
- Severity: critical
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (ParentImage="*\\sqlservr.exe" OR ParentImage="*\\w3wp.exe") (Image="*\\cmd.exe" OR Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\whoami.exe" OR Image="*\\net.exe" OR Image="*\\net1.exe" OR Image="*\\ipconfig.exe" OR Image="*\\systeminfo.exe" OR Image="*\\nltest.exe" OR Image="*\\netstat.exe" OR Image="*\\arp.exe" OR Image="*\\tasklist.exe" OR Image="*\\quser.exe" OR Image="*\\certutil.exe" OR Image="*\\bitsadmin.exe" OR Image="*\\curl.exe" OR Image="*\\reg.exe" OR Image="*\\wmic.exe" OR Image="*\\schtasks.exe")
``` TL-2026-4058: sqlservr.exe parent = SQLi to xp_cmdshell (incident 1), w3wp.exe parent = upload-endpoint web shell (incident 2) ```
| eval parent=lower(replace(ParentImage,"^.*[^A-Za-z0-9_.+-]","")), child=lower(replace(Image,"^.*[^A-Za-z0-9_.+-]","")), cmd=lower(CommandLine)
| eval vector=if(parent=="sqlservr.exe","SQLi to xp_cmdshell (sqlservr.exe)","IIS web shell (w3wp.exe)")
| eval recon=if(match(cmd,"whoami|net1? (user|group|localgroup|view|share)|nltest|ipconfig|systeminfo|netstat|tasklist|quser|query user|xp_cmdshell|169[.]254[.]169[.]254|web[.]config"),1,0)
| stats count min(_time) as firstTime max(_time) as lastTime values(child) as child_procs dc(child) as distinct_children sum(recon) as recon_hits values(CommandLine) as cmdlines values(User) as service_accounts by host parent vector
| eval risk=case(recon_hits>=3 OR distinct_children>=3,"high",recon_hits>=1,"medium",true(),"low")
| convert ctime(firstTime) ctime(lastTime)
| sort - recon_hitsMicrosoft KQL
// TL-2026-4058: SQL Server (xp_cmdshell) or IIS worker (web shell) spawning shells and recon utilities
let lookback = 24h;
let ServiceParents = dynamic(['sqlservr.exe','w3wp.exe']);
let SuspChildren = dynamic(['cmd.exe','powershell.exe','pwsh.exe','whoami.exe','net.exe','net1.exe','ipconfig.exe','systeminfo.exe','nltest.exe','netstat.exe','arp.exe','tasklist.exe','quser.exe','certutil.exe','bitsadmin.exe','curl.exe','reg.exe','wmic.exe','schtasks.exe']);
DeviceProcessEvents
| where Timestamp > ago(lookback)
| where InitiatingProcessFileName in~ (ServiceParents) and FileName in~ (SuspChildren)
| extend Vector = iff(InitiatingProcessFileName =~ 'sqlservr.exe', 'SQLi to xp_cmdshell (sqlservr.exe)', 'IIS web shell (w3wp.exe)')
| extend ReconHit = iff(ProcessCommandLine matches regex @'(?i)whoami|net1?\s+(user|group|localgroup|view|share)|nltest|ipconfig|systeminfo|netstat|tasklist|quser|query\s+user|xp_cmdshell|169\.254\.169\.254|web\.config', 1, 0)
| summarize FirstSeen = min(Timestamp), LastSeen = max(Timestamp), Children = make_set(FileName, 50), CommandLines = make_set(ProcessCommandLine, 100), Accounts = make_set(AccountName, 10), ReconHits = sum(ReconHit), DistinctChildren = dcount(FileName) by DeviceName, InitiatingProcessFileName, Vector
| extend RiskLevel = case(ReconHits >= 3 or DistinctChildren >= 3, 'High', ReconHits >= 1, 'Medium', 'Low')
| order by ReconHits descSigma
title: TL-2026-4058 SQL Server or IIS Worker Spawning Shell or Recon Utility
id: 7c2e4b1a-5d93-4f6e-a8b2-1e0c9d4f3a71
status: experimental
description: Detects sqlservr.exe (xp_cmdshell abuse after SQL injection) or w3wp.exe (web shell planted through an upload endpoint) spawning command interpreters, LOLBins or discovery utilities. This is the core exploitation signal in the TL-2026-4058 AI-assisted web application intrusions (Cairn, CyberStrikeAI, CupcakeC2) reported by Sophos DFIR.
references:
- https://www.sophos.com/en-us/blog/web-app-owners-your-low-hanging-fruit-just-got-lower
- https://attack.mitre.org/techniques/T1505/003/
- https://attack.mitre.org/techniques/T1505/001/
author: Threadlinqs Team
date: 2026-10-21
tags:
- attack.initial-access
- attack.t1190
- attack.persistence
- attack.t1505.003
- attack.t1505.001
- attack.execution
- attack.t1059.001
- attack.t1059.003
- attack.discovery
- attack.t1033
- attack.tool.cyberstrikeai
- attack.tool.cairn
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|endswith:
- '\sqlservr.exe'
- '\w3wp.exe'
selection_child:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\whoami.exe'
- '\net.exe'
- '\net1.exe'
- '\ipconfig.exe'
- '\systeminfo.exe'
- '\nltest.exe'
- '\netstat.exe'
- '\arp.exe'
- '\tasklist.exe'
- '\quser.exe'
- '\certutil.exe'
- '\bitsadmin.exe'
- '\curl.exe'
- '\reg.exe'
- '\wmic.exe'
- '\schtasks.exe'
condition: all of selection_*
falsepositives:
- Legitimate SQL Agent or DBA maintenance jobs that intentionally use xp_cmdshell for backups or file copies
- Legacy web applications that shell out by design, such as report generators or document converters
level: highKnown false positives:
- SQL Server Agent or DBA maintenance jobs that intentionally run xp_cmdshell (backup file moves, robocopy, bcp exports), which make sqlservr.exe spawn cmd.exe
- Legacy ASP.NET or classic ASP applications that shell out by design (PDF or report generators, image converters), which make w3wp.exe spawn cmd.exe
- Application health-check or deployment scripts that run under the IIS application pool identity
Tuning notes: Baseline sqlservr.exe and w3wp.exe children for 14 days. Allow-list known maintenance command lines by exact CommandLine and host, not by child image. Escalate immediately when recon_hits >= 1 (whoami, net, nltest or ipconfig from a service process is rarely legitimate). Add other database and app-server parents if relevant (e.g. sqlagent.exe, php-cgi.exe, java.exe for Tomcat). On Splunk CIM environments the same logic maps to datamodel Endpoint.Processes (parent_process_name, process_name). Pair this rule with TL-2026-4058-KQL-001 (xp_cmdshell enable) and TL-2026-4058-SIG-001 (web shell drop) to build the enumeration, injection and shell sequence that Sophos recommends correlating.
- TL-2026-4058 — SQL Injection Enabling xp_cmdshell (sp_configure / RECONFIGURE) and SQLi Payloads in IIS Logs · unlock with TL Creds
- TL-2026-4058 — Token Impersonation (Potato / PrintSpoofer) and LSASS Credential Dumping from IIS / SQL Server Service Accounts · unlock with TL Creds
- TL-2026-4058 — Lateral Movement from Compromised Web/DB Tier (Admin Shares, WMI, Scheduled Tasks, RDP) under IIS / SQL Server Service Lineage · unlock with TL Creds
- TL-2026-4058 — IIS Worker Writes Executable Script to Web Root (Upload Endpoint Web Shell Deployment) · unlock with TL Creds
- TL-2026-4058 — On-Host Compilation in Temp Directories and Temp Artefact Cleanup by IIS / SQL Server Service Accounts · unlock with TL Creds
- TL-2026-4058 — Outbound C2 / Tool Retrieval from LOLBins or Temp-Dir Executables Running as IIS / SQL Server Service Accounts (CupcakeC2-style Implant Egress) · unlock with TL Creds
- TL-2026-4058 — Credential Harvesting from IIS / SQL Server Service Context ([indicator], Private Keys, Registry, Cloud IMDS) and DB Enumeration · unlock with TL Creds
- TL-2026-4058 — Network Contact with CyberStrikeAI Server, Gambit-Reported Cairn/Strix/Hermes Campaign Infrastructure, or GitHub Staging of Cairn / CyberStrikeAI / CupcakeC2 · unlock with TL Creds
Indicators of compromise
As of 2026-10-21, Threadlinqs Intelligence tracks 25 indicators of compromise for TL-2026-4058.
Sample indicators (3 of 25)
- IP address:
212.11.64[.]250 - Domain:
traffic-analyzer[.]net - URL:
hxxps://b8t[.]shop/js/sby.js
Defanged, TLP:CLEAR. Full set of 25 indicators: unlock with TL Creds.
Technical analysis
Sophos DFIR & Readiness lead Chris Ahearn ('The Frontlines' series) describes two incident patterns handled by Sophos incident response in which attackers combined commodity web application weaknesses with open-source AI-driven offensive frameworks to compress the time from first probe to hands-on-keyboard activity. Artifacts associated with three tools were identified: Cairn, an open-source AI-driven state-space search engine built for autonomous penetration testing; CyberStrikeAI, an open-source AI-powered autonomous security testing framework that couples LLMs with automated decision-making workflows; and CupcakeC2, an open-source command-and-control framework with a Rust agent, a Go server and Model Context Protocol (MCP) integration. Sophos names no CVEs, threat actor or network IOCs for the two incidents.
Incident pattern one (database access): the attackers enumerated several web applications in parallel, then ran SQL injection attempts that enabled and invoked SQL Server xp_cmdshell. About 1 hour 45 minutes after web enumeration began they had operating-system command execution through SQL Server processes and PowerShell. In roughly 30 minutes on target before isolation they ran whoami and network enumeration, attempted privilege escalation through token impersonation and service-account abuse, looked for credentials in configuration and script files, Windows registry hives and LSASS, and attempted lateral movement over administrative shares, WMI and scheduled tasks.
Incident pattern two (file upload): the attackers abused account-management and password-reset functionality, reached customer data through an upload endpoint that accepted executable content, and deployed multiple web shells across web servers about 3 hours after enumeration began. Over about 1 hour 45 minutes on target, the IIS worker process ran command shells. The attackers harvested web.config files, private keys, certificates and credentials, and recovered temporary cloud credentials from the instance metadata service. They also enumerated production and staging SQL databases, found credentials for an internal file-transfer service, tried RDP without success, retrieved privilege-escalation tooling, compiled small executables in temporary directories, and ran cleanup commands that deleted temporary directories and other artifacts.
Tool context from primary sources: Cairn (github.com/oritera/Cairn, Python 3.12+, AGPL-3.0) uses a blackboard architecture of Facts, Intents and Hints, with OODA-loop workers driven by Claude Code, Codex or Pi backends. It solved 54/54 challenges in the Tencent Cloud Hackathon AI penetration-testing contest. CyberStrikeAI (github.com/Ed1s0nZ/CyberStrikeAI) is a Go platform that bundles more than 100 tools (nmap, subfinder, nuclei, sqlmap, metasploit, mimikatz, bloodhound) behind Eino multi-agent orchestration and MCP. Its web UI listens on HTTPS port 8080 with a self-signed certificate by default. Team Cymru saw 21 CyberStrikeAI server IPs between 2026-01-20 and 2026-02-26, including 212.11.64.250:8080, which talked to FortiGate devices during a campaign that compromised more than 600 appliances in 55 countries. CupcakeC2 (github.com/yellatiamo/CupcakeC2, MIT) has a Rust agent, Go server, Vue 3 UI and MCP client. Its documentation advertises dynamic patching of amsi.dll and ntdll.dll (AMSI/ETW), memory ballooning against memory scanners, and AI-generated WASM plugins.
The same tooling appears in a separate campaign reported by Gambit Security. A single financially motivated operator writing Chinese-language prompts used Strix for scanning, Cairn for exploitation and Hermes for orchestration, through OpenRouter. The operator ran 105 attack projects between 2026-09-10 and 2026-09-15, compromised at least 27 organizations (mostly online retailers) and stole more than 600,000 payment card records, at an average of $25.46 per completed scan. Gambit's infrastructure IOCs belong to that campaign. They are included here as related-tooling pivots only and are not attributed to the Sophos incidents. Sophos recommends treating application behavior as security telemetry, storing uploads outside executable web roots, removing secrets from configuration files, restricting application-server egress, alerting on abnormal parent-child processes (w3wp.exe or sqlservr.exe spawning cmd.exe or powershell.exe), correlating behavioral sequences, and containing at machine speed.
MITRE ATT&CK techniques by tactic:
Credential Access
T1003.001 OS Credential Dumping: LSASS Memory; T1552.001 Unsecured Credentials: Credentials In Files; T1552.002 Unsecured Credentials: Credentials in Registry; T1552.004 Unsecured Credentials: Private Keys; T1552.005 Unsecured Credentials: Cloud Instance Metadata API
Lateral Movement
T1021.001 Remote Services: Remote Desktop Protocol; T1021.002 Remote Services: SMB/Windows Admin Shares
Defense Evasion
T1027.004 Obfuscated Files or Information: Compile After Delivery; T1070.004 Indicator Removal: File Deletion
Discovery
T1033 System Owner/User Discovery; T1046 Network Service Discovery
Execution
T1047 Windows Management Instrumentation; T1053.005 Scheduled Task/Job: Scheduled Task; T1059.001 Command and Scripting Interpreter: PowerShell; T1059.003 Command and Scripting Interpreter: Windows Command Shell
Privilege Escalation
T1134.001 Access Token Manipulation: Token Impersonation/Theft
Initial Access
T1190 Exploit Public-Facing Application
Collection
T1213.006 Data from Information Repositories: Databases
Persistence
T1505.001 Server Software Component: SQL Stored Procedures; T1505.003 Server Software Component: Web Shell
Resource Development
T1588.002 Obtain Capabilities: Tool; T1588.007 Obtain Capabilities: Artificial Intelligence
Reconnaissance
Remediation
Patches
- No CVE involved; remediate application-level SQL injection, unrestricted file upload and password-reset logic flaws in custom code
Immediate actions
- Isolate hosts where w3wp.exe or sqlservr.exe spawns cmd.exe, powershell.exe, whoami.exe or other recon utilities
- Disable xp_cmdshell (sp_configure 'xp_cmdshell', 0) and alert on any re-enable attempt
- Rotate every credential, private key and certificate stored in web.config, scripts, registry hives or unattended-installation files on exposed web/app servers
- Revoke and rotate temporary cloud credentials obtained through the instance metadata service and enforce IMDSv2 / hop-limit 1
- Hunt web roots for recently written .aspx/.ashx/.asmx files and remove web shells
- Block the CyberStrikeAI and Gambit-reported infrastructure listed in the IOCs at the perimeter
Workarounds
- Use parameterized queries / stored procedures in application code
- Deploy a WAF rule set covering SQLi and executable upload content
- Enable LSASS protection (RunAsPPL / Credential Guard)
Longer-term hardening
- Store uploaded files outside executable web roots and validate type/content server-side
- Run SQL Server and IIS application pools under least-privilege, non-administrative service accounts
- Restrict application-server egress to required destinations only
- Segment web, database and internal file-transfer tiers; block SMB/WMI/RDP from web tiers
- Correlate behavioral sequences (enumeration -> injection -> shell -> credential access) rather than single alerts
- Rate-limit and monitor authentication, password-reset and upload endpoints for automated high-volume requests
- Prepare machine-speed automated containment playbooks
Affected and fixed versions
- Microsoft — SQL Server (xp_cmdshell)
Vulnerable versions: Any instance with xp_cmdshell enableable by an injected high-privilege SQL login - Microsoft — Internet Information Services (IIS)
Vulnerable versions: Web applications with upload endpoints accepting executable content in web roots - Generic — Custom web applications (account management / password reset / upload)
Vulnerable versions: Applications with SQL injection, unrestricted upload or weak password-recovery logic - Generic — Cloud-hosted application servers (instance metadata service)
Vulnerable versions: Instances reachable to IMDS without hardening
Fixed in: IMDSv2 enforced
Timeline
- Team Cymru begins observing CyberStrikeAI server instances; 21 unique IPs tracked through 2026-02-26 across China, Singapore, Hong Kong, the US, Japan and Switzerland
- End of Team Cymru observation window; CyberStrikeAI banner on locked-ioc-13:8080 linked via NetFlow to FortiGate exploitation (600+ appliances, 55 countries)
- The Hacker News reports open-source CyberStrikeAI (Ed1s0nZ) deployed in AI-driven FortiGate attacks
- Gambit Security-tracked operator using Cairn, Strix and Hermes AI agents active since at least July 2026 against online retailers
- Gambit captures the operator's staging server, revealing $7,005.71 OpenRouter spend over four weeks and 1,951 prompts across 260 sessions
- Start of peak window: 105 AI-driven attack projects launched between September 10 and 15, 2026
- End of peak window; at least 27 organizations compromised, skimmers on 19 targets, 600,000+ card records stolen
- Gambit Security publishes report on autonomous AI agents compromising online retailers at ~$25.46 per completed scan
- The Next Web covers Gambit findings; Sophos DFIR later cites the report alongside its own two Cairn/CyberStrikeAI/CupcakeC2-associated incidents (SQLi->xp_cmdshell in 1h45m; upload->IIS web shell in ~3h)
Sources cited
- Web App Owners: AI-Powered Attackers Are Targeting Your Lowest-Hanging Fruit Faster Than Ever (Sophos, Chris Ahearn) Sophos · Vendor report
- Autonomous AI agents attacking online retailers at $25 a company (Gambit Security) gambit.security · Research · 2026-09-22
- Cairn - AI state-space search engine (GitHub) GitHub · Code repository
- CyberStrikeAI (GitHub, Ed1s0nZ) GitHub · Code repository
- CupcakeC2 - Rust agent / Go server C2 with MCP (GitHub) GitHub · Code repository
- AI agents stole 600,000 credit cards for about $25 a target, Gambit says thenextweb.com · News · 2026-09-28
- Open-Source CyberStrikeAI Deployed in AI-Driven FortiGate Attacks Across 55 Countries The Hacker News · News · 2026-03-03
- CyberStrikeAI tool adopted by hackers for AI-powered attacks BleepingComputer · News
- AI tools help hacker break in for $25 per target (Computerworld) computerworld.com · News
Previous and next in threat intel
- k0t (CryptoFeel / Scrooge) Network-Edge Intrusion Campaign Targeting FortiGate, FortiWeb and GlobalProtect (CVE-2025-64446, CVE-2026-0257) Previous report
- BUGSTER: Low-Skill Financially Motivated Actor Uses AI Agents (Hermes Agent/DeepSeek V4, Cursor IDE) to Plan and Execute Multiple Cybercrime Operations Next report
Drafted by the Threadlinqs research pipeline from 9 sources; published ; last updated —.