Skip to content
Vulnerabilities

ChatGPT AgentForger Flaw Could Deploy Rogue Workspace Agents via a Phishing Link

A critical vulnerability in OpenAI’s ChatGPT Workspace Agents, dubbed AgentForger, that allowed a single phishing link to silently build, configure, and publish an attacker-controlled autonomous agent inside a victim’s organization. Unlike traditional Cross-Site Request Forgery (CSRF), which forges...

· Jul 27, 2026 · 3 min read · 👁 1 views
ChatGPT AgentForger Flaw Could Deploy Rogue Workspace Agents via a Phishing Link

A critical vulnerability in OpenAI’s ChatGPT Workspace Agents, dubbed AgentForger, that allowed a single phishing link to silently build, configure, and publish an attacker-controlled autonomous agent inside a victim’s organization.

Unlike traditional Cross-Site Request Forgery (CSRF), which forges a single unauthorized request, AgentForger forges the creation of an entire autonomous AI agent operating inside the victim’s trust boundary.

ChatGPT Agent Builder prompt interface
ChatGPT Agent Builder prompt interface (Image source: labs.zenity.io)

ChatGPT AgentForger Vulnerability

Workspace Agents connect to core enterprise services like Outlook, Gmail, Slack, Google Drive, SharePoint, and Microsoft Teams. Under normal operating conditions, users create these agents through an interactive conversational builder canvas.

Intended 7-step agent creation workflow
Intended 7-step agent creation workflow (Image source: labs.zenity.io)

As detailed in the technical analysis by Security researchers at Zenity Labs on AgentForger: ChatGPT Cross-Site Agent Forgery, Zenity found that this builder accepts initialization state directly through URL parameters, specifically template_name and initial_assistant_prompt.

Rather than simply populating an input box, the initial_assistant_prompt parameter is automatically submitted and executed the moment the page loads.

This design flaw allowed an attacker to embed a full set of malicious instructions inside an ordinary-looking ChatGPT link and send it as a targeted phishing email. These vectors build upon emerging device code phishing tactics that exploit trusted application flows.

When a logged-in victim with at least one pre-authorized connector clicked the link, the Builder autonomously created an agent, attached all previously connected integrations, and switched write-action approvals from “Always ask” to “Never ask,” disabling the primary safeguard meant to block silent, sensitive actions.

Chief of Staff agent template and connected workspace tools
Chief of Staff agent template and connected workspace tools (Image source: labs.zenity.io)

The forged agent was then published live and scheduled to run every five minutes, polling the attacker’s inbox for commands prefixed with "TASK" and emailing results back out, effectively turning ChatGPT into a covert command-and-control (C2) channel.

Because the connectors were already authorized from prior legitimate usage, no new OAuth consent screen appeared to alert the victim.

Researcher Mike Takahashi demonstrated that the resulting “agentic insider” could map organizational structures, exfiltrate sensitive documents, harvest credentials, and impersonate the victim across Slack, Teams, and email, mirroring tactics seen in AI-assisted phishing operations.

Architecture comparison between traditional CSRF and AgentForger
Architecture comparison between traditional CSRF and AgentForger (Image source: labs.zenity.io)

Zenity attributes the flaw to two combined architectural weaknesses:

  1. Cross-Site Auto-Execution: The Builder’s willingness to execute unvalidated URL parameters upon page load.
  2. Overpermissive Natural-Language Control: Allowing natural-language prompts to modify security-sensitive settings like approval policies and execution schedules.

Together, these factors satisfied what researchers call the “lethal trifecta” untrusted input, access to private data, and an unmonitored path to exfiltrate it.

Attack StageMechanismImpact
DeliveryPhishing link containing crafted initial_assistant_promptInitial execution trigger
ExecutionAuto-submitted prompt builds agent & attaches connectorsUnauthorized workspace access
Privilege BypassApproval setting flipped to “Never ask”Silent action execution
PersistenceRecurring 5-minute schedules polling attacker inboxContinuous C2 communication
ImpactData exfiltration, credential harvesting, BEC stagingFull workspace takeover

Zenity reported the vulnerability to OpenAI via Bugcrowd on June 4, 2026. The report was triaged and accepted within 24 hours and fully patched on June 8, 2026, by removing the vulnerable URL parameter handler.

OpenAI’s fix mitigated newly initiated attacks, and Zenity confirmed no evidence of active exploitation in the wild prior to the patch.

Zenity’s follow-up analysis highlights how a forged agent, once operational, can be tasked like a genuine attacker-controlled insider to conduct internal reconnaissance and stage business email compromise (BEC) across an enterprise.

Source: CybersecurityNews.com

Follow ShomoySoft for more: Follow on Facebook

💬 Comments (0)

Login to join the discussion.

No comments yet. Be the first!

Recommended for you