Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2151+ Articles
156+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Hacker Uses DeepSeek AI to Autonomously Attack Vulnerable Servers
Hacker Uses DeepSeek AI to Autonomously Attack Vulnerable Servers
NEWS

Hacker Uses DeepSeek AI to Autonomously Attack Vulnerable Servers

Palo Alto Networks Unit 42 documents a Chinese-speaking threat actor who used DeepSeek and the open-source Hermes Agent framework to conduct autonomous cyberattacks on exposed servers — targeting 7 CVEs across Langflow, n8n, NetScaler, and more with minimal human involvement.

Dylan H.

News Desk

July 31, 2026
6 min read

First Documented Autonomous AI Attack Campaign

Palo Alto Networks Unit 42 has published research exposing the first comprehensively documented case of a fully autonomous AI-driven cyberattack campaign — a Chinese-speaking threat actor directing an AI agent via a single Telegram message and letting it operate independently across hundreds of targets.

The operator, identified by aliases "knaithe" and "KnYuan", used the DeepSeek large language model combined with the open-source Hermes Agent framework to autonomously perform target reconnaissance, vulnerability research, exploit selection, and attack execution — with minimal human intervention.


The Attack Stack

The threat actor assembled a novel attack infrastructure from publicly available components:

ComponentRole
DeepSeek LLMReasoning engine — generates search queries, researches CVEs, adapts exploit logic
Hermes AgentExecution framework — terminal access, command execution, internet connectivity, MCP integrations
TelegramC2 interface — operator sends task via message; agent operates autonomously
FOFAChinese internet asset search engine — target enumeration and scope discovery

Hermes Agent supports a "Yolo" mode that executes commands — including potentially destructive ones — without operator confirmation. This mode was used in the observed campaigns.


How the Infrastructure Was Exposed

The campaign came to light through an operational security failure. While responding to a Telegram command, the Hermes Agent spun up an HTTP file server from its home directory (/home/worker) rather than an isolated staging directory — exposing the actor's entire workspace:

  • API keys and credentials
  • Custom exploit scripts and PoC code
  • Target lists with 460+ entries
  • Shell command history
  • Full AI attack session logs showing DeepSeek's reasoning chain

This unintentional exposure gave Unit 42 an unusually detailed window into the threat actor's methodology and targets.


CVEs Targeted

The autonomous campaign targeted seven vulnerabilities across widely deployed software:

TargetCVECVSSNotes
LangflowCVE-2026-330179.8Unauthenticated RCE via public flow API; CISA KEV March 2026
n8nCVE-2026-2185810.0Arbitrary file read chained to sandbox bypass RCE
n8nCVE-2025-686139.9Sandbox bypass RCE
Citrix NetScalerCVE-2026-3055—Session hijacking via memory extraction
Apache TomcatCVE-2026-34486—Reverse shell attempt
Marimo NotebookCVE-2026-39987—Confirmed command execution
PAN-OSCVE-2026-0300—Targeted
Windows IKECVE-2026-33824—Targeted

Patch Status

SoftwarePatched Version
Langflowv1.9.0
n8n (CVE-2026-21858)v1.121.0
n8n (CVE-2025-68613)v1.120.4 / v1.121.1 / v1.122.0
n8n (both CVEs)v1.121.1 minimum

DeepSeek's Autonomous Reasoning in Action

Unit 42's exposure of the workspace included AI session logs that reveal how DeepSeek reasoned through the attack chain. In a documented May 2026 session targeting Langflow:

1. DeepSeek pulled a public PoC for CVE-2026-33017
2. Used FOFA to enumerate 84 Langflow instances
3. Found one running v1.3.4 (vulnerable version)
4. Exploitation failed — instance had auto_login disabled and no public flow ID
5. DeepSeek autonomously pivoted:
   - Surveyed 10 product families by exposed instance count on FOFA
   - Searched GitHub for trending 2026 CVE PoC repos (sorted by stars)
   - Selected n8n: 647,000+ exposed instances vs. Langflow's 84
6. Switched to CVE-2026-21858 targeting

This pivot — from one failed target to a higher-value target, using GitHub trending data as a signal — was performed entirely by the AI without human input.


Multi-LLM Testing

The threat actor systematically evaluated multiple AI models for offensive capability, testing alongside DeepSeek:

  • Chinese models: Qwen, GLM, Kimi, MiniMax
  • Western models: Limited trials of Claude Code and OpenAI Codex

This indicates the actor is conducting systematic AI capability benchmarking for offensive operations — selecting the best model for each attack phase rather than committing to a single tool.


Autonomous AI vs. Manual Operations

An important nuance in Unit 42's findings: the autonomous AI-directed attacks did not successfully compromise their targets in the observed sessions. However, the same threat actor ran parallel manual operations that did achieve confirmed compromises:

MethodResults
Autonomous AI (DeepSeek + Hermes)No confirmed compromises in observed sessions
Manual/conventional operations3 NetScaler sessions hijacked; Marimo command execution confirmed

The AI represents a capability multiplier and force multiplier — enabling one operator to scan and attempt exploitation across hundreds of targets simultaneously — but human-directed exploitation remains more reliable when it encounters defensive controls or misconfigurations.


What This Means for Defenders

This campaign represents a qualitative shift in the threat landscape:

  1. Scale without expertise: An AI agent can enumerate hundreds of targets and research CVEs faster than a human team, lowering the skill bar for broad exploitation campaigns
  2. Adaptive targeting: The autonomous pivot from Langflow to n8n — selecting targets by exposed instance count — is a type of target prioritization previously requiring experienced analysts
  3. Detection gap: Traditional IOC-based detection may not catch AI-driven attacks that adapt their approach in real time
  4. Internet-exposed services are high priority: FOFA enumeration means any internet-exposed service running a known-vulnerable version is a target

Immediate Priorities

  • Patch Langflow to v1.9.0+, n8n to v1.121.1+ if internet-exposed
  • Remove internet exposure from n8n, Langflow, Marimo, and other AI infrastructure where not operationally required
  • Implement network segmentation between AI/automation tooling and production data
  • Monitor for FOFA-pattern scanning behaviour in web application logs (high-volume, low-payload GET requests with tool-like User-Agent strings)

Sources

  • Hacker Uses DeepSeek AI to Autonomously Attack Vulnerable Servers — BleepingComputer
  • Chinese-Speaking Threat Actor Harnesses AI Models for Autonomous Cyberattacks — Palo Alto Unit 42
  • Chinese Hacker Commands DeepSeek via Telegram — The Hacker News

Related Reading

  • ESET H1 2026: Malicious AI Skills Surge to 3,000+
  • CISA Flags Actively Exploited n8n RCE Bug
  • Critical n8n Flaws Allow Remote Code Execution and Exposure of Stored Credentials
#Threat Intelligence#AI#DeepSeek#Autonomous Attacks#BleepingComputer#China

Related Articles

Chinese Threat Actor Uses DeepSeek and Hermes Agent to Launch Fully Autonomous Cyberattacks

Palo Alto Networks Unit 42 exposes a Chinese-speaking threat actor who directed an AI agent via a single Telegram message, letting DeepSeek autonomously scan, exploit, and exfiltrate data across 460+ targets.

6 min read

JadePuffer Ransomware Used an AI Agent to Automate the Entire Attack

Security researchers have documented what appears to be the first ransomware operation conducted entirely by a large language model agent — JadePuffer...

3 min read

AI-Built Ransomware Toolkit Automates EDR Evasion and AD Discovery

A threat actor has deployed an AI-generated ransomware attack toolkit that automates Active Directory discovery and helps evade endpoint detection and…

4 min read
Back to all News