security ai-agents autonomous-agents offensive-ai threat-intel

When the Attacker Runs an Agent

DS
Drakon Systems · 1 August 2026 · 7 min read

For two years the industry argued about whether AI could actually run an attack, or just help a human write one. Unit 42 has now published a campaign where the answer is the uncomfortable one: the agent ran it.

In research published on 30 July 2026, Unit 42 documented an AI-enabled autonomous hacking campaign attributed to a Chinese-speaking threat actor operating under the aliases knaithe and KnYuan. The actor wired a large language model into an autonomous agent framework and pointed it at real infrastructure. The agent enumerated targets, sourced exploit tooling, and initiated attacks — with a human supervising rather than driving each step.

The observed impact was limited. The significance is not. This is a working, end-to-end offensive workflow in which language became action, and the operator was software.

What Unit 42 Actually Observed

Per the source, the campaign targeted infrastructure using seven vulnerabilities, combining autonomous AI-driven enumeration with manual exploitation that achieved confirmed impact. A few details are worth stating precisely, because the interesting parts are specific:

  • The actor used DeepSeek as the primary autonomous operator, orchestrated through an agent framework and driven over Telegram.
  • They configured multiple additional models in parallel — Qwen, GLM, Kimi, and MiniMax — and did limited testing of Western tooling, including connectivity checks and signs of exploit-development directories.
  • When initial exploitation stalled against a restrictive target, the agent autonomously searched for known critical CVEs, surveyed roughly ten product families, scanned GitHub for trending proofs of concept, and prioritised by attack surface before pivoting to higher-value bugs.
  • Unit 42 gained unusually deep visibility because the agent inadvertently exposed its own infrastructure by starting a file server in its home directory — revealing the full tool set to researchers.

That last point is the tell. The offensive side is not running mature agent operational security either. Both attackers and defenders are learning to contain autonomous agents at the same time — and the agent that leaks its own home directory is the same class of failure defenders worry about in their own stacks.

Faster, Not Fundamentally Different

It would be easy to over-dramatise this. Unit 42's own 2026 Global Incident Response Report, published two weeks earlier, is the sober counterweight. Its headline finding on AI is that the technology is a force multiplier — it shortens development cycles, automates content generation, and streamlines reconnaissance, compressing what once took days into hours. But the methods of compromise have not been redefined. Credential theft, phishing, exploitation of known vulnerabilities, and ransomware remain the workhorses.

The report's implication is the reassuring one, and we will not undersell it: defenders already have the knowledge and capabilities to prevent, detect, and respond to AI-enhanced attacks. What changes is the clock. Reconnaissance at agent speed, exploit-sourcing at agent speed, and a lifecycle measured in hours rather than days mean detection and response windows shrink accordingly. You are defending against the same techniques, delivered faster and around the clock.

Why This Is an Agent-Security Story, Not Just a Threat-Intel One

Here is the part most write-ups will miss. The campaign is a mirror. The exact capabilities that make an autonomous agent a useful offensive operator — enumerate, decide, fetch, execute, remember — are the same capabilities you are deploying inside your own business right now.

A coding agent that can source dependencies is one prompt away from sourcing the wrong one. A tool-using agent that can call remote hosts is one poisoned instruction away from calling an attacker's. An agent with persistent memory that gets compromised does not forget between sessions. The knaithe operator is what a capable, adversarial agent looks like from the outside. Your internal agents are the same machinery, pointed the other way — and if one is subverted through prompt injection, a malicious skill, or a poisoned memory, it becomes exactly the autonomous operator Unit 42 described, already inside your perimeter.

That is the structural point ShieldCortex has been making for a year: once language becomes behaviour, the trust boundary moves from content to action. This campaign is that thesis with a threat-actor attribution attached.

Where ShieldCortex Fits

You cannot stop adversaries from building autonomous agents. You can refuse to let your own agents behave like one when they are subverted. That is a runtime discipline, and it sits on the parts of the agent that matter:

  • Memory integrity — so a single poisoned write does not become a durable operator instruction that survives into later sessions.
  • Prompt and context scanning — so untrusted content the agent reads does not silently become the plan it executes.
  • Tool and MCP boundaries — so "the agent can reach a host" is an explicit, policed decision rather than an emergent side effect of fluent generation.
  • Action limits and egress awareness — so enumerate-decide-fetch-execute cannot run unattended against destinations nobody approved.

We will not claim a checkbox that detects "an evil agent." That is not how this works. What we will claim is the product thesis, now with a real-world example behind it: agent security is about whether the system is allowed to autonomously act at all, and under what constraints. Runtime sandboxes limit damage after a bad decision. Necessary — not sufficient. The earlier control is the trust boundary between what the model generates and what the agent is permitted to do.

Assume agent-speed. Contain agent-scope.

The attackers are running agents. If yours can enumerate, fetch, call tools, and remember, the same containment discipline applies on both sides of the wire.

See ShieldCortex options

Sources