July 31, 2026
AI-Powered Autonomous Cyberattacks: How DeepSeek and Hermes Agent Are Redefining Offensive Security
Researchers Uncover an AI-Driven Campaign That Used DeepSeek and Telegram to Automate Vulnerability Discovery and Exploitation
By Germano Costi
5 min read
Artificial intelligence is rapidly transforming cybersecurity. While AI is helping defenders detect threats faster, cybercriminals are increasingly using the same technology to automate reconnaissance, vulnerability analysis, and attack execution.
A recent investigation by Palo Alto Networks Unit 42 revealed a sophisticated operation in which a Chinese-speaking threat actor leveraged the DeepSeek large language model through the Hermes Agent open-source framework to conduct largely autonomous cyberattack attempts. Instead of manually controlling every step, the operator simply initiated the campaign through Telegram, allowing the AI agent to perform much of the offensive workflow independently.
The incident highlights a significant shift in cyber operations: attackers are beginning to delegate technical decision-making to AI systems.
How the AI-Powered Attack Worked
According to Unit 42 researchers, the attacker used Hermes Agent as an orchestration framework that combined AI reasoning, terminal access, internet connectivity, exploit retrieval, and automation capabilities.
After receiving an initial instruction through Telegram, the AI agent was able to:
- Search the internet for exposed systems
- Identify vulnerable software versions
- Retrieve public proof-of-concept exploits from GitHub
- Evaluate which vulnerabilities were worth targeting
- Switch strategies when an attack path failed
- Continue operating without further human interaction
This represents a major evolution from traditional automated scripts.
Instead of executing predefined instructions, the AI actively reasoned, adapted, and selected the next attack path based on available information.
From Human Operator to Autonomous Decision-Maker
Unlike classic malware that follows hardcoded logic, the AI agent demonstrated behavior closer to a human penetration tester.
Researchers observed that it:
- Verified software versions
- Compared exploit reliability
- Considered deployment scale
- Prioritized vulnerabilities based on exploitation potential
- Abandoned ineffective attack chains
- Selected alternative targets
Although the attacks were not fully successful, the operational model represents an important milestone in AI-assisted offensive security.
Targeted Technologies
The campaign focused primarily on publicly accessible enterprise platforms frequently used for automation and AI workflows.
Among them were:
- Langflow
- n8n
- Marimo
- Citrix NetScaler ADC
- NetScaler Gateway
These products are increasingly deployed in cloud-native environments, making them attractive targets when exposed directly to the internet.
Why Most Attacks Failed
One reassuring aspect of the investigation is that most exploitation attempts were unsuccessful.
The AI correctly identified vulnerable software versions but frequently encountered environmental conditions that prevented exploitation, including:
- Authentication requirements
- Disabled vulnerable features
- Missing configuration parameters
- Lack of publicly accessible workflows
- Secure deployment practices
This demonstrates that proper system configuration remains one of the strongest defenses against AI-assisted attacks.
The Real Security Problem
The most interesting discovery wasn't actually the AI.
Researchers uncovered that the attacker accidentally exposed their own operational infrastructure by launching a temporary HTTP server.
This mistake allowed investigators to recover valuable forensic evidence, including:
- API keys
- Target lists
- Exploit scripts
- Configuration files
- Shell history
- AI session logs
- Autonomous execution records
Ironically, operational security — not AI — became the weakest link in the campaign.
What Makes Hermes Agent Different
Hermes Agent is not malware.
It is an open-source automation framework capable of integrating large language models with external tools.
Its documented capabilities include:
- Terminal execution
- Internet searches
- Scheduled tasks
- Telegram control
- Custom reusable skills
- Autonomous workflows
When connected to reasoning models like DeepSeek, these capabilities create a system able to perform complex offensive tasks with minimal human supervision.
A Glimpse Into the Future of AI-Assisted Hacking
Although only three targets were reportedly confirmed as successfully compromised during the broader operation, the significance lies elsewhere.
The campaign demonstrates that attackers are beginning to treat AI as an operational teammate rather than a simple chatbot.
Future AI agents may become capable of:
- Automatically discovering zero-day vulnerabilities
- Building exploit chains
- Generating malware
- Adapting to defensive controls
- Selecting targets dynamically
- Conducting long-running campaigns with little human oversight
While today's systems still require human supervision, each new model increases the level of autonomy.
How Organizations Can Defend Themselves
This campaign reinforces several cybersecurity best practices.
Organizations should:
- Keep internet-facing services fully patched
- Remove unnecessary public exposure
- Secure workflow automation platforms
- Restrict notebook and AI development environments
- Continuously monitor for suspicious reconnaissance activity
- Audit API usage and authentication mechanisms
- Implement Zero Trust access controls
- Use Endpoint Detection and Response (EDR) solutions
- Monitor AI-enabled administrative tools for abnormal behavior
The faster organizations reduce their attack surface, the harder it becomes for autonomous AI systems to identify exploitable targets.
Why This Research Matters
This incident is important not because the AI successfully compromised hundreds of systems, but because it demonstrates a new operating model for cyber attackers.
Large language models are evolving beyond content generation into autonomous decision-making systems capable of planning, adapting, and executing multi-stage technical operations.
For cybersecurity professionals, the message is clear: future defenses must anticipate attackers that combine automation, reasoning, and persistence.
The age of AI-assisted cyber operations is no longer theoretical — it has already begun.
Final Thoughts
Artificial intelligence is reshaping both sides of cybersecurity.
While defenders gain powerful tools for threat detection and incident response, attackers are also discovering ways to automate reconnaissance, exploit selection, and attack orchestration. The DeepSeek and Hermes Agent campaign illustrates how AI can accelerate offensive operations without replacing human operators entirely.
Organizations that rely solely on traditional perimeter defenses may struggle against increasingly adaptive AI-driven threats. Continuous patch management, secure configurations, proactive monitoring, and Zero Trust architectures are becoming essential components of modern cyber resilience.
As AI capabilities continue to evolve, the cybersecurity community must prepare for a future where autonomous agents participate in both defending and attacking digital infrastructure. Staying informed and reducing the attack surface today will be critical to mitigating tomorrow's AI-powered cyber risks.
Frequently Asked Questions (FAQ)
What is DeepSeek and why is it relevant to cybersecurity?
DeepSeek is a large language model (LLM) capable of reasoning through complex tasks. In this case, researchers observed it being used inside an autonomous agent framework to help identify vulnerabilities, retrieve exploits, and make attack decisions, demonstrating how AI can be integrated into offensive cybersecurity workflows.
What is Hermes Agent?
Hermes Agent is an open-source AI automation framework that connects language models with external tools such as terminals, internet search, APIs, and messaging platforms like Telegram. It allows AI systems to execute multi-step tasks with minimal human intervention.
Did the AI perform the cyberattacks completely on its own?
Not entirely. A human operator initiated the campaign, but after receiving the initial instruction, the AI agent independently searched for targets, selected exploits, evaluated attack paths, and adapted its strategy without continuous operator input.
Were the attacks successful?
Most attack attempts failed due to secure system configurations, authentication requirements, or missing prerequisites. Researchers confirmed only a limited number of successful compromises during the broader operation.
Which software products were targeted?
The campaign focused on several internet-facing enterprise platforms, including Langflow, n8n, Marimo, and Citrix NetScaler ADC/Gateway, all of which had publicly disclosed vulnerabilities.
Was any zero-day vulnerability used?
The investigation found that the attacker primarily relied on publicly disclosed vulnerabilities and available proof-of-concept exploits, rather than undisclosed zero-day vulnerabilities.
Why is this attack considered significant?
The importance lies in the automation of decision-making. Instead of following static scripts, the AI dynamically evaluated targets, selected exploits, abandoned unsuccessful attack paths, and chose alternative strategies, representing a new generation of AI-assisted cyber operations.
Can AI autonomously choose vulnerabilities to exploit?
Modern reasoning models can analyze public vulnerability information, compare exploitability, assess software versions, and prioritize attack opportunities. However, they still depend on available exploits and environmental conditions to succeed.
How can organizations protect themselves from AI-assisted attacks?
Organizations should promptly apply security updates, reduce internet exposure of administrative interfaces, implement Zero Trust security, enforce strong authentication, continuously monitor logs, and deploy Endpoint Detection and Response (EDR) solutions capable of detecting suspicious behavior.
Does this research mean AI is replacing hackers?
No. AI is currently acting as a force multiplier, helping attackers automate repetitive tasks and accelerate reconnaissance and exploitation. Human operators still provide objectives, oversight, and strategic decisions.
Should businesses be worried about autonomous AI cyberattacks?
Organizations should take the threat seriously. While current AI-driven attacks still have limitations, advances in reasoning models suggest that autonomous offensive capabilities will continue to improve, making proactive cybersecurity measures increasingly important.
What is the main takeaway from this incident?
The DeepSeek and Hermes Agent campaign demonstrates that artificial intelligence is evolving from a productivity tool into an operational component of cyberattacks. Future cybersecurity strategies must be designed to defend not only against human adversaries but also against increasingly autonomous AI-powered attack systems.
Source: https://thehackernews.com/2026/07/chinese-hacker-commands-deepseek-via.html