Skip to content
Yassir Kachri

Agentic AI Security

The Gemini Trifecta: Logs and Search History as Prompt Injection Channels

In September 2025, Tenable disclosed three Gemini flaws: injection through cloud logs and search history, and silent exfiltration through the browsing tool. A post-incident reading of the chain, the fixes, and what to inventory.

Yassir Kachri 4 min read

On 30 September 2025, Tenable researcher Liv Matan disclosed three vulnerabilities in Google’s Gemini products, which Tenable named the Gemini Trifecta and described as “now remediated.” Tenable’s post gives no CVE, no disclosure timeline and no report of exploitation in the wild.

Two of the three flaws let an outsider place instructions in Gemini’s context through data that most teams would not list as an input to an AI system: cloud logs and search history. The third was a way out: Gemini’s browsing tool could carry data to an attacker’s server without showing anything to the user. Combined with a successful prompt injection, Tenable wrote, that flaw “gave us a reliable attack path from infiltration to exfiltration.”

Two ways in, and a way out that needed no click

Exhibit 1 Two flaws let outsiders write into Gemini's context, and a third let data leave without a click
ProductRole in the chainWhat Tenable showedGoogle’s fix, as reported by Tenable
Gemini Cloud Assist, log summariesWay inAn injected User-Agent header on a request to a public Cloud Function appeared in the logs Gemini summarized, and Gemini “inserted the phishing link into its log summary”“stop rendering hyperlinks in the responses for all log summarization responses”
Gemini Search PersonalizationWay in“malicious search queries” injected into the user’s search history by JavaScript on a malicious website; data left “If the victim clicked the embedded link”“Google rolled back the vulnerable model”
Gemini Browsing ToolWay outA tool request “embedding the user’s private data in the query string,” with nothing shown to the user“Google now prevents exfiltration from browsing in indirect prompt injections.”

Source: Liv Matan, Tenable Research blog on the Gemini Trifecta (30 September 2025). Classification is the author's.

The Cloud Assist demonstration inserted a phishing link. Tenable also described a more damaging scenario that it considered feasible: a prompt that “instructs Gemini to query all public assets, or to query for IAM misconfigurations, and then creates a hyperlink that contains this sensitive data,” which “should be possible since Gemini has the permission to query assets through the Cloud Asset API.” Tenable lists the public-facing services whose logs could carry such a header, including Cloud Functions, Cloud Run, App Engine and Compute Engine. Anyone able to send a request to a public endpoint could therefore place text in front of an assistant that a cloud administrator would later ask to explain those logs.

What the three flaws show together

Telemetry is content. Logs, request headers and histories are written partly by outsiders. When an assistant reads them as context, they carry the same risk as a web page or an email from an unknown sender. Tenable frames it in the same terms: “every input channel becomes a potential infiltration point,” and every output mechanism a potential exfiltration vector.

Rendering is an outbound channel. The two injection cases relied on a link the victim would click. Tenable notes that Gemini already redirected links in markdown “to a google.com address” before this research, and the Cloud Assist fix went further by no longer rendering hyperlinks in any log summary. The combination fits the pattern Simon Willison called the lethal trifecta in June 2025, which I applied to design reviews in an earlier article: private data, untrusted content and a way to communicate externally, combined in one session. Tenable’s “Trifecta” names its three flaws; Willison’s names three conditions, which the chains Tenable described meet.

Tool calls are an outbound channel too. The browsing flaw needed no click. The tool itself made the request, with the data in the query string. Controls that filter what is rendered to the user do not see such a request, which is why Google’s fix targets exfiltration through the browsing tool itself.

What I would inventory

For any assistant deployed with access to internal data, I would build a list with three columns.

  1. Every source that can reach the assistant’s context. Include the indirect ones: logs and traces it summarizes, histories it personalizes from, tickets, emails and documents it retrieves. For each, note whether people outside the organization can write to it.
  2. Every way the assistant’s output can cause a request. Rendered links and images, tool calls that fetch URLs, and integrations that send messages or create records.
  3. Every sensitive scope the assistant holds in the same session. Cloud queries, personal data and internal documents.

Where a single session combines an outsider-writable source, sensitive scope and a request path, that combination needs one of its three parts removed or restricted: the untrusted source excluded or isolated, the scope narrowed, or the request path limited to an allowlist with no free-form URLs.

Tenable’s key takeaways make a related point about knowing where AI tools run: “Protecting AI tools requires visibility into where they exist across the environment”. The inventory above extends that visibility to what each tool reads and what it can send.