AI News

DeepSeek Attack Tool: What Unit 42 Found, What to Patch

Unit 42 uncovered a threat actor using DeepSeek inside an autonomous agent framework. Explore the attack chain, what actually worked, and the security lessons for defenders.

Toolbit AI - Team
5 min read
DeepSeek Attack Tool: What Unit 42 Found, What to Patch

Security researchers just got a rare, accidental look inside a live AI-powered attack operation. On July 30, Palo Alto Networks' Unit 42 published findings on a threat actor who connected DeepSeek to an open-source hacking framework and attacked 460+ internet-facing systems, with the AI side driven by Telegram messages.

The short version

  • A Chinese-speaking actor known as knaithe (aka KnYuan) wired DeepSeek into an open-source agentic framework called Hermes Agent, using it as the "reasoning brain" for autonomous attacks
  • The fully autonomous, AI-driven attacks failed against every target they tried
  • The same actor's manual, conventional attacks succeeded, compromising three organizations through a real, patchable Citrix vulnerability
  • Researchers only found this because the attacker's own tooling accidentally exposed itself on the open internet
  • The actor also tried Claude Code and OpenAI Codex only in a limited way; Unit 42 says provider-side controls likely limited their use for autonomous attacks, while DeepSeek in an open-source framework had no such guardrail

How researchers found it

Unit 42 didn't find this through a tip or a breach report. Hermes Agent, the framework the attacker was using, accidentally spun up a public web server from its own home directory.

That exposed:

  • API keys
  • Exploit scripts
  • Target lists
  • Shell command history
  • Full AI attack session logs

That mistake gave researchers a rare, complete view of an AI-driven attack operation while it was still running.

The Attack Stack

  • DeepSeek - used as the reasoning engine, generating search queries, evaluating which CVEs to use, and adapting exploit logic on the fly
  • Hermes Agent - an open-source AI agent framework providing terminal access, tool orchestration, and Model Context Protocol (MCP) integrations
  • Three custom offensive skills - a jailbreaking module, a WebSocket exploitation skill, and a FOFA cyberspace-search procedure, wired directly to FOFA's internet asset index via MCP
  • "Yolo" mode - lets the agent execute risky commands autonomously, with no operator confirmation required
  • Telegram - the actor's remote control channel; one instruction could trigger enumeration, vulnerability selection, exploit downloading, and attack attempts with no further human input
Diagram of one chat message fanning out to three tool steps (search, scan, run) that end at a server

Autonomous attacks failed; manual ones worked

This is the part worth sitting with: the fully autonomous AI attacks didn't work.

  • DeepSeek-led attacks against Langflow and n8n instances failed: the exposed systems didn't meet the exploits' configuration requirements
  • Unit 42 counted 460+ targets across the whole campaign, autonomous and manual combined. It reported no full compromise from the autonomous attempts

But the same operator's manual, hands-on attacks (old-fashioned scanning and exploitation, no AI involved) succeeded:

SystemCVEOutcome
Citrix NetScalerCVE-2026-30553 confirmed compromises, memory exfiltrated
Marimo NotebookCVE-2026-39987Command execution on 11 instances
Apache TomcatCVE-2026-34486Reverse shell attempts
Windows IKE VPNCVE-2026-33824Reverse shell attempts
PAN-OSCVE-2026-0300Research only, non-functional
AI chip between a terminal window and a chat bubble, with a broken padlock above it

The Citrix NetScaler compromises are the ones that matter most. The actor extracted memory from the affected appliances and specifically searched it for authentication cookies, a clear sign of session-hijacking intent, not just data collection. Unit 42 flagged a suspected session-hijacking attempt against a Malaysian government entity as part of this activity.


Safety controls pushed the actor toward DeepSeek

The actor didn't only use DeepSeek. Logs showed testing of Qwen, GLM, Kimi, and MiniMax, plus limited trials of Claude Code and OpenAI's Codex.

  • The Western tools were used rarely (Claude Code mostly for connectivity tests), and Unit 42 concludes that provider-side controls likely limited their usefulness for offensive work. OpenAI told Unit 42 its safeguards refused policy-violating requests and that it disabled an account linked to the campaign
  • DeepSeek, running inside an open-source framework with no equivalent guardrail, didn't have that problem

That gap, not the specific CVEs, is the real story for anyone building or securing AI-agent infrastructure. Provider-side safety training only helps if your stack is actually using a provider that enforces it.


What to do this week

  • Patch Citrix NetScaler now. Check Citrix's security bulletin for CVE-2026-3055, confirm whether your ADC or Gateway configuration is affected, and install the fixed build
  • Audit internet-facing Langflow, n8n, Marimo, and Tomcat instances. These were all active exploit targets in this campaign, whether or not the AI-led attempts succeeded
  • Inventory any AI agent framework running in an unattended or "autonomous" mode inside your own environment, and confirm it can't reach the open internet, execute shell commands, or hold API keys without review
  • Don't treat "the autonomous attack failed" as reassurance. Unit 42's own conclusion was blunt: the workflow proved a functional, end-to-end autonomous offensive capability, even with limited real-world impact so far
  • Review MCP server permissions on any internal AI tooling, and log what your agents do (our agent observability guide shows how). This attacker used an MCP connection to hand an LLM direct access to an internet-wide asset index. The same integration pattern legitimate teams use for productivity is exactly what made this attack chain possible
Shield with a five-item checklist ticked off in front of server racks

Verdict: not an apocalypse, not nothing

This wasn't an AI apocalypse story, and it wasn't nothing either. The autonomous attacks failed every single time they were tried. But the same actor succeeded the old-fashioned way with manual attacks, and the AI layer sped up reconnaissance and target selection even where it couldn't finish the job. Unit 42 notes the margin of failure was narrow: targets with weaker default settings would have been exposed. If you run agents yourself, our guide to governed multi-agent workflows with n8n and Claude via MCP covers tool allowlists and approval gates. The gap between "AI-led attacks don't work yet" and "AI-led attacks don't work reliably yet" is not a gap security teams should plan around.


This article is written for general security awareness and does not include exploit code, working payloads, or step-by-step reproduction details. If you manage Citrix NetScaler, Langflow, n8n, Marimo, or Apache Tomcat infrastructure, consult your vendor's official security bulletins directly before making configuration changes.

Share this article

Related articles

Continue exploring similar guides and insights