The shift: from AI-written phishing to AI-run intrusions
Field research published in 2026 documents attackers handing whole phases of intrusions to autonomous agents. Unit 42 tracked more than ten such campaigns between July and September, and described the Cairn framework being used to run 25 operations against at least 19 organisations. Zscaler documented the ARTEX framework, combined with AI coding assistants, probing targets in roughly 20 jurisdictions including Kenya, Nigeria and South Africa.
Across these campaigns the pattern is consistent. Humans choose targets, establish initial access and make strategic decisions; agents perform the high-volume work in between. Defence therefore has two aims: deny the human the foothold, and detect the agent once it is working.
Pillar 1: Deny the foothold
Every agentic campaign Unit 42 observed began with a web shell planted through a vulnerable web application. The initial access is ordinary; the scale and speed that follow are not.
- Maintain a continuous inventory of internet-facing applications and remove anything without an owner.
- Patch internet-facing applications on a timeline measured in days, prioritising known exploited vulnerabilities.
- Restrict file-upload functionality: validate file type and content, store uploads outside the web root, and prevent execution in upload directories.
- Place administrative and developer platforms (CMS, GitLab, CI/CD, cloud consoles) behind multi-factor authentication and IP restrictions.
Pillar 2: Detect the agent
Agentic intrusions behave differently from human operators. Unit 42 measured a median gap between commands of 1.4 seconds under agent control, against 23.9 seconds under human control. Agents also organise output with structured delimiters, leave reasoning comments in scripts, and generate dozens of unique encoded payloads per session. These traits support specific detections.
- Alert on interactive sessions sustaining sub-two-second command rates on servers.
- Alert on enumeration of many cloud services or regions in a short period from a single identity.
- Inspect scripts for structured delimiters and natural-language reasoning comments.
- Alert on bursts of unique Base64-encoded PowerShell or Python executions.
- Monitor cloud instance-metadata access and enforce IMDSv2.
Pillar 3: Respond in minutes
An agent that can move from web shell to cloud reconnaissance in 140 minutes will finish its work before a next-morning alert review. Organisations need either 24-hour monitoring with authority to contain, or automated containment for high-confidence detections, such as isolating a host or revoking a session, with human review immediately afterwards. Pre-authorised response actions, agreed in writing, prevent delay while approvals are sought.
Pillar 4: Govern your own agents
Organisations are deploying AI agents that read email, query databases, raise tickets and take actions. Each is effectively a privileged account that can be manipulated through the content it processes. Prompt injection, meaning instructions hidden in a document, web page or email that the agent then follows, is the defining risk.
- Grant each agent the minimum permissions needed, scoped per task, and never the credentials of a human administrator.
- Require human approval for consequential actions: payments, deletions, external communications and permission changes.
- Log every tool call and action an agent takes, with retention long enough for investigation.
- Treat all content an agent reads as untrusted input, and test agents against prompt-injection scenarios before deployment.
- Protect AI service API keys: keep them out of code and front-end bundles, scope and rotate them, and set billing alerts to detect token jacking.
A 90-day plan
The framework can be implemented incrementally. The following sequence delivers the greatest risk reduction first.
- Days 1–30: inventory internet-facing applications, close or patch high-risk exposures, enforce MFA on administrative and developer platforms.
- Days 31–60: deploy behavioural detections for machine-speed activity and cloud enumeration; agree pre-authorised containment actions.
- Days 61–90: inventory internal AI agents and integrations, apply least privilege and approval gates, and run a prompt-injection test.
References
Take this with you
The PDF edition carries the same content, formatted for printing and circulation inside your organisation.


