An attacker sent a phishing link. The victim clicked it while logged into ChatGPT. Four clicks later, an autonomous AI agent was installed in their OpenAI workspace with persistent access to Outlook, Slack, SharePoint, and Google Drive. The victim closed the browser. The agent kept working.
This is AgentForger, the attack method Zenity Labs disclosed in early 2025. OpenAI patched the vulnerability within four days, but the incident exposes a fundamental gap in how we think about access control when the "user" is actually an autonomous agent.
What Happened
Zenity Labs discovered that OpenAI's workspace agents could be weaponized as persistent insider threats. The attack chain:
- Attacker sends phishing link to target.
- Victim clicks link while authenticated to ChatGPT and Workspace Agents.
- Malicious agent installs itself in the victim's workspace.
- Agent gains autonomous access to connected applications (Outlook, Slack, SharePoint, Google Drive).
- Agent operates independently, even after victim logs out.
The critical insight: this isn't a compromised credential. It's a compromised identity that continues to act autonomously. Your session-timeout controls don't help. Your MFA challenge won't trigger again. The agent has legitimate API access through the workspace integration.
Timeline
Day 0: Zenity Labs identifies the vulnerability and reports to OpenAI.
Day 4: OpenAI patches the specific exploit vector.
Post-patch: The architectural risk remains. Any AI agent with workspace access operates with broad, persistent permissions across your SaaS stack.
The four-day response time is commendable. The problem is that patching one exploit vector doesn't address the underlying trust model. You're granting autonomous software agents the same persistent access you'd give a privileged user, without the controls you'd apply to privileged accounts.
Which Controls Failed or Were Missing
1. Least Privilege at the Integration Layer
The workspace agent had blanket access to multiple applications. No scoping by function, no read-only modes for specific tasks, no time-boxed sessions. When you connect ChatGPT to your email, you're not authorizing "summarize this thread." You're authorizing "read and write all mail, forever."
2. Continuous Authorization
Human users trigger re-authentication based on risk signals: new device, unusual location, sensitive action. AI agents don't. Once authorized, they operate until you manually revoke access. There's no equivalent to "this session looks suspicious, challenge the user."
3. Audit Trail Granularity
Your SIEM logs "[email protected] accessed SharePoint." It doesn't distinguish between the human user opening a file and an AI agent scanning your entire document library. The activity looks legitimate because it is legitimate under current access models.
4. Insider Threat Detection
Your behavioral analytics baseline normal user patterns. An AI agent doesn't have normal patterns. It can query 1,000 Slack messages in 30 seconds, read every email in a folder, and cross-reference documents across systems faster than any human. These actions don't trigger anomaly detection because the agent isn't pretending to be human.
What the Standards Require (and Where They Fall Short)
ISO 27001 Annex A.9.2 requires user access management, including "removal or adjustment of access rights." But it assumes you can identify when access should be removed. An AI agent doesn't resign, doesn't change roles, doesn't go on leave. Your quarterly access review asks "Does this person still need SharePoint access?" not "Does this agent still need to exist?"
NIST 800-53 AC-2 (Account Management) requires you to "define authorized users, group and role membership, and access authorizations." For AI agents, you need to define authorized purposes. The agent isn't a user or a service account in the traditional sense. It's software that acts on behalf of a user but with its own decision-making logic.
SOC 2 CC6.1 requires logical access controls, including "identification and authentication of users." An AI agent authenticates once, through the initial OAuth flow, then operates indefinitely. Your control testing confirms that users authenticate. It doesn't confirm that autonomous agents re-prove their authorization.
The standards weren't written for entities that make decisions. They assume access control happens at the boundary (login) and actions are directly tied to human intent. AI agents break that model.
Lessons and Action Items for Your Team
1. Inventory Your AI Agent Attack Surface
List every integration where you've authorized an AI tool to act on your behalf. ChatGPT plugins, Copilot connections, Zapier workflows with AI steps. For each one, document:
- Which systems it can access.
- What actions it can take (read, write, delete, execute).
- How you would revoke access if the agent were compromised.
- Whether you have visibility into its actions in your SIEM.
2. Implement Agent-Specific Access Controls
Treat AI agents as a separate identity class. Don't lump them with "service accounts" or "users." They need:
- Scoped permissions (this agent can read email, not write it).
- Time-boxed sessions (re-authorize every 24 hours, not indefinitely).
- Rate limits (prevent bulk data exfiltration disguised as normal operation).
3. Build Agent Activity Baselines
Your behavioral analytics need a separate profile for AI agents. A human user accessing 50 documents per hour is suspicious. An AI agent might do that legitimately. But an agent accessing document types it's never touched before? That's your signal.
4. Add Agent Authorization to Your Access Reviews
Quarterly access reviews should include: "Which AI agents are authorized to act in this workspace, what are they allowed to do, and who can revoke them?" If your IT team can't answer that question, you have unmanaged privileged access.
5. Require Human-in-the-Loop for Sensitive Actions
Even if an agent has write access to email, it shouldn't be able to send messages without human approval. Even if it can create calendar events, it shouldn't be able to accept meeting invites on your behalf. Define which actions require a human confirmation step.
The AgentForger attack worked because we applied 2020 access control models to 2025 technology. Your agents aren't just tools. They're autonomous actors with persistent access to your most sensitive systems. Start treating them that way.



