Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2033+ Articles
153+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. ChatGPT 'AgentForger' Flaw Could Deploy Rogue Workspace Agents via a Phishing Link
ChatGPT 'AgentForger' Flaw Could Deploy Rogue Workspace Agents via a Phishing Link
NEWS

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

Zenity Labs disclosed a critical cross-site agent forgery vulnerability in ChatGPT's Workspace Agent Builder that let a single phishing link silently create an autonomous AI agent inside a victim's organization — inheriting their identity, connectors, and permissions.

Dylan H.

News Desk

July 24, 2026
5 min read

Cybersecurity researchers at Zenity Labs have disclosed a critical vulnerability in OpenAI's ChatGPT Workspace Agents — dubbed AgentForger — that could have allowed a single phishing link to silently build, authorize, and deploy an autonomous AI agent inside a victim's organization. The flaw was patched in just four days after disclosure, but the attack surface it revealed has significant implications for enterprise AI security.

What Is AgentForger?

AgentForger is a Cross-Site Agent Forgery (CSAF) vulnerability — an evolution of classic CSRF that doesn't just forge a single unwanted action, but forges an entire autonomous AI agent deployed silently inside a target organization. The flaw resided in ChatGPT's Agent Builder (part of Workspace Agents, an enterprise feature).

Lead researcher Mike Takahashi of Zenity's AI Red Team described the root cause plainly: "We found that when the page loads, the value of initial_assistant_prompt is not merely placed into the prompt box. It is automatically submitted and executed."

Michael Bargury of Zenity put the impact in starker terms: "With one click, an attacker gets a fully autonomous agent inside your company that has your people's identity and access, with the guardrails off."

The Technical Mechanism

The Agent Builder initialization URL accepts two parameters that became the attack vector:

chatgpt.com/agents/studio/new?template_name=[template]&initial_assistant_prompt=[payload]

Attackers defaulted to the "Chief of Staff" template — the most powerful available, granting the widest set of tool and connector permissions.

The critical flaw was in initial_assistant_prompt: rather than pre-filling a text box for the user to review and manually submit, the Agent Builder automatically executed the embedded payload on page load with no additional confirmation required.

A crafted payload would instruct the Builder to:

  1. Create an agent from the Chief of Staff template
  2. Attach all available enterprise connectors with approval settings set to "Never ask" (bypassing all per-action confirmation guards)
  3. Schedule hourly or every-5-minute execution for persistence
  4. Monitor the victim's email inbox for attacker messages with a "TASK" subject prefix
  5. Execute those instructions autonomously using the victim's identity
  6. Email results back to the attacker

The Attack Chain

The complete attack required only one victim action — clicking a link:

  1. Attacker crafts a malicious chatgpt.com URL with the embedded payload
  2. Victim receives the link via phishing (disguised as a legitimate ChatGPT invite, shared document, etc.)
  3. Victim — authenticated to ChatGPT with Workspace Agents access — clicks the link
  4. Agent Builder auto-executes the embedded prompt on page load
  5. A rogue agent is silently created, connectors attached, approvals disabled
  6. Agent begins polling victim's email for TASK-prefixed messages
  7. Attacker sends task commands; agent executes them and reports back
  8. The agent persists on a schedule indefinitely

Prerequisites: The victim must be logged into ChatGPT, have Workspace Agents access, and have at least one authorized connector already configured (Gmail, Outlook, Slack, Teams, Google Drive, SharePoint, etc.).

What the Rogue Agent Could Do

Zenity demonstrated more than 12 proof-of-concept scenarios. Once deployed, the forged agent could:

  • Reconnaissance — map the organization's internal environment and connected systems
  • Data exfiltration — harvest sensitive documents from Google Drive or SharePoint
  • Credential harvesting — extract credentials embedded in Slack messages
  • Identity impersonation — send emails, Teams messages, and Slack posts as the victim
  • Internal phishing — propagate additional malicious ChatGPT links to colleagues, creating a self-replicating insider attack chain
  • Business Email Compromise staging — position for downstream financial fraud

The agent operated with the full identity and permissions of the victim user — indistinguishable from legitimate activity by the real employee.

Patch and OpenAI's Response

Zenity reported the vulnerability to OpenAI via Bugcrowd on June 4, 2026. OpenAI accepted the report the following day and deployed a fix by June 8 — a four-day resolution window. Public disclosure followed on July 23.

No evidence of in-the-wild exploitation was found prior to the patch being applied.

The fix removed the vulnerable initial_assistant_prompt URL parameter from the Agent Builder, eliminating the auto-execution vector. OpenAI has also announced the deprecation of Agent Builder effective November 30, 2026, directing enterprise users to migrate to the Agents SDK.

No CVE was assigned for this vulnerability.

The Broader Lesson: Agent Trust Failures

Zenity frames AgentForger as an "agent trust failure" — the ChatGPT platform implicitly trusted that any agent created through the Builder was intentionally created by the legitimate account holder, with no mechanism to verify whether the session was initiated voluntarily.

This is a category of vulnerability the industry is only beginning to fully understand. As AI agents proliferate across enterprise environments — connecting to email, file storage, communication platforms, and cloud infrastructure — the attack surface for identity abuse and unauthorized automation grows in parallel.

For enterprise security teams, the AgentForger case points to several urgent controls:

  • Treat Workspace Agents like privileged service accounts — they need the same inventory tracking, creation approvals, and quarterly access reviews as admin roles and OAuth apps
  • Audit existing agents for suspicious connectors, "never ask" approval settings, or scheduled execution patterns
  • Apply CSRF-resistant controls to agent creation flows — no agent should be creatable without an explicit user-initiated action
  • Monitor for unusual agent-to-email or agent-to-Slack activity as indicators of compromise

The convergence of phishing and agentic AI creates an attack primitive that's materially more dangerous than either in isolation. AgentForger won't be the last vulnerability of this type.


Sources: The Hacker News, Zenity Labs, SecurityWeek

#AI security#ChatGPT#vulnerability#agentic AI#phishing#OpenAI

Related Articles

Seeing AI Agents Is Not Enough — Security Teams Must Enforce What They Can Do

Visibility into AI agents is a starting point, not a security control. Security teams need to move from agent discovery to enforcement — defining granular, purpose-driven controls across every platform where agents operate.

5 min read

Leak Confirms OpenAI Is Testing a ChatGPT for Science Subscription

A leaked interface reveals OpenAI is developing a specialized ChatGPT subscription tier for scientific research, potentially offering tailored tools for...

3 min read

New ChatGPT Lockdown Mode Limits Tools That Could Enable Data Exfiltration

OpenAI has begun rolling out a new Lockdown Mode to ChatGPT for eligible personal accounts, restricting tool capabilities that could be exploited in prompt…

6 min read
Back to all News