knaithe/KnYuan — an autonomous DeepSeek+Hermes agent mass-scanned 460+ targets for Langflow, n8n and Marimo RCEs; the AI-tool exploits failed only where auth was on (July–August 2026)
TL;DR
Palo Alto Networks Unit 42 recovered a live session showing a Chinese-speaking operator (knaithe / KnYuan) running an autonomous attack pipeline — DeepSeek as the reasoning engine inside the open-source Hermes Agent framework — against 460+ targets, hunting exactly the self-hosted AI infrastructure this repo already tracks: Langflow (CVE-2026-33017), n8n (CVE-2026-21858 / CVE-2025-68613), and Marimo (CVE-2026-39987), plus Citrix NetScaler (CVE-2026-3055). The agent enumerated 84 Langflow instances and sampled from 25,209 Chinese n8n systems via FOFA, then exploited on its own. The finding worth your attention: the Langflow and n8n attempts failed, and they failed for exactly the reasons this repo tells you to configure — auto_login was off, no public flow ID was exposed, and the n8n form endpoints required authentication. Marimo and NetScaler, which had no such gate, were compromised: command execution on 11 Marimo notebooks and data exfiltration from three NetScaler organizations. Tenable subsequently clustered this with six other incidents as a named "Agentic AI Threat Cluster."
What happened
On 2026-07-30, Unit 42 published an analysis of a threat actor it tracks under the aliases knaithe and KnYuan, assessed as an individual operator based in Zhuhai, China, whose activity Unit 42 characterizes as opportunistic rather than state-directed.
The stack. Unit 42 is explicit about the division of labor: "Hermes Agent provided orchestration (terminal access, Telegram-based command and control, and the skills system) while DeepSeek served as the reasoning engine." The actor also used Qwen, GLM, Kimi, and MiniMax, and did limited testing of Claude Code and Codex — Western platforms — alongside the Chinese models. This repo already tracks the Hermes framework from the Thailand Ministry of Finance intrusion and the Taiwan government/nuclear-safety campaign; this is its third appearance and the first where the recovered artifact is the agent's own session transcript.
The recovered session (2026-05-07). The agent ran a coordinated vulnerability assessment that Unit 42 says executed "hundreds of hours of equivalent manual work in minutes":
- Langflow phase — enumerated 84 Langflow instances via FOFA, then ran a proof-of-concept scanner with 10 parallel threads.
- n8n phase — DeepSeek sampled roughly 100 IP addresses out of 25,209 Chinese systems FOFA identified, then probed about 40 unique IPs, checking each one's version via
curl. Unit 42 notes the actor "allowed DeepSeek to narrow the targeting scope, likely to conserve AI compute" — the model was making the targeting decisions, not just executing a list.
Across the wider campaign the actor hit over 460 targets using a mix of autonomous and manual techniques, exploiting seven vulnerabilities in total.
What failed, and why it matters more than what succeeded
This is the part of the report that changes what a reader should actually do.
| Target | CVE | Outcome | Why |
|---|---|---|---|
| Langflow | CVE-2026-33017 | Failed | The exploit "requires either auto_login enabled or a public flow ID and the target had neither." The agent's own reasoning, quoted by Unit 42: "All three Langflow need public flow ID but no auto_login — stuck." |
| n8n | CVE-2026-21858 / CVE-2025-68613 | Failed | Three instances were running vulnerable versions, but "all required authentication" on the form endpoints. The agent: "these forms have auth enabled. Let me check other targets." |
| Marimo | CVE-2026-39987 | Succeeded | Command execution achieved on 11 Marimo notebook instances. |
| Citrix NetScaler | CVE-2026-3055 | Succeeded | Data exfiltrated from three organizations; the actor searched for NetScaler authentication cookies (NSC_AAAC=), indicating session-hijacking intent. |
An autonomous attacker with a working exploit and a list of confirmed-vulnerable hosts was stopped by ordinary authentication being switched on. Both of the failures land on tools this repo has repeatedly flagged as "central credentials cache" targets — see Langflow CVE-2026-33017 and the n8n RCE cluster — and in both cases the specific control that held is the one those advisories tell you to set. Meanwhile Marimo CVE-2026-39987, an unauthenticated pre-auth RCE with no equivalent gate, fell.
The intelligence pipeline. The actor maintains a GitHub-hosted automated vulnerability-intelligence tool called 1DayNews, which aggregates RCE disclosures from 17 sources (primarily network-perimeter vendors), uses DeepSeek to filter for exploitability, and pushes actionable alerts over Telegram. This is the reconnaissance half of the same automation: disclosure-to-exploit compression is not just faster exploitation, it is faster triage of which disclosures are worth exploiting at all.
Tenable clusters this with six other incidents (2026-08-14)
On 2026-08-14, Tenable published an "Agentic AI Threat Cluster" analysis grouping seven incidents and three named actors spanning roughly November 2025 → August 2026. The three actors: the Taiwan operator (suspected China-linked, unattributed to a specific entity), JADEPUFFER, and knaithe/KnYuan. Tenable's contribution is the clustering, not new primary research — it cites Unit 42 (2026-07-30), Dream Security (2026-08-12), and Sysdig TRT's JADEPUFFER report (2026-07-01), all three of which this repo already tracks separately (JADEPUFFER, Taiwan/Dream). It characterizes agentic capability as autonomous or semi-autonomous systems operating "beyond step-by-step human direction," with self-directed reconnaissance, technique selection, and lateral-expansion decisions.
The CVE list Tenable attributes across the cluster is a near-exact overlay of this repo's own coverage: CVE-2025-3248 and CVE-2026-33017 (Langflow), CVE-2026-39987 (Marimo), CVE-2026-21858 and CVE-2025-68613 (n8n), plus CVE-2026-3055 (Citrix NetScaler), CVE-2026-34486 (Apache Tomcat), CVE-2026-0300 (PAN-OS), and CVE-2026-33824 (Windows IKE VPN). Self-hosted AI orchestration tooling is now a standing target category for autonomous attackers, not an incidental one.
Update 2026-09-12 — PaperCut: a Codex + DeepSeek agent fleet compromised 440+ instances across 395 organisations in 48 countries, from empty workspace to first RCE in under four hours
The third agentic-threat-actor campaign in this cluster, and the largest by victim count. Blackpoint Cyber and GreyNoise (both 2026-09-09) reconstructed a Russian-speaking actor's operation against **PaperCut N
You are in the target set if you run any of these reachable from a network you don't fully control. Check exposure and configuration, in this order:
# 1. Is anything listening on the usual AI-tool ports on a non-loopback interface?
ss -tlnp 2>/dev/null | grep -E ':(7860|5678|2718|8080|3000)\b' | grep -v '127\.0\.0\.1'
# 2. Langflow — the two conditions the agent needed and did not get.
# Confirm auto_login is OFF and no flow is publicly reachable without a token.
env | grep -i 'LANGFLOW_AUTO_LOGIN\|LANGFLOW_SUPERUSER'
LANGFLOW_HOST="your-langflow-host:7860" # set this, then:
curl -s -o /dev/null -w '%{http_code}\n' "http://$LANGFLOW_HOST/api/v1/auto_login" # want 401/403/404, not 200
# 3. n8n — form/webhook endpoints must require auth, and the version must be current.
docker exec "$N8N_CONTAINER" n8n --version 2>/dev/null || npm ls n8n 2>/dev/null
# 4. Marimo — no equivalent gate exists; the only safe posture is "not reachable".
# Confirm your version is patched for CVE-2026-39987 and that it is not bound to 0.0.0.0.
Then check for the outcomes the agent actually achieved:
- Marimo — review notebook process history and any child processes spawned by the Marimo server; command execution was confirmed on 11 instances in this campaign.
- NetScaler — audit for
NSC_AAAC=cookie theft and unexpected authenticated sessions. - Any exposed instance — treat every credential the tool held as in scope, not just the tool's own login. That is the standing rule for this class in this repo, and it is exactly what an agentic attacker is optimizing for.
Note the campaign's observed targeting was Chinese infrastructure (FOFA enumeration of Chinese systems), so geographic absence from that set is not a reason to relax — the technique, the tooling, and the CVE list are all portable, and the same Hermes framework has already been used against Thai and Taiwanese targets.
Update 2026-09-09/10 — a fourth ATA campaign: hundreds of AI agents (OpenAI Codex + DeepSeek) mass-exploit 440+ PaperCut instances
GreyNoise and Blackpoint Cyber independently documented a Russian-speaking operator running "hundreds of AI agents" against PaperCut NG/MF print-management servers from 2026-08-31, exploiting CVE-2026-81578 (authentication bypass) and CVE-2026-82078 (RCE). It is the same agentic-threat-actor shape as knaithe, at larger scale and against a different (non-AI) target class — logged here because this file is the repo's home for autonomous-agent mass-exploitation campaigns, not because PaperCut is a vibe-coding tool.
- The stack (GreyNoise): OpenAI Codex and DeepSeek models as the agents, Hindsight (a persistent-memory service) and AionUi (a graphical agent workspace) for orchestration, the Netlas.io scanning API for target discovery, and off-the-shelf offensive tooling (Mimikatz, SharpHound, Certipy, BloodHound, Rubeus) for post-exploitation. Blackpoint adds that the campaign preserved state in timestamped markdown files recording completed work, blockers and next hypotheses — the same "agent playbook as persistence layer" pattern GTIG named for TeamPCP.
- Speed and scale: empty workspace → RCE in under 4 hours; RCE → domain admin in ~2 more; 11 organizations compromised in 26 seconds once the runner was live; fastest domain-admin was 5 minutes (a US high school). 440+ instances across 395 organizations in 48 countries, ~280 credential-harvesting successes, 12 reaching domain admin. Education was the hardest-hit sector (204 victims); US, UK, France and Spain led by count. Infrastructure was exposed at
45.142.193[.]132. - What held: GreyNoise notes that fundamental hardening still worked — a Cloudflare WAF blocked at least one attempt — reinforcing this advisory's core finding that ordinary controls stop autonomous attackers holding working exploits.
- Detection (Blackpoint/GreyNoise): unexpected child processes off the PaperCut service (
cmd.exe,powershell.exe,whoami.exe,wmic.exe), registry-hive dumping and base64 staging files,ligolo-ngtunnel agents, and configuration changes to PaperCut's user-lookup database settings. Patch PaperCut and take it off the public internet.
This makes at least four distinct autonomous-agent exploitation campaigns tracked here (knaithe, JADEPUFFER, Taiwan/Dream, and now the PaperCut operator), plus the vendor-telemetry view in GTIG's adversarial-AI report and Anthropic's September threat report. The agent-orchestrated intrusion is no longer a novelty incident class.
Update 2026-09-14 — a fifth case, this time a targeted enterprise intrusion: Unit 42's IR team documents a human operator running parallel frontier-model agents from a public API endpoint to CI/CD and the victim's own AI infrastructure in under 10 hours
Unit 42 published on 2026-09-02 an incident-response case ("An AI-Assisted Cyber Attack: Inside a Unit 42 Investigation") that differs from the four mass-scanning campaigns above in one respect that matters to this repo's readers: it was a single-victim, hands-on-keyboard intrusion in which the human attacker used "frontier AI models and attack-specific agentic AI frameworks" to do the work. Unit 42 does not name the models or frameworks (The Register asked and got no answer), and the report is single-source vendor IR, so it is logged as ongoing provenance rather than a confirmed attribution.
- Speed: initial infiltration to full infrastructure compromise in ~10 hours, over 50 MITRE ATT&CK techniques, across five stages — infiltration and mapping of a public API endpoint and its microservices, secrets harvesting from code repositories and the secret-management system, privilege escalation, pipeline (CI/CD) exploitation, and hijacking of the victim's AI infrastructure to hide its presence. Unit 42's estimate for a skilled human red team on the same path: about two weeks.
- What the agents left behind, and what to look for: the attacker's tooling wrote structured Markdown files for inter-agent communication, Python caches and paired asset folders, and custom scripts Unit 42 assessed "with high confidence to be AI-generated"; behaviourally, bursty API requests, rapid 401→200 state shifts, parallel authentications, and sudden model usage on the victim's own AI endpoints. That is the third time this file has recorded markdown-as-agent-state (TeamPCP's
AGENTS.md-style playbooks per GTIG; Blackpoint's timestamped markdown for the PaperCut operator) — a filesystem signature worth a detection rule. - The 80-page audit: on completion the attacker's agent produced an 80-page report on the victim's security failings "detailing dozens of exploited findings" — an artifact of the agent framework doing what it was built to do, and an odd but real IOC.
- Unit 42's guidance maps directly onto this repo's playbooks: synchronised revocation of credentials and sessions; strict rate limits and logging on AI infrastructure; behavioural detection of operational loops; multi-party code review and branch protection on the pipeline the agents pivoted through.
Read alongside the Aurora/Cursor Agent case, this is the enterprise-targeted counterpart to the mass-exploitation campaigns above: same tooling shape, one victim, and the victim's own code repositories, secrets store, CI/CD and model endpoints as the path — exactly the surface a vibe-coding shop stands up first.
Update 2026-09-17 — a regulator's record: Spain's data-protection authority receives its first personal-data-breach notification for an attack "executed by means of an AI agent" (AEPD, 2026-09-14)
The Spanish data-protection authority (AEPD) published on 2026-09-14 that it had received the first breach notification in which the attack was carried out by an AI agent built on "a known language model" — the AEPD is explicit that this does not mean the model or its provider was compromised or built for the purpose. Per the AEPD's own post and the independent coverage (SecurityWeek and The Register, both 2026-09-16; Help Net Security 2026-09-17): the agent scanned generic files for weaknesses, logged into the target organisation's system, searched the application autonomously until it found a vulnerability, then modified personal records and accessed invoice data — "successfully chaining together different phases of the attack." No victim, tool, model or vector is named. AEPD deputy director Francisco Pérez Bes: "attacks supported by artificial intelligence have ceased to be a theoretical risk and are beginning to materialize," and "human supervision remains essential, but it must be supported by detection, containment, and response mechanisms capable of operating quickly enough."
What this adds to the cluster above is not tradecraft — it is thinner than any Unit 42 or GreyNoise case here — but provenance: the first agentic intrusion recorded through a GDPR Article 33 notification rather than a vendor's telemetry, which means the class now has a regulatory paper trail and the AEPD's guidance (include AI-assisted attacks in risk analyses; review response procedures for automated threats; harden identity and credential management; detection and containment "at machine speed") is the first data-protection-authority position on it. The AEPD also notes 2025 was its busiest year on record (30,931 complaints, +64%). Recorded here rather than as a separate advisory because it names nothing a reader can act on beyond the class itself.
If you are affected
- If your local AI agent was exploited
- Rotating cloud credentials — an exposed Langflow/n8n/Marimo instance is a credential hub; rotate every upstream provider key it held, not just the tool's own.
- If your web app was compromised
Prevention
The single highest-value action this incident supports: turn authentication on and keep convenience defaults off. auto_login, anonymous form endpoints, and 0.0.0.0 binds are the difference between the two rows of the table above.
Sources
- AEPD — Primera notificación de brecha de datos personales causada por un ataque ejecutado mediante un agente de IA — fetched 2026-09-17 (Spanish); published 2026-09-14: the regulator's primary record for the 2026-09-17 update, the "known language model" caveat, the attack phases, the recommendations.
- SecurityWeek — First Agentic AI Data Breach Reported to Spanish Regulator — fetched 2026-09-17; published 2026-09-16: the AEPD quotation on agent autonomy and the three expert scenarios.
- The Register — Spain gets its first taste of AI-aided cyber attack — fetched 2026-09-17; published 2026-09-16: Pérez Bes's quotes, the 2025 complaint statistics, the link to the AEPD post.
- Help Net Security — Spain reports first data breach involving autonomous AI agent — fetched 2026-09-17; published 2026-09-17: the attack-phase description and the cross-references to the Hugging Face and Anthropic eval incidents.
- Unit 42 — Chinese-Speaking Threat Actor Harnesses AI Models for Autonomous Cyberattacks (published 2026-07-30) — primary source, fetched directly: actor aliases and Zhuhai assessment, the Hermes+DeepSeek division of labor, the 2026-05-07 recovered session (84 Langflow instances, 25,209 FOFA-identified n8n systems, ~100 sampled IPs, ~40 probed), per-CVE success/failure outcomes and the agent's own quoted reasoning, the 11 compromised Marimo instances, the three NetScaler victims and
NSC_AAAC=cookie hunting, and the 1DayNews pipeline (17 sources, DeepSeek filtering, Telegram distribution). - Tenable — The Agentic AI Threat Cluster: Seven Incidents, Three Actors, and What They Mean for Your Exposure (published 2026-08-14) — independent corroboration and clustering, fetched directly: the seven-incident/three-actor framing, the cross-campaign CVE list, and the characterization of agentic capability as operating beyond step-by-step human direction. Explicitly a synthesis of already-disclosed reporting (Unit 42, Dream Security, Sysdig TRT) rather than new primary research.
2026-09-09/10 PaperCut update sources: - GreyNoise — AI-Orchestrated Campaign Against PaperCut NG/MF — fetched 2026-09-12; published 2026-09-09: Russian-speaking actor, Codex+DeepSeek attribution, Netlas.io scanning, timing (26 seconds / 5 minutes), 440/280/12 victim counts, per-country and per-sector breakdown, detection guidance. - Blackpoint Cyber — Death by a Thousand PaperCuts: AI-Driven Exploitation at Scale — fetched 2026-09-12; published 2026-09-09: Hindsight/AionUi orchestration, timestamped-markdown state files, CVE-2026-81578/CVE-2026-82078, 517-target runner, geofencing, defender guidance. - The Hacker News — PaperCut Attacker Uses Hundreds of AI Agents to Compromise 440+ Instances — fetched 2026-09-12; published 2026-09-10: aggregator corroboration of both primary reports.
2026-09-14 Unit 42 update sources: - Unit 42 — An AI-Assisted Cyber Attack: Inside a Unit 42 Investigation — fetched 2026-09-14; published 2026-09-02: primary IR account — five-stage timeline, ~10-hour duration, 50+ techniques, the Markdown/Python-cache/paired-folder and bursty-auth indicators, the 80-page report, recommendations. Models and frameworks not named. - The Register — AI agents carried out every step of this ransomware attack – then left the victim an 80-page security audit — fetched 2026-09-14; published 2026-09-02: secondary coverage; records that Unit 42 declined to say which models/frameworks were used.