AgentFlayer Turns ChatGPT Connectors Into a Zero-Click Exfiltration Path
Zenity showed how an untrusted document can tell ChatGPT connectors (connections that let ChatGPT read authorized SaaS data such as Google Drive) to search for API keys, place them inside a markdown image URL, and leak them when the client renders a safe-looking Azure Blob (Microsoft Azure object storage) image. The core lesson is value-level data-flow control: connector data may be readable for a task, but that does not mean it can be embedded into remote media.
Threat Analysis
- The document carries the instruction. The attacker hides prompt-injection text in a file the victim uploads to ChatGPT for summarization or analysis.
- The task changes without user approval. Instead of summarizing the document, ChatGPT is instructed to search connected Google Drive for API keys and keep the change quiet.
- The connector supplies the sensitive value. ChatGPT uses the victim's connector authorization to retrieve API-key material from Drive or another connected SaaS source.
- The renderer becomes the exfiltration sink. The output places the keys inside a markdown image URL. When the image renders, the request sends the keys as URL parameters.
- Safe-looking domains are not enough. Zenity's bypass used Azure Blob plus Log Analytics, showing that URL checks must inspect data flow and full destination context, not only domain reputation.
Applicable AIDEFEND Defenses (7)
What Defenders Should Do Now
- Separate uploaded-document context from connector authority. A file should not be able to expand a task into Drive, SharePoint, OneDrive, GitHub, or email search by itself.
- Tag connector outputs by source and sensitivity, then block high-sensitivity values from remote media, URLs, messages, and model-call bodies.
- Inspect generated markdown before rendering. Treat images, links, previews, and remote media as network actions, not harmless formatting.
- Log connector search, generated URL, and render events together so teams can detect document-to-connector-to-image exfiltration chains.
- Prepare key rotation workflows for API keys, OAuth tokens, and developer secrets exposed through AI connectors.
Conclusion
AgentFlayer is powerful because every step looks like a normal feature: upload a document, search a connector, render an image. The security boundary has to follow the data, not the feature label. Once a sensitive connector value appears, it needs policy before it can become a URL, an image, or any other network side effect.