Cairn
- Capabilities
- ReconnaissanceScanningBrute forceInitial accessPost exploitationCredential theftExfiltrationPersistence
CAIRN is an open-source, multi-agent penetration-testing framework used for authorized security assessments and malicious intrusions. It translates operator-supplied targets and objectives into coordinated actions, using an Observe, Orient, Decide, Act loop and a shared fact-intent graph to maintain operational context. Its agents perform reconnaissance, vulnerability scanning, exploitation, and post-compromise activity, adapting their actions to execution results with limited human direction. Observed malicious uses include credential attacks, credential theft, data retrieval, and creation of persistent administrator accounts.
Chinese-speaking threat actor CL-STA-1238 used a customized CAIRN fork with GLM and DeepSeek models during August–September 2026, conducting 25 operations against at least 19 organizations. Unauthorized access or data retrieval was confirmed at 10 organizations, with targets spanning semiconductor manufacturing, U.S. defense policy, and civil society. Other observed CAIRN activity targeted U.S. aerospace organizations and East Asian universities. In a university-focused campaign, a suspected China-nexus operator used CAIRN agents to discover and exploit a previously unknown path-traversal vulnerability in MONAI Label, achieve arbitrary file writes, and subsequently establish a root-level reverse shell. The financially motivated actor CRAFTY FALCON has also used CAIRN alongside other offensive frameworks against Indian financial organizations.
CAIRN is dual-use tooling rather than a distinct malware payload family. Its unauthenticated API and network-exposed deployment configuration also create risks for operators: exposed consoles have been hijacked by third parties to install SSH-based persistence and a Poseidon implant.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
ARTEX is a family of tools built on large language models, PentAGI is an autonomous multi-agent penetration testing system, Cairn is an attack search engine, and CyberStrikeAI is an offensive framework.
Use of CAIRN by a Chinese-speaking attacker between August and September 2026 and pairing it with GLM and DeepSeek models to autonomously conduct 25 operations against at least 19 organizations.
Techniques & procedures
45 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
4 techniques
Reconnaissance
« Reconnaissance automatisée d’infrastructure associée à des cibles »
Automated fingerprinting of backend frameworks (Node.js, Express, Nginx).
« Reconnaissance automatisée d’infrastructure associée à des cibles » ; « Découverte de panneaux de contrôle exposés publiquement »
Sustained automated requests enumerating paths, parameters and subdomains, sourced from 82.29.129[.]54 (US staging and attack egress) or 154.44.31[.]4 (Hong Kong Cairn hosting)
Resource Development
3 techniques
Resource Development
Resource Development T1588 Obtain Capabilities T1588.002 Tool T1588.007 Artificial Intelligence
It chains publicly available AI-driven offensive tools (ARTEX, PentAGI, Cairn and CyberStrikeAI) to run attack chains with little human effort.
Together, they let the actor run entire attack chains with little human effort, write and refine custom scripts on the fly, and adapt payloads to how each target responds.
Initial Access
2 techniques
Initial Access
The AI agent used SQL injection, obtained a plaintext one-time password and then accessed a web panel.
Path traversal in MONAI Label upload writes files outside the datastore
Execution
5 techniques
Execution
« Exécution de commandes malveillantes côté serveur après des heures d’essais-erreurs autonomes »
Execution of web shell evaluation commands (whoami, id) to verify access.
Python startup hook executes reverse shell as root after API trigger
Script engine code run through an unauthenticated job endpoint
sitecustomize.py (importé automatiquement au démarrage de l’interpréteur)
Persistence
8 techniques
Persistence
The AI agent used SQL injection, obtained a plaintext one-time password and then accessed a web panel.
New administrator accounts and API tokens created outside change windows (semiconductor production system); open backend registration endpoint exposing user records
Long-lived API token issued in an application
WP admin write (new user via DB) -> WP plugin upload.
Administrator account created in a production application
Database server OS command execution enabled
Deployment of persistent backdoor shells in web-accessible directories.
Reverse shell payload written to sitecustomize.py
Privilege Escalation
7 techniques
Privilege Escalation
The AI agent used SQL injection, obtained a plaintext one-time password and then accessed a web panel.
New administrator accounts and API tokens created outside change windows (semiconductor production system); open backend registration endpoint exposing user records
Long-lived API token issued in an application
WP admin write (new user via DB) -> WP plugin upload.
Service account escalates to SYSTEM by token impersonation
Reverse shell payload written to sitecustomize.py
[The agent] escalated privileges through a misconfigured sudo rule.
Stealth
5 techniques
Stealth
Synthesis of PNG/JavaScript polyglot files to evade file-type filters.
Staging web shells under names like logo_thumb.png.js in public asset paths.
The AI agent used SQL injection, obtained a plaintext one-time password and then accessed a web panel.
Service account escalates to SYSTEM by token impersonation
sitecustomize.py (importé automatiquement au démarrage de l’interpréteur)
Defense Impairment
1 technique
Defense Impairment
Dynamic payload re-encoding to bypass Cloudflare and AWS WAF signatures.
Credential Access
6 techniques
Credential Access
one source testing more than 30,000 credential combinations against about 80 real usernames over six or more hours
Credential spray against SSH and campus services with harvested usernames
OTP plaintext read from the OTP table (MFA bypass) -> admin panel access.
[The agent] accessed AWS credentials, ultimately dumping 46 secrets, totaling 102KB.
« Montage NFS (no_root_squash) → credentials WP » ; accès à des secrets AWS et clés de chiffrement.
AWS Secrets Manager full dump (46 secrets, 102KB) -> Main Magento DB access (Aurora) -> Magento encryption key extraction.
Discovery
2 techniques
Discovery
SSRF requests through a co-located Qdrant instance mapping the internal Docker network
Automatic execution of system profiling commands upon shell verification.
Lateral Movement
2 techniques
Lateral Movement
The operator “pivoted across an NFS mount.”
« Montage NFS (no_root_squash) → credentials WP ».
Collection
2 techniques
Collection
Scraping of database configuration files (config.json, .env) on compromised hosts.
Bulk reads: more than one million member records and about 31,000 CRM contacts (teachers' union); roughly 500 user records including .mil and .gov accounts (defense-policy identity platform)
Command and Control
4 techniques
Command and Control
155.254.22.215 Staging and command server, AI console... 213.21.239.62 C2.
They then pasted 301 results into the console with a message that ended with 跑这些 用代理 只扫高危 (“run these, use the proxy, high severity only”).
La liste des TTPs identifie T1102 ; les opérateurs utilisent OpenRouter pour accéder aux modèles IA utilisés dans la campagne.
l’acteur humain est intervenu pour fournir aux agents un proxy tunnelant vers un second réseau universitaire
Exfiltration
2 techniques
Exfiltration
The campaign stole “over 600,000 credit card records” and a Hermes skill was titled “Database Wipe After Extraction.”
In two of these near-autonomous attacks, the AIs exfiltrated more than 600,000 credit card records from just two victim companies.
Impact
1 technique
Impact
Stored file overwritten through anonymous cloud-storage write
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
129 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.