AI Security AI安全 5h ago Updated 2h ago 更新于 2小时前 49

OpenAI Fixes ChatGPT Agent Flaw That Could Let Attackers Forge an AI Insider OpenAI修复ChatGPT代理漏洞,该漏洞可能允许攻击者伪造AI内部人员

Zenity Labs identified "AgentForger," a critical CSRF vulnerability in OpenAI’s ChatGPT Workspace Agents that allows attackers to forge insider actions. The exploit leverages over-permissive URL parameters (`agent_template` and `initial_assistant_prompt`) to autonomously build and deploy a hidden agent with full user privileges. Once deployed, the agent operates invisibly within the organization's trust boundary, using connected apps (e.g., Gmail) to execute remote commands sent via email. The v Zenity Labs 发现并披露了 OpenAI ChatGPT Workspace Agents 中的关键漏洞“AgentForger”,这是一种定制的跨站请求伪造(CSRF)攻击。 攻击者通过钓鱼链接诱导用户点击,利用过度宽松的 URL 参数(如 `initial_assistant_prompt`)在受害者账户内创建并运行自主代理。 该漏洞允许攻击者远程通过电子邮件控制代理,使其在组织信任边界内隐蔽执行数据侦察、凭证窃取及商业邮件诈骗(BEC)。 OpenAI 在漏洞披露后反应迅速,于三天内修复了该问题,凸显了 AI 代理安全治理的紧迫性。

75
Hot 热度
65
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • Zenity Labs identified "AgentForger," a critical CSRF vulnerability in OpenAI’s ChatGPT Workspace Agents that allows attackers to forge insider actions.
  • The exploit leverages over-permissive URL parameters (agent_template and initial_assistant_prompt) to autonomously build and deploy a hidden agent with full user privileges.
  • Once deployed, the agent operates invisibly within the organization's trust boundary, using connected apps (e.g., Gmail) to execute remote commands sent via email.
  • The vulnerability enables sophisticated attacks including data exfiltration, credential harvesting, and Business Email Compromise (BEC) without triggering standard security alerts.
  • OpenAI patched the issue rapidly, accepting the report within one day and deploying a fix within three days of disclosure.

Why It Matters

This incident highlights a fundamental shift in cybersecurity risks where traditional perimeter defenses are bypassed by exploiting the trust relationships between users and AI agents. For AI practitioners and security teams, it demonstrates that autonomous agents with tool access can become powerful attack vectors if their initialization processes lack strict input validation and authorization checks. It underscores the urgent need for "agent-centric" security models that monitor not just user activity, but the behavior and configuration changes of AI agents themselves.

Technical Details

  • Vulnerability Mechanism: The flaw resides in the ChatGPT Agent Builder, specifically in how it handles initialization URLs. Attackers manipulate two key parameters: agent_template (set to "Chief of Staff" for maximum flexibility) and initial_assistant_prompt.
  • Exploitation Chain: A victim is phished into clicking a weaponized URL. This URL triggers the automatic creation of an agent with pre-specified instructions, such as monitoring emails for subjects starting with "TASK" and executing commands found therein.
  • Stealth Features: The injected instructions disable "always ask" prompts, hide the agent from the user interface, and mark it as "live." Because the attacker uses the victim's existing OAuth connections (e.g., Gmail), no new consent screens appear, making the agent's presence invisible to the organization.
  • Command and Control (C2): The agent functions as an autonomous insider. Instructions are delivered via email from the attacker, and results are emailed back, creating a persistent, low-and-slow data exfiltration channel that blends in with normal business traffic.
  • Remediation: OpenAI resolved the issue by restricting the permissiveness of the Agent Builder parameters, ensuring that initialization URLs cannot arbitrarily dictate agent behavior or bypass safety guardrails.

Industry Insight

  • Rethink Agent Security: Organizations must implement strict governance for AI agents, including monitoring for unauthorized agent creation and validating the provenance of agent configurations. Standard CSRF protections are insufficient for autonomous systems.
  • Zero Trust for AI: Adopt a Zero Trust architecture for AI interactions, assuming that any agent with tool access could be compromised. Implement continuous verification of agent actions and restrict the scope of tools available to newly created agents.
  • Enhanced Phishing Defense: Since this attack relies on a single click to initiate a complex chain, organizations should prioritize advanced phishing detection and user training focused on recognizing malicious links that may not lead to obvious harmful pages but instead trigger backend API calls.

TL;DR

  • Zenity Labs 发现并披露了 OpenAI ChatGPT Workspace Agents 中的关键漏洞“AgentForger”,这是一种定制的跨站请求伪造(CSRF)攻击。
  • 攻击者通过钓鱼链接诱导用户点击,利用过度宽松的 URL 参数(如 initial_assistant_prompt)在受害者账户内创建并运行自主代理。
  • 该漏洞允许攻击者远程通过电子邮件控制代理,使其在组织信任边界内隐蔽执行数据侦察、凭证窃取及商业邮件诈骗(BEC)。
  • OpenAI 在漏洞披露后反应迅速,于三天内修复了该问题,凸显了 AI 代理安全治理的紧迫性。

为什么值得看

这篇文章揭示了 AI 代理作为新型攻击载体带来的独特安全风险,即“伪造内部人员”而非传统的“伪造请求”。对于 AI 从业者和企业安全团队而言,它强调了在部署自主代理时必须重新审视身份验证、权限管理和行为监控机制的重要性。

技术解析

  • 漏洞原理:ChatGPT Agent Builder 存在参数注入缺陷,攻击者可通过构造包含特定模板(如 Chief of Staff)和初始提示词(initial_assistant_prompt)的恶意 URL,劫持代理构建流程。
  • 持久化与控制:初始提示词被自动执行,指示代理监听来自攻击者邮箱且主题为“TASK”的邮件,将其视为新指令,并将结果回传,形成隐蔽的命令与控制(C&C)通道。
  • 隐蔽性机制:攻击指令包括隐藏代理、禁用“始终询问”确认步骤以及将代理设为“实时运行”,从而绕过常规的用户审批流程,使代理对受害者组织完全不可见。
  • 前置条件:受害者需已登录 ChatGPT,拥有 Workspace Agents 访问权限,且至少连接了一个授权连接器(如 Gmail/Outlook),以便无需触发新的 OAuth 同意屏幕即可获取数据访问权。

行业启示

  • 重构零信任架构:传统 CSRF 防护不足以应对 AI 代理攻击,企业需建立针对 AI 代理行为的实时监控和异常检测体系,防止代理被滥用为持久化后门。
  • 强化代理生命周期管理:在设计和部署自主代理时,必须实施严格的输入验证和最小权限原则,确保代理无法通过初始化参数自我配置或绕过安全护栏。
  • 提升安全意识培训:鉴于攻击依赖于社会工程学诱导点击,组织应加强员工对涉及 AI 工具链接的钓鱼攻击识别能力,并定期审查第三方应用和连接的权限。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Agent Agent Security 安全 LLM 大模型