Can Hackers Use AI Agents to Speed Up Attacks After a Breach?
Yes. Unit 42, Palo Alto Networks' threat intelligence team, reported tracking more than 10 campaigns between July and September 2026 in which attackers used autonomous AI agents to run post-breach activity after getting in through web shells on vulnerable internet-facing web applications. In a subset of cases, the median gap between attacker commands fell from 23.9 seconds during manual activity to 1.4 seconds once an AI agent took over, and the techniques used were familiar ones — public exploits like PwnKit and IMDS credential theft — not new AI-specific attack methods.
Unit 42 isn't describing AI finding new vulnerabilities. It's describing something more mundane and more worrying: attackers who already got a foothold handing the next stage of the job to an agent that executes known playbooks without pausing between steps.
What Unit 42 found
Between July and September 2026, Unit 42 tracked more than 10 campaigns in which attackers used autonomous AI agents after gaining initial access through web shells planted on vulnerable, internet-facing web applications, according to Unit 42's reporting. The targets spanned government, logistics, hospitality, manufacturing, agriculture, and education organizations, per Cryptika's coverage of the findings.
The agents didn't need to break in on their own to change the shape of an intrusion. What changed was tempo. In a subset of the cases Unit 42 examined, the median gap between attacker commands dropped from 23.9 seconds during manual, human-driven activity to 1.4 seconds once an AI agent took over execution, Cryptika reported. That's roughly a seventeen-fold compression of the time between one action and the next — discovery, credential testing, lateral movement, all chained with almost no pause.
Old techniques, new speed
The methods themselves were not novel. Unit 42 said the agents relied on familiar techniques and public exploits, including PwnKit (CVE-2021-4034) and a pre-compiled exploit for CVE-2024-1086, along with IMDS credential theft against cloud metadata services, according to Unit 42's writeup. None of this requires an AI model to invent anything — it requires an operator willing to let an agent run a known exploit chain unattended, at a pace no human operator sustains for long.
That distinction matters for how defenders think about this. The risk isn't a smarter attacker; it's a tireless one. An agent that doesn't get bored, doesn't second-guess a step, and doesn't need sleep can work through a list of known weaknesses far faster than the person who planted the web shell could have done it manually.
The GitLab credential chain
One case illustrates how far a single found credential can travel. After locating vendor GitLab credentials on a server it had already compromised, the agent attempted to access the vendor's environment and then conducted discovery, credential reuse, and SQL injection attempts against that vendor's sister organizations, according to dev.to's summary of the Unit 42 findings. That reporting is careful to note this does not indicate successful compromise of every subsequent target — attempted does not mean achieved. Unit 42 also stressed that the credential itself came from a compromised third-party server, not from any flaw in GitLab as a product, per Unit 42's report.
The lesson generalizes well past GitLab. Any credential sitting on a server that gets popped — a saved token, a cached password, an API key in a config file — is now a starting point an agent can pivot from automatically, testing it against every system that looks related.
What to check today
Unit 42's own recommended hardening for internal tools like GitLab is a reasonable checklist for any internet-facing or credential-bearing system in your environment:
| Control | Why it matters here |
|---|---|
| Enforce MFA on internal tools | Stops a reused credential alone from granting access |
| Enable sign-in rate limiting | Slows or blocks automated credential-stuffing attempts |
| Restrict access by IP where possible | Cuts off remote agents operating from unexpected networks |
| Keep instances up to date | Closes the exact kind of known-exploit path (PwnKit, CVE-2024-1086) these agents used |
Beyond that list: inventory where credentials are stored in plaintext on servers that face the internet, and treat any web shell discovery as a signal to rotate every credential that server could have touched — not just the account that was obviously used.
What DriftLock does about this, and what it doesn't
This story is about an attacker's own agent, running after a breach, on infrastructure the attacker already controls. DriftLock doesn't operate there — it isn't a network intrusion detection tool and it won't patch an internet-facing web app or rate-limit a login page. Unit 42's recommended hardening above is the right place to start for that layer.
Where DriftLock does sit is on the company side of a different version of the same problem: the AI assistants and agents your own employees run on company laptops — Claude Code, GitHub Copilot CLI, Cursor, VS Code, Windsurf, Claude Desktop, and AI features in Chrome, Edge, and Brave. The pattern Unit 42 describes — an agent chaining actions second by second, faster than anyone is watching — is exactly why a sanctioned agent with broad file, browser, or tool access deserves the same scrutiny. DriftLock enforces policy locally on each machine and gives security teams a Console to set what every agent is and isn't allowed to touch, across every laptop, so one agent acting on a bad instruction doesn't get to cascade through connected tools unchecked. It does not detect network intrusions, patch vulnerable servers, or stop an attacker's own agent operating outside your endpoints, and it does not claim to block every form of prompt injection.
DriftLock is coming soon.
What to take away
- Unit 42 tracked more than 10 campaigns (July–September 2026) where attackers used autonomous AI agents after breaching internet-facing web apps via web shells, hitting government, logistics, hospitality, manufacturing, agriculture, and education organizations.
- The agents compressed the median gap between commands from 23.9 seconds to 1.4 seconds in a subset of cases — speed, not novel technique, was the change.
- Known exploits (PwnKit, CVE-2024-1086) and IMDS credential theft drove the activity; a single found credential (vendor GitLab) was enough to trigger discovery and lateral-movement attempts against related organizations, though not all attempts succeeded.
- Harden internet-facing and credential-bearing systems now: MFA, sign-in rate limiting, IP restriction, and patching.
- The same logic applies inside your company to sanctioned AI agents on employee laptops — unchecked, fast, chained actions are the risk regardless of who's driving the agent.
Sources
- PlayCISO: Unit 42 autonomous AI agent intrusions
- Cryptika: Hackers use autonomous AI agents to steal credentials and breach corporate networks
- dev.to: Over 10 agentic AI attacks — post-compromise discovery, credential theft, and lateral movement
- NetManageIT: Agentic AI attacks — speed, signals, and defenses