0
New OAuth consent prompts triggered when AgentForger creates a forged AI agent inside an enterprise -- it silently inherits all existing authorized workspace connectors without alerting the victim or any security tool
5 min
Polling interval at which the forged AI agent checks the attacker's inbox for new TASK commands -- autonomous operation requires no further human interaction after the initial click
6
Enterprise connectors immediately accessible to the forged agent with zero new authorization: Outlook, Gmail, Slack, Microsoft Teams, SharePoint, and Google Drive
4 days
Time from Zenity Labs' June 4, 2026 report to OpenAI's complete fix on June 8 -- the fastest enterprise AI vulnerability response on record for an attack that evades every existing security control

SponsoredHorizon3.ai

Proactive Security for the AI Era

NodeZero continuously and autonomously pentests infrastructure, identity, cloud, and now web applications, chaining weaknesses across every domain the way real attackers do. Every finding ships with replayable proof showing exploitable business impact, not theoretical risk.

See NodeZero WebApp in action

A single manipulated chatgpt.com link, clicked by any employee with enterprise workspace connectors already authorized, silently creates an attacker-controlled autonomous AI agent inside your organization -- one that reads your SharePoint documents, harvests credentials from Slack, and receives new commands from the attacker's inbox every five minutes, indefinitely, without triggering a single security alert.

Zenity Labs disclosed the ChatGPT agent security vulnerability named AgentForger on July 23, 2026, revealing that a cross-site request forgery (CSRF) flaw in OpenAI's Agent Builder allowed an attacker to forge an autonomous AI agent inside any organization using ChatGPT Enterprise with Workspace Agents enabled. OpenAI confirmed the finding and fixed it in four days (June 4-8, 2026), but the publicly documented technique defines a new class of AI-native threat that existing enterprise security controls were not designed to detect.

The flaw exploited two URL parameters in ChatGPT's Agent Builder: template_name, which selects the agent template, and initial_assistant_prompt, which is automatically executed without user confirmation when the page loads. An attacker encodes malicious agent-configuration instructions in the second parameter, sends the resulting chatgpt.com link as a phishing email, and waits for the victim to click. No new OAuth consent prompt appears -- the forged agent silently inherits every enterprise connector the employee had previously authorized. The agent goes live, disables its own approval gates, schedules itself to run every five minutes, and begins monitoring the attacker's email inbox for TASK-prefixed instructions.

AgentForger is now patched, but the trust failure it reveals is not unique to OpenAI's platform. The same underlying problem -- AI agent platforms executing URL-embedded instructions without user verification -- exists across multiple enterprise AI deployments. Security teams have no purpose-built SIEM rules, no EDR signals, and no access-control frameworks designed to detect autonomous agent creation inside their own trust boundary. AgentForger is the first documented proof of concept. It will not be the last.

How Does the AgentForger CSRF Attack Work?

AgentForger exploits the way ChatGPT's Agent Builder processes two URL query parameters: template_name selects the starting agent template, and initial_assistant_prompt injects an attacker-controlled system prompt that the Builder executes automatically the moment the page loads -- with no confirmation required from the user.

The attack works because the Agent Builder was designed to accept initialization state through URL parameters to support sharing and template distribution workflows. When a victim who is logged into ChatGPT Enterprise with Workspace Agents access clicks a weaponized link, the page loads with the malicious prompt pre-populated and auto-submits it. The attacker's instructions configure the agent to attach all existing authorized connectors with "Never ask" approval settings, publish the agent, and schedule it to run every five minutes via offset scheduling. The entire setup completes without any additional interaction from the victim.

Critically, no new OAuth authorization screens appear during agent creation. The forged agent inherits the victim's pre-existing connector authorizations: any integration the employee previously granted ChatGPT access to -- Outlook, Gmail, Slack, Teams, SharePoint, Google Drive -- becomes immediately available to the forged agent. The attacker gains access to all of these enterprise services under the victim's identity, without ever compromising a password, bypassing MFA, or triggering an Identity Protection alert.

Once deployed, the forged agent monitors the victim's Outlook inbox for emails from the attacker's address with subjects beginning "TASK." Each task email contains instructions the agent executes against connected services, then returns results directly to the attacker's email. The agent runs on a schedule indefinitely. As Zenity Labs researchers noted: "The forged agent becomes a persistent operator. The original click installs it; the schedule keeps it alive."

1

Attacker crafts weaponized chatgpt.com Agent Builder URL

Attacker constructs a URL targeting chatgpt.com/agents/studio/new with template_name=chief-of-staff and an initial_assistant_prompt encoding full agent-configuration instructions. The payload attaches all connectors, disables approval gates, sets a 5-minute polling schedule, and configures the command channel to the attacker's email address.

2

Victim clicks link while logged into ChatGPT Enterprise

Employee receives the link via phishing email or chat message. Clicking it while authenticated to ChatGPT automatically loads the Agent Builder with the malicious prompt pre-populated and auto-submits. No OAuth consent screen appears -- the agent reuses the victim's already-authorized integrations silently.

3

Forged agent goes live with victim's full connector access

ChatGPT creates the agent with all available connectors attached at 'Never ask' permission level. The agent publishes and runs immediately in Preview Mode. The agent now operates autonomously under the victim's identity with access to Outlook, Gmail, Slack, Teams, SharePoint, and Google Drive.

4

Attacker sends TASK commands; agent executes and exfiltrates

Attacker emails the victim's Outlook inbox with subject lines starting 'TASK.' The agent reads each email every five minutes and executes the embedded instructions against connected services: reading SharePoint documents, harvesting Slack credentials, forwarding emails, sending internal phishing messages as the victim, or staging business email compromise fund transfers.

Which Organizations Are Exposed to AgentForger-Style Attacks?

Any organization using ChatGPT Enterprise with the Workspace Agents feature enabled is within the scope of the AgentForger attack class. The specific URL parameter flaw was patched by OpenAI on June 8, 2026 -- but the broader exposure persists because the attack's underlying conditions remain widespread across enterprise AI deployments.

Three conditions must be present for the attack to succeed: the employee must be logged into ChatGPT; they must have Workspace Agents access; and they must have at least one enterprise connector already authorized. All three conditions are standard in any meaningful ChatGPT Enterprise deployment. Outlook, Teams, and SharePoint are the most common connector authorizations for enterprise users, making the forged agent's access to Microsoft 365 data the highest-probability outcome in a successful attack.

OpenAI began deprecating the Agent Builder feature with full sunset scheduled for November 30, 2026. Organizations that have not reviewed their Workspace Agents activity during the AgentForger exposure window (June 4 to November 30, 2026) carry unresolved risk: a forged agent created before the patch, or created via a variant technique, may still be operating inside the workspace.

The broader risk extends to any enterprise AI platform that accepts user-facing configuration inputs without mandatory explicit confirmation at each step. Zenity Labs researchers classify AgentForger as the first documented "Cross-Site Agent Forgery" (CSAF) attack -- a new category analogous to CSRF but designed specifically for the autonomous action capabilities that AI agents introduce. For related context on how attackers exploit the AI coding agent attack surface, see our investigation of AgentJacking via MCP injection.

Free daily briefing

Briefings like this, every morning before 9am.

Threat intel, active CVEs, and campaign alerts, distilled for practitioners. 50,000+ subscribers. No noise.

What the Attacker-Controlled AI Agent Does Inside Your Network

Once the forged agent is live, the attacker holds an operator-level capability inside the victim's organization. The agent runs on the victim's identity, uses the victim's authorized connector access, and operates through legitimate ChatGPT infrastructure. Standard enterprise detection tools -- SIEM, EDR, CASB, Identity Protection -- see only authorized ChatGPT activity from a valid user session. Nothing alerts.

The capabilities the forged agent can execute depend on which connectors the victim had pre-authorized. With Outlook access: the agent reads all email, forwards sensitive correspondence to the attacker, and sends internal phishing messages impersonating the victim to colleagues and finance teams. With SharePoint access: the agent reads and downloads documents, project files, and credentials stored in SharePoint sites and Teams channels. With Slack access: the agent harvests tokens, reads direct messages, and exfiltrates channel history including any secrets shared in chat. With Gmail and Google Drive access: the same document and communication compromise extends to Google Workspace environments.

The command channel -- TASK-prefixed emails from the attacker's inbox to the victim's Outlook -- gives the attacker interactive control at any time. The attacker can update instructions to direct the agent to new targets, pivot between connectors, exfiltrate specific documents, or initiate business email compromise sequences impersonating the employee to external partners and vendors.

Zenity Labs researchers documented the detection evasion directly: "At its core, AgentForger is an agent trust failure: the platform trusts that the user intentionally created, approved, scheduled, and operated the agent." Every platform-level log entry records the forged agent's activity as legitimate user-initiated behavior. For related context on how LLM-based tools are turned against Active Directory environments, see our reporting on LLM-powered AD attacks.

At its core, AgentForger is an agent trust failure: the platform trusts that the user intentionally created, approved, scheduled, and operated the agent.

Zenity Labs Research Team, AgentForger Disclosure Report, July 23, 2026

Sigma and Outbound Detection Rules for AgentForger

No CVE-specific Sigma rule exists for AgentForger -- no CVE was assigned, and the vulnerability was patched before community rules were written. Two community rules cover the most likely downstream behavioral signals: unusual OAuth-driven file downloads from SharePoint (the most common data exfiltration action a forged agent would take) and outbound requests to OAuth phishing infrastructure used in AI agent attack delivery campaigns.

Both rules target cloud telemetry, not endpoint logs. The first rule targets Microsoft Defender for Cloud Apps threat management logs, which record anomalous OAuth application file access patterns across Microsoft 365. The second targets outbound web proxy logs and covers PhaaS kit infrastructure that adversaries use to stage phishing delivery.

The WAF rules below are outbound proxy and CASB detection rules, not traditional reverse proxy protections. AgentForger executes via the victim's browser against chatgpt.com -- standard inbound WAF deployments protecting your own web applications will not see this attack. Deploy the rules below in Cloudflare Gateway, Zscaler Internet Access, Netskope, or any Secure Web Gateway configured to inspect outbound HTTPS traffic to detect the specific URL pattern that delivers the forged agent creation request.

Subscribe to unlock Sigma Detection Rules

Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.

Subscribe to unlock WAF Detection Rules

Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.

How to Detect Unauthorized AI Agents in Your ChatGPT Workspace

Detecting AgentForger-style attacks requires reviewing ChatGPT Enterprise audit logs directly -- no external telemetry source captures agent creation events by default. Navigate to your ChatGPT Enterprise admin console, open the audit log section, and filter for agent creation events between June 4 and November 30, 2026. Any agent created without a corresponding internal ticket, change request, or user acknowledgment warrants immediate review.

Four behavioral indicators distinguish a forged agent from a legitimately created one. First, check connector permission settings: a forged agent configures all available connectors with "Never ask" approval level. Legitimate agents created by users for their own automation workflows rarely disable all approval prompts simultaneously. Second, check scheduling: forged agents use recurring execution schedules with short offsets rather than manual trigger or event-based trigger configurations. Third, review the agent's instruction set for references to external email addresses in a command-and-control pattern -- legitimate agents do not poll an external inbox for operational instructions. Fourth, examine outbound email activity and SharePoint download volume from the agent's associated user account for unexpected spikes.

Microsoft Defender for Cloud Apps (MDCA) anomaly detection will alert on the data exfiltration phase if volume thresholds are crossed. The "Suspicious OAuth app file download activities" alert covers the SharePoint mass download scenario. Routing MDCA threat management alerts into your SIEM and correlating them with ChatGPT Enterprise audit log events for the same user account provides the highest-confidence detection chain available for this attack class.

Subscribe to unlock Indicators of Compromise

Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.

How to Harden Your Enterprise Against AI Agent Attacks

The specific AgentForger URL parameter flaw is patched. OpenAI removed the injectable initial_assistant_prompt parameter on June 8, 2026, and the Agent Builder feature reaches full deprecation on November 30, 2026. Neither fact eliminates the underlying risk -- the same trust failure exists in other enterprise AI platforms deploying today.

Organizations still using ChatGPT Enterprise with Workspace Agents should disable the feature for all users without active, documented agent deployments. Every authorized connector attached to an unused or unreviewed agent is an attack surface producing no business value. For organizations that do require AI agent capabilities, establish a formal AI agent governance process before deploying any autonomous agent in production: every agent requires a ticket, a named owner, an approved connector list, and a data access justification. Agents must run under service accounts with scoped permissions -- not individual employee accounts with full inbox and SharePoint access. Approval gates must stay enabled for all connector actions involving email, document access, or external communication.

The governance model matters because the same structural conditions that made AgentForger exploitable -- autonomous agents authorized to act on employee identities, with inherited connector access, without per-action review -- exist across the enterprise AI ecosystem. Any future CSAF technique targeting a different AI platform will find the same unguarded trust boundary unless organizations build explicit governance around autonomous agent authorization before the next disclosure arrives.

Subscribe to unlock Remediation & Mitigation steps

Free subscribers unlock full IOC lists, Sigma detection rules, remediation steps, and every daily briefing.

Why ChatGPT Agent Security Defines the Next Phase of Enterprise Threats

AgentForger demonstrates that the enterprise AI adoption wave has outpaced the security control frameworks designed to govern it. Every organization deploying AI agents is authorizing autonomous systems to act on employee identities, use employee connector access, and make decisions without per-action human review. AgentForger showed that a single misconfigured trust boundary -- URL parameters accepted as executable instructions without verification -- is enough to convert that entire authorization chain into an attacker-controlled capability inside the organization.

The attack class AgentForger defines, Cross-Site Agent Forgery (CSAF), is not bounded by ChatGPT. Any enterprise AI platform that accepts initialization state through user-facing inputs, inherits connector authorizations from authenticated user sessions, and runs autonomously on schedules without per-action approval shares the same structural vulnerability. The specific delivery mechanism changes with each new AI product. The underlying trust failure does not.

Prior enterprise AI security concerns focused on employees misusing AI tools or AI generating incorrect outputs. AgentForger shifts the threat model: the AI tool itself becomes the threat actor, operating autonomously inside the organization's trust boundary at the attacker's direction, using credentials and access the organization explicitly granted. Existing security stacks -- SIEM, EDR, CASB, IDP, network monitoring -- were not built to detect this pattern. The signals exist in vendor audit logs that most organizations do not route into their SIEM, let alone alert on.

Security teams that want to get ahead of AI agent threats should route ChatGPT Enterprise audit logs into their SIEM today, establish AI agent governance policies before the next deployment, and track AI-specific security research from groups like Zenity Labs monitoring the CSAF attack class as it evolves across the enterprise AI ecosystem.

The bottom line

AgentForger established that a single phishing link clicked on chatgpt.com could silently create an attacker-controlled autonomous AI agent inside any enterprise using ChatGPT with Workspace Agents -- inheriting Outlook, Slack, Teams, and SharePoint access with zero new authentication prompts and no security alerts fired. OpenAI patched the specific flaw in four days, but the attack class it defines, Cross-Site Agent Forgery, is not bounded by that patch. Audit your ChatGPT Enterprise workspace agents for the June to November 2026 exposure window now, disable Workspace Agents for users without active deployments, and establish AI agent governance before your next deployment. Every autonomous AI agent operating under an employee's identity without per-action approval is the next AgentForger waiting to happen.

This analysis is generic. create a free account to score threats like this against your own stack.

Frequently asked questions

What is AgentForger and how does the ChatGPT attack work?

AgentForger is a cross-site request forgery (CSRF) vulnerability in OpenAI's ChatGPT Agent Builder, discovered by Zenity Labs and publicly disclosed on July 23, 2026. The flaw allowed an attacker to craft a malicious chatgpt.com URL that, when clicked by an employee with Workspace Agents access, automatically created a fully configured autonomous AI agent operating under the victim's identity. The forged agent inherited all enterprise connector authorizations already granted by the employee -- including Outlook, Gmail, Slack, Teams, SharePoint, and Google Drive -- without triggering any new OAuth consent screens. OpenAI fixed the vulnerability on June 8, 2026, four days after Zenity Labs reported it.

Can attackers still use AgentForger to compromise enterprise ChatGPT accounts?

The specific URL parameter flaw that enabled AgentForger was patched by OpenAI on June 8, 2026. The original attack using the initial_assistant_prompt parameter no longer works. However, organizations should audit agents created between June 4 and November 30, 2026 to identify any forged agents that may still be active in their workspace. The broader attack class AgentForger defines -- Cross-Site Agent Forgery -- applies to other enterprise AI platforms with similar trust models and remains an active risk.

What is Cross-Site Agent Forgery (CSAF)?

Cross-Site Agent Forgery (CSAF) is a new attack class defined by the AgentForger disclosure, analogous to traditional cross-site request forgery (CSRF) but targeting AI agent platforms rather than individual HTTP actions. Instead of forging a single web request, CSAF forges an entire autonomous agent that inherits the victim's identity, connector authorizations, and organizational trust boundary. CSAF attacks deliver their payload through any mechanism that directs an authenticated user to a malicious initialization URL, including phishing email, shared links in Slack or Teams, and calendar invites.

How do I detect unauthorized AI agents in my organization?

Detecting AgentForger-style compromises requires reviewing ChatGPT Enterprise admin console audit logs. Filter for agent creation events between June 4 and November 30, 2026. Investigate any agent with all connector permissions set to 'Never ask' combined with a recurring short-interval execution schedule -- this combination is the definitive forensic indicator. Also search the target user's Outlook inbox for emails with 'TASK' prefix subjects from first-contact external senders, which is the AgentForger command-and-control channel pattern. Microsoft Defender for Cloud Apps anomaly detection will alert on mass SharePoint downloads if the agent has been actively exfiltrating data.

Which enterprise connectors can a forged ChatGPT agent access?

A forged AgentForger agent inherits all enterprise connectors the victim employee had previously authorized in their ChatGPT settings. In the Zenity Labs proof of concept, the forged agent immediately accessed Outlook Email, Gmail, Google Calendar, Slack, Microsoft Teams, SharePoint, and Google Drive. Any organization-approved connector that an employee had granted ChatGPT access to before clicking the malicious link becomes available to the forged agent with no new authorization required.

How is AgentForger different from traditional phishing attacks?

Traditional phishing attacks require the attacker to steal credentials and then use them manually. AgentForger bypasses credentials entirely: the employee's existing authenticated session and pre-authorized connector access become the attack payload. The victim does not lose their password or MFA codes. Instead, the attacker gains a persistent autonomous operator running inside the organization's trust boundary under the victim's identity -- one that operates continuously on a schedule and executes new instructions at any time without any further interaction from the victim.

How can my security team audit ChatGPT agent activity?

ChatGPT Enterprise provides audit logs accessible through the admin console under Settings > Workspace > Audit Logs. Filter by agent creation events and review the date range June 4 to November 30, 2026. For each agent, examine the connector permission settings, execution schedule, and instruction content. Agents with 'Never ask' permissions across all connectors and recurring schedules require immediate investigation. For ongoing monitoring, configure Microsoft Defender for Cloud Apps anomaly detection policies covering SharePoint download volume anomalies and OAuth app file access patterns for all users with ChatGPT Enterprise access.

Are other AI agent platforms vulnerable to Cross-Site Agent Forgery attacks?

Any enterprise AI agent platform that accepts initialization state through user-facing inputs, inherits the user's existing service connector authorizations without requiring re-consent, and executes agent instructions autonomously without per-action approval gates shares the structural trust failure that AgentForger exploited. This includes both SaaS-hosted agent platforms and self-hosted agent frameworks using similar connector authorization models. Zenity Labs identified AgentForger as the first documented CSAF attack but noted the technique applies broadly to agentic AI infrastructure. Enterprise AI governance programs should evaluate all deployed agent platforms against these three criteria.

Sources & references

  1. Zenity Labs: AgentForger, Part 1 - ChatGPT Cross-Site Agent Forgery
  2. SecurityWeek: OpenAI Fixes ChatGPT Agent Flaw That Could Let Attackers Forge an AI Insider
  3. The Hacker News: ChatGPT AgentForger Flaw Could Deploy Rogue Workspace Agents via a Phishing Link
  4. The Register: One ChatGPT link could smuggle a rogue AI agent into your company
  5. BusinessWire: Zenity Labs Uncovers AgentForger, a ChatGPT Vulnerability

Free resources

25
Free download

Critical CVE Reference Card 2025–2026

25 actively exploited vulnerabilities with CVSS scores, exploit status, and patch availability. Print it, pin it, share it with your SOC team.

No spam. Unsubscribe anytime.

Free download

Ransomware Incident Response Playbook

Step-by-step 24-hour IR checklist covering detection, containment, eradication, and recovery. Built for SOC teams, IR leads, and CISOs.

No spam. Unsubscribe anytime.

Free newsletter

Get threat intel before your inbox does.

50,000+ security professionals read Decryption Digest for early warnings on zero-days, ransomware, and nation-state campaigns. Free, daily, no spam.

Unsubscribe anytime. We never sell your data.

Eric Bang
Author

Founder & Cybersecurity Evangelist, Decryption Digest

Cybersecurity professional with expertise in threat intelligence, vulnerability research, and enterprise security. Covers zero-days, ransomware, and nation-state operations for 50,000+ security professionals every morning.

Giveaway: InfoSec World 2026 All Access Pass ($3,895 value)

Details →
Daily Briefing

Subscribe to enter the giveaway

Every subscriber is automatically entered. You also get daily threat intel every morning: zero-days, ransomware, and nation-state campaigns. Free. No spam.

Already subscribed? You're already entered.

Giveaway

Win a $3,895 InfoSec World 2026 pass.