Threat reportThreat IntelligenceTL-2026-3959
Open-Source AI Pentest Platform Cairn Abused to Breach 100+ Organizations (E-commerce/Payment Targets)
Norforge reports that threat actors abused Cairn, an open-source autonomous penetration-testing engine that coordinates LLM agents, to breach over 100 organizations. It identified three activity clusters (AIA0001, AIA0002, AIA0003) targeting e-commerce and payment infrastructure for shell, webshell, admin-panel and database access, with roughly 10% of attempts fully achieving their goal. First disclosed .
Key facts
| Identifiers | TL-2026-3959 |
|---|---|
| Also known as | Cairn abuse campaign, AI-agent e-commerce skimming campaign |
| Severity | HIGH |
| First disclosed | |
| Affected products | Various Custom e-commerce and payment platforms; Adobe Magento (installed extensions and plugins); Automattic/WordPress ecosystem WordPress plugins |
| Weaknesses (CWE) | CWE-89, CWE-434, CWE-502, CWE-250 |
| Tools | Cairn, Hermes, Strix |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1048.003 Exfiltration Over Unencrypted Non-C2 Protocol, T1053.003 Cron, T1059.004 Unix Shell, T1059.007 JavaScript, T1070.006 Timestomp, T1071.004 DNS, T1078 Valid Accounts, T1090 Proxy, T1111 Multi-Factor Authentication Interception, T1190 Exploit Public-Facing Application, T1485 Data Destruction and 8 more in the attack flow |
| Motivation | FINANCIAL |
| Target sectors | ecommerce, retail, payments, hospitality, aviation, industrial distribution, pharmacy, cryptocurrency |
| Target regions | united states of america, japan, australia, Africa |
| Detection rules | 9 (1 shown free) |
| Sources | 6 cited sources |
Detection coverage
As of 2026-10-20, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3959 across Splunk SPL, Microsoft KQL and Sigma, covering 30 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: Cairn AI-Agent Error-Based SQLi (EXTRACTVALUE/UPDATEXML) Against E-commerce Login - TL-2026-3959 Exploitation
Behaviour-first detection (T1190) of error-based SQL injection using EXTRACTVALUE/UPDATEXML against login, email and OTP parameters, the first stage of the Cairn/Strix/Hermes 16-stage chain documented by Gambit and Norforge. Successful injection exposed plaintext OTPs and enabled MFA bypass (T1111) and admin access within hours.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190, T1111, T1595.002
- Data sources: web_access_logs, iis_w3c_logs
- Severity: high
- Confidence: high
Splunk SPL
index=web sourcetype=access_combined earliest=-24h ```TL-2026-3959 Cairn campaign: error-based SQLi (EXTRACTVALUE/UPDATEXML) against login parameters, T1190```
| eval decoded=lower(urldecode(coalesce(uri_query, uri, "")))
| where match(decoded, "(extractvalue|updatexml)") AND match(decoded, "(concat|0x7e|select|database|version)")
| eval target_param=if(match(decoded, "(email|username|login|user|otp)="), "login_or_otp_param", "other_param")
| stats count AS requests dc(uri_path) AS distinct_paths values(uri_path) AS paths values(status) AS statuses values(http_user_agent) AS user_agents min(_time) AS first_seen max(_time) AS last_seen BY src_ip, dest, target_param
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
W3CIISLog
| where TimeGenerated > ago(24h)
| extend Decoded = tolower(url_decode(strcat(csUriStem, "?", csUriQuery)))
| where Decoded matches regex @"(extractvalue|updatexml)" and Decoded matches regex @"(concat|0x7e|select|database|version)"
| extend TargetParam = iff(Decoded matches regex @"(email|username|login|user|otp)=", "login_or_otp_param", "other_param")
| summarize Requests=count(), Paths=make_set(csUriStem, 20), Statuses=make_set(scStatus, 10), UserAgents=make_set(csUserAgent, 5), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by cIP, sSiteName, Computer, TargetParam
| project FirstSeen, LastSeen, cIP, sSiteName, Computer, TargetParam, Requests, Paths, Statuses, UserAgentsSigma
title: "Error-Based SQL Injection (EXTRACTVALUE/UPDATEXML) in Web Requests - Cairn AI Agent Campaign"
id: 6f1c2a54-3a0e-5b7d-9c41-0a3d5e7b1f01
status: experimental
description: "Detects error-based SQL injection probes using EXTRACTVALUE or UPDATEXML in the request URI, the technique used by AI-agent driven exploitation (Cairn/Strix/Hermes) against e-commerce login and OTP parameters to read data and bypass MFA."
references:
- https://norforge.com/blog/inside_cairn
- https://gambit.security/blog-posts/autonomous-ai-agents-online-retailers-25-a-company
- https://www.securityweek.com/ai-platform-cairn-abused-to-hack-over-100-organizations/
author: Threadlinqs Team
date: 2026-10-20
tags:
- attack.initial-access
- attack.t1190
- attack.credential-access
- attack.t1111
- attack.reconnaissance
- attack.t1595.002
logsource:
category: webserver
detection:
selection_fn:
cs-uri-query|contains:
- 'extractvalue('
- 'extractvalue%28'
- 'updatexml('
- 'updatexml%28'
selection_ctx:
cs-uri-query|contains:
- 'concat'
- '0x7e'
- 'select'
- 'database'
- 'version'
condition: selection_fn and selection_ctx
falsepositives:
- Authorized vulnerability scanners and penetration tests
- WAF or QA test suites replaying SQLi payloads
level: high
Known false positives:
- Authorized DAST/pentest scanners (Burp, sqlmap, Nessus) run from known source IPs
- Application security regression tests replaying SQLi strings
Tuning notes: Exclude approved scanner source IPs via a lookup. If login parameters are sent in POST bodies, enable request-body logging on the WAF/reverse proxy and point this search at that sourcetype. Adjust index/sourcetype to match your web tier (nginx, Apache, IIS).
- Web Shell Written by Web Server Process via Unrestricted Upload - TL-2026-3959 Exploitation · unlock with TL Creds
- Self-Healing Cron Skimmer Persistence - TL-2026-3959 Post-Exploitation · unlock with TL Creds
- Egress to Operator C2, Staging and Skimmer Infrastructure - TL-2026-3959 C2 · unlock with TL Creds
- PHP Deserialization (PHPGGC Zend Gadget Chain) Exploitation - TL-2026-3959 Exploitation · unlock with TL Creds
- JS Skimmer Base64 Loader Injection and Library Timestomp - TL-2026-3959 Post-Exploitation · unlock with TL Creds
- Post-Exploitation Credential Harvesting and Lateral Staging - TL-2026-3959 Lateral Movement · unlock with TL Creds
- Sudo NOPASSWD Python Privilege Escalation From Web Account - TL-2026-3959 Post-Exploitation · unlock with TL Creds
- DNS Exfiltration and C2 Domain Resolution - TL-2026-3959 C2 / Exfiltration · unlock with TL Creds
Indicators of compromise
As of 2026-10-20, Threadlinqs Intelligence tracks 30 indicators of compromise for TL-2026-3959.
Sample indicators (3 of 30)
- IP address:
155.254.22[.]215 - Domain:
medbooksource[.]com - IP address:
209.126.4[.]170
Defanged, TLP:CLEAR. Full set of 30 indicators: unlock with TL Creds.
Technical analysis
Cairn is an open-source autonomous penetration-testing engine that coordinates AI agents. Given a target domain and an objective, it runs for hours without supervision until it succeeds, times out or is stopped. Norforge found more than 20 Cairn control panels exposed on the internet (default port 8000, apparently without authentication) that were being used for criminal campaigns. The panels gave full administrative functionality (create or modify projects, redirect agents, interrupt operations) and leaked project data, harvested credentials and operator infrastructure details. Norforge grouped the activity into three clusters. AIA0001 is a Chinese-language cluster (high confidence) with 14 exposed panels on AS56594 (CGI Global Limited) and more than 1,100 projects. It targets e-commerce and payment infrastructure in the US, Japan and Australia with the objective 'find unauthenticated RCE' through SQL injection, file upload and deserialization flaws. Its worker model was claudecode_deepseek-v4.1-flash, projects averaged about 140 facts, and the average time from project start to compromise was under 23 hours. AIA0002 is an English-language cluster (high confidence) with 10 exposed panels on AS20473 (The Constant Company/Vultr). It focuses on credit-card and cryptocurrency theft from merchant payment services, gray-market payment sites and pharmaceutical platforms, with a suspected African base. It used the Pi framework with DeepSeek via OpenRouter and exposed SSH credentials for backend staging servers. AIA0003 is a low-confidence exploratory cluster with 1 panel (AS200019, AlexHost) and 59 projects. It targets small e-commerce sites mixed with large US platforms, and its tasking shifted from claiming authorized assessments to explicit exploitation.
Observed attack chains include unauthenticated account modification leading to PHP deserialization and RCE, Memcached session-store exploitation with Zend Framework gadget chains (PHPGGC) to deploy a webshell, insecure error handling leading to information disclosure and authentication bypass, and cookie manipulation against vulnerable backends. Operator tooling included Playwright and Chromium for automated target validation, Docker, tmux, Xvfb, OWASP Amass, dnsrecon, ffuf, Nmap, rockyou, Trufflehog-style secret scanning, the StyleSmuggler PoC and Magento validation labs. The exposed panels held hundreds of secrets (API keys, database credentials, SSH and staging logins), of which 11% were verified as valid. Roughly 10% of projects fully achieved their goal and many achieved partial success. SecurityWeek, citing Reuters, names John Deere and SharkNinja among the victims.
A related, independently documented campaign was reconstructed by Gambit Security after it obtained the operator's staging server. A Chinese-language operator chained three open-source LLM tools: Strix for vulnerability discovery (146 deep-mode scans across 138 hosts, 23-31 Aug 2026), Cairn for autonomous exploitation, and Hermes for orchestration and post-exploitation (121 skills, 78 attack-focused, 'SOUL - Red Team Operator' persona). The LLM backends were Claude Opus 4.6 for Hermes, GLM 5.2 then DeepSeek v4 Pro for Strix, and DeepSeek v4.1 Flash for Cairn, all via OpenRouter. The operator spent $7,005.71 in four weeks (an estimated $12,000-$18,000 in total) and averaged about $25.46 per target. Targets were chosen from a website traffic-ranking service, excluding major hosted and open-source platforms on the assumption that custom code is weaker. The campaign ran from July 2026 and was still ongoing on 22 Sep 2026. Between 10 and 15 September it launched 105 attack projects and compromised at least 27 companies, with initial access in under 24 hours and often within hours. Over 600,000 unexpired card records were stolen from two victims, about 79% of them US-issued, and skimmers were found on more than 100 sites, with 19 confirmed active during the campaign. Gambit documented a 16-stage chain: error-based SQL injection (EXTRACTVALUE) in a login email parameter, OTP extraction from a database table, MFA bypass, admin access, arbitrary file upload (no extension validation) giving RCE as uid=1001, privilege escalation through sudo NOPASSWD python3.12, access to an NFS mount with no_root_squash, wp-config.php credential extraction, creation of a WordPress admin and plugin upload, RCE on a secondary host, an AWS Secrets Manager dump (46 secrets), Aurora-hosted Magento database access, and Blowfish-ECB decryption of cc_number_enc card data.
Skimmer deployment methods were: appending a base64 loader to legitimate JavaScript libraries (jQuery, Bootstrap) and restoring the original timestamps; foreign script tags in checkout pages; Google Tag Manager poisoning (loader padded with 100+ tabs); S3/CDN bucket poisoning with stolen AWS keys; appending to database content fields such as product descriptions; Kubernetes initContainer injection in production front-end deployment YAML; and server-side checkout page cache poisoning. The loader pattern is new Function(atob('<junk7chars>...'.slice(7)))(). Persistence took the form of a self-healing cron job (seen at a wine retailer in a JBoss log directory) that checked the file size every two minutes and re-appended the skimmer after redeploys. The operator's 'Database Wipe After Extraction' skill instructed agents to wipe source card fields in batches with a chunked PHP script and verify zero counts. At a bicycle retailer this cleanup matched table names containing 'ZQ' or 'Backup' and dropped 180 tables, destroying the victim's own backups. Confirmed or probable victims include a Fortune 500 hospitality company, a major US airline, a US industrial supplies distributor and a US online fashion retailer. Gambit also recorded proxy providers IPRoyal, 711proxy and 1024proxy. Norforge says it identified the open panels following Gambit's initial report; the primary sources do not say whether the Gambit operator corresponds to one of the Norforge clusters. No CVEs are named. The exploited flaws are described only as known SQL injection and file-upload flaws in Magento and WordPress plugins and extensions and in custom code, and no malware hashes were published.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1070.006 Timestomp
Exfiltration
T1048.003 Exfiltration Over Unencrypted Non-C2 Protocol
Persistence
T1053.003 Cron; T1505.003 Web Shell
Execution
T1059.004 Unix Shell; T1059.007 JavaScript
Command and Control
Initial Access
T1078 Valid Accounts; T1190 Exploit Public-Facing Application
Credential Access
T1111 Multi-Factor Authentication Interception; T1552.001 Credentials In Files
Impact
T1485 Data Destruction; T1565.001 Stored Data Manipulation; T1657 Financial Theft
Privilege Escalation
T1548.003 Sudo and Sudo Caching
Resource Development
T1583.003 Virtual Private Server; T1588.007 Artificial Intelligence
Reconnaissance
Remediation
Patches
- Patch SQL injection and file-upload vulnerabilities in Magento extensions and WordPress plugins
- Apply vendor updates to e-commerce platforms and review custom code for SQLi, unrestricted upload and unsafe deserialization
Immediate actions
- Audit checkout-page JavaScript, script tags, Google Tag Manager containers, CDN/S3 bucket contents and Content Security Policy for unexpected loaders (base64 + atob + new Function pattern)
- Hunt for skimmer IOC domains and IPs in egress logs, proxy logs and page source
- Review database backup jobs and table inventories for unexplained gaps, and take immediate out-of-band backup snapshots on suspected compromise
- Treat skimmers or web shells that reappear after cleanup as a sign of automated attacker orchestration and look for self-healing cron jobs
- Rotate credentials, API keys and AWS secrets reachable from any compromised web host
Workarounds
- Deploy a WAF with SQLi and upload rules in front of public checkout and admin interfaces
- Enforce Subresource Integrity and a strict CSP on checkout pages
- Store OTP values hashed and short-lived so that a SQL injection cannot read plaintext OTPs
Longer-term hardening
- Adopt a resilience-first posture: define the minimum viable business, keep immutable 3-2-1 backups and rehearse recovery
- Match security tooling and response tempo to AI-driven attack speed (compromise within hours)
- Monitor for new or modified cron jobs, Kubernetes manifest changes (initContainers) and NFS mount changes
- Exclude sensitive data and secrets from hosts reachable by web application accounts, and enforce least privilege (no sudo NOPASSWD interpreters, no no_root_squash NFS exports)
- Restrict and authenticate any autonomous pentest or AI agent control panels you run; do not expose them to the internet
Affected and fixed versions
- Various — Custom e-commerce and payment platforms
Vulnerable versions: Unspecified; custom software with SQL injection, file-upload and deserialization flaws - Adobe — Magento (installed extensions and plugins)
Vulnerable versions: Unspecified vulnerable extensions - Automattic/WordPress ecosystem — WordPress plugins
Vulnerable versions: Unspecified vulnerable plugins
Timeline
- Gambit reports the Cairn/Strix/Hermes e-commerce campaign active since at least July 2026 (exact start day not stated; first of the month used as placeholder)
- Operator begins Strix deep-mode scanning: 146 scans across 138 hosts and 633 scanner hours between 23 and 31 August
- Operator's OpenRouter account shows $7,005.71 spent over four weeks (total projected at $12,000-$18,000)
- Start of a five-day surge in which the operator launches 105 Cairn attack projects
- Surge ends with at least 27 companies compromised; skimmers later confirmed on 19 sites during the campaign and 100+ sites in total; 600,000+ card records stolen from two victims
- Gambit Security publishes its reconstruction from the operator's staging server; campaign still ongoing at that date
- Norforge publishes 'Inside Cairn': 20+ exposed Cairn panels grouped into clusters AIA0001 (14 panels, 1,100+ projects), AIA0002 (10 panels) and AIA0003 (1 panel, 59 projects); ~10% success rate; 11% of harvested secrets verified valid
- SecurityWeek reports that Cairn was abused to breach 100+ organizations, citing Norforge and Reuters (victims include John Deere and SharkNinja)
Sources cited
- Norforge - Inside Cairn norforge.com · Research · 2026-10-19
- Gambit Security - Autonomous AI Agents Online Retailers $25 a Company gambit.security · Research · 2026-09-22
- CSA Research Note - AI Agent Retail Skimming Campaign labs.cloudsecurityalliance.org · Research · 2026-09-24
- AI Platform Cairn Abused to Hack Over 100 Organizations SecurityWeek · News · 2026-10-20
- BleepingComputer - Malicious AI agents steal 600K credit cards, infect 100+ sites with skimmers BleepingComputer · News
- CyberInsider - AI agents steal 600,000 credit cards in attacks on online retailers cyberinsider.com · News
Previous and next in threat intel
AI-drafted from 6 cited sources; published ; last updated —.