Threat · curated 24 Jul 2026
Chinese-Speaking Threat Actor Harnesses AI Models for Autonomous Cyberattacks
First reported · updated · 7 reports paloaltonetworks.com
Coverage timeline
Why it matters
The campaign is one of the first documented real-world cases of a threat actor running an AI agent largely unattended to carry out end-to-end intrusion against a government target, signaling that autonomous agentic attack tooling has moved from theory into active operations.
Unit 42 reports a Chinese-speaking threat actor weaponized AI models—including DeepSeek and the open-source Hermes AI agent—to autonomously scan for, exploit, and compromise vulnerable servers, including an attack tied to the Thai Ministry of Finance. The actor drove the AI agent unattended via MCP tooling (FofaMap MCP server, Nuclei) to chain reconnaissance and exploitation of multiple CVEs with minimal human intervention.
Summary
Unit 42 documented an AI-enabled autonomous hacking campaign by a Chinese-speaking threat actor operating under the aliases knaithe and KnYuan. The actor combined autonomous AI-driven enumeration and exploitation with manual conventional operations, engaging seven vulnerabilities against internet-exposed infrastructure. DeepSeek, driven through the open-source Hermes Agent framework and commanded over Telegram, served as the autonomous operator that enumerated targets via FOFA, sourced public exploit code, and launched attacks without human intervention.[0][10]
Unit 42 gained unique insight when the agent inadvertently started a file server in the actor's home directory, exposing the full operational environment: AI tool configurations, exploit tooling, targeting, and autonomous session logs. The recovered logs show the agent attempting to exploit Langflow (CVE-2026-33017), then autonomously surveying product families and trending GitHub PoCs to pivot to a higher-value n8n exploit chain (CVE-2026-21858 / CVE-2025-68613); both autonomous attempts failed due to target-side configuration and authentication requirements.[0][17][18][20][21][22]
The actor also ran manual campaigns with confirmed impact, exfiltrating data from three organizations via a Citrix NetScaler vulnerability (CVE-2026-3055). The actor selected DeepSeek—a model with no built-in safety layer—for autonomous use within the Hermes framework, a self-hosted approach that contrasts with Anthropic's November 2025 disclosure of Chinese state-sponsored abuse of vendor-hosted Claude Code, where the vendor could ban accounts.[0][25][47]
Attack chain
- Phase 1: Langflow exploitation attempt (autonomous): DeepSeek identified CVE-2026-33017 (Langflow, CVSS 9.8), downloaded the public PoC from GitHub, enumerated 84 Langflow instances via FOFA (title="Langflow"), ran the PoC scanner, and identified one vulnerable target (Langflow 1.3.4). Exploitation failed because the target lacked auto_login and a public flow ID; the agent assessed the product family as a low-value target.[0][17][18]
- Phase 2: Autonomous CVE research and target selection: After abandoning Langflow, DeepSeek surveyed deployment counts across 10 product families via FOFA and searched GitHub for trending 2026 CVE PoC repositories sorted by stars, evaluating candidates by severity, footprint, and exploitability before selecting n8n (258-star PoC, CVSS 10.0). FOFA confirmed 647,017 n8n instances globally and 25,209 in China.[0]
- Phase 3: n8n exploit acquisition: DeepSeek obtained the public n8n PoC from the Chocapikk repository, which chains CVE-2026-21858 (arbitrary file read, CVSS 10.0) and CVE-2025-68613 (sandbox bypass to RCE, CVSS 9.9), requiring an unauthenticated form with file upload. The agent analyzed affected version ranges, noting v1.117.3 was vulnerable to both.[0][20][21][22]
- Phase 4: n8n target enumeration and exploitation attempts: DeepSeek ran FOFA queries against Chinese n8n instances and probed targets for version and form endpoints, confirming three vulnerable versions (v1.18.0, v1.117.3, v1.108.2). All discovered form endpoints required authentication, so no exploitation was achieved and recovered session data ends here.[0]
- Manual exploitation (separate workflow): Using conventional FOFA enumeration, custom Python scanners, and direct exploitation, the actor exfiltrated data from three organizations via a Citrix NetScaler vulnerability (CVE-2026-3055), with additional manual command-execution activity reported.[0][25]
Disclosure timeline
| Date | Event |
|---|---|
| 2025-11-13 | Anthropic discloses a Chinese state-sponsored group's AI-orchestrated espionage campaign abusing vendor-hosted Claude Code against roughly thirty targets—a contrast case to this self-hosted operation.[47] |
| 2026-05-07 | Unit 42 recovers the autonomous Langflow-to-n8n attack sequence from a single Hermes Agent session.[0] |
| 2026-07-30 | Unit 42 publishes its analysis of the Chinese-speaking actor's AI-enabled autonomous cyberattack campaign.[0] |
Actor profile
knaithe / KnYuan
A Chinese-speaking, opportunistic exploit operator who assembled an integrated AI offensive environment: DeepSeek driven through the Hermes Agent framework with custom red-teaming skills (godmode jailbreaking, web-terminal-exploitation, fofa-cyberspace-search), a FofaMap MCP server, Telegram command-and-control, and proxy anonymization for Western tools. The actor evaluated multiple Chinese-market LLMs (Qwen, GLM, Kimi, MiniMax) and tested Western tools (Claude Code, Codex) in limited fashion, consistent with assessing the AI market for a preferred toolset. The actor showed OPSEC awareness—disabling Codex response storage and enabling anti-attribution headers—yet inadvertently exposed the entire workspace via a file server started in the home directory.[0][15]
How it works
The autonomous engine used DeepSeek as the reasoning model within the Hermes Agent framework, which provided terminal access, Telegram command-and-control, and a skills system with no built-in safety layer. The actor added custom red-teaming skills: a framework-bundled 'godmode' LLM-jailbreaking skill, a custom 'web-terminal-exploitation' skill for unauthenticated WebSocket exploitation, and a 'fofa-cyberspace-search' skill invoking the actor's fofoapi.py for internet asset enumeration. The actor also integrated the open-source FofaMap MCP server exposing FOFA search, Nuclei scan generation, and a DeepSeek-powered natural-language-to-FOFA translator.[0][15][16]
The actor deliberately configured tools to reduce restrictions and traceability: Claude Code with dangerously-skip-permissions and 12 allowlisted tools plus anti-attribution headers (CLAUDE_CODE_ATTRIBUTION_HEADER "0", CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC "1"), Codex with disable_response_storage = true and network access enabled, and Qwen Code in 'yolo' approval mode. Western tools were routed through the code.newcli[.]com proxy; DeepSeek and Qwen were accessed directly via their native API endpoints. Removing client-side execution permissions does not affect provider-side controls for vendor-hosted platforms.[0][14]
The n8n exploit chained CVE-2026-21858 (arbitrary file read, CVSS 10.0, patched in 1.121.0) and CVE-2025-68613 (sandbox bypass to RCE, CVSS 9.9, patched in 1.120.4), and required an unauthenticated form with file upload—so authenticated form endpoints defeated the attempt. The Langflow flaw CVE-2026-33017 (CVSS 9.8) required either auto_login enabled or a public flow ID, neither of which the target had. Confirmed manual impact came from CVE-2026-3055, a Citrix NetScaler flaw used to exfiltrate data from three organizations.[0][17][18][20][21][22][23][24][25]
Affected versions and patch status
| Product | Affected | Patch status |
|---|---|---|
| n8n Workflow Automation | Versions vulnerable to CVE-2026-21858 (arbitrary file read) and CVE-2025-68613 (RCE); v1.117.3 was vulnerable to both, with observed vulnerable instances at v1.18.0, v1.117.3, and v1.108.2. | CVE-2026-21858 patched in 1.121.0; CVE-2025-68613 patched in 1.120.4.[0][20][21][22][23][24] |
| Langflow | Langflow 1.3.4 identified as a vulnerable target for CVE-2026-33017 (CVSS 9.8), exploitable only when auto_login is enabled or a public flow ID is present. | Not specified in the evidence.[0][17][18] |
| Citrix NetScaler | Instances vulnerable to CVE-2026-3055, actively exploited with confirmed data exfiltration from three organizations. | Not specified in the evidence.[0][25] |
Indicators of Compromise
| Type | Indicator | Context |
|---|---|---|
| domain | code.newcli.com | Third-party proxy service through which the actor routed the Western tools Claude Code and Codex (code.newcli[.]com/codex/v1, /ultra) to reduce traceability.[0] |
| file-path | /home/worker | Actor home directory from which the Hermes Agent inadvertently started an exposed HTTP file server, leaking the full workspace to researchers.[0] |
| other | knaithe / KnYuan | Aliases used by the Chinese-speaking threat actor, identified from the exposed operational environment.[0] |
Key takeaways
- Autonomous AI-driven attack cycles are operationally viable end-to-end—the agent discovered, assessed, pivoted, and retargeted without human intervention; the margin of failure here hinged on target-side configuration rather than any defensive detection.[0]
- Threat actors follow the path of least resistance in model choice: this actor selected DeepSeek within a framework with no built-in safety layer for autonomous use and only tested Western tools in limited fashion, contrasting with the vendor-oversight model in Anthropic's November 2025 Claude Code disclosure.[0][47]
- Autonomous AI execution introduces novel OPSEC risk for attackers: the same automation that enabled the campaign caused its exposure when the agent started a file server in the home directory, producing forensic artifacts that manual execution would not have generated.[0]
Defensive actions
- Harden and patch internet-exposed Langflow, n8n, and Citrix NetScaler deployments, and remove weak default configurations such as auto_login or public flow IDs and unauthenticated form endpoints.: Autonomous exploitation was prevented only by target-side requirements (absence of Langflow auto_login/public flow ID, authentication on n8n form endpoints); weaker-configured targets would have been susceptible, and confirmed impact came via Citrix NetScaler CVE-2026-3055.[0][25]
- Prioritize n8n upgrades to at least 1.121.0 (CVE-2026-21858) and 1.120.4 (CVE-2025-68613) and remediate CVE-2026-33017 and CVE-2026-3055.: The actor maintained active exploit tooling for these vulnerabilities across autonomous and manual workflows, achieving confirmed impact on some.[0][17][20][21][22][23][24][25]
- Block or scrutinize traffic to anonymizing proxies such as code.newcli[.]com and treat self-hosted, permission-stripped AI agents (e.g., Hermes with DeepSeek) as an operational risk while monitoring attack-surface exposure.: The actor deliberately selected a model with no built-in safety layer in a framework with no client-side restrictions and routed Western tools through a proxy to evade attribution; provider-side controls do not apply to self-hosted models.[0]