How did a hidden Reddit comment make an AI browser grab a login code?
Brave researchers hid instructions in a Reddit comment behind a spoiler tag. When a user clicked Comet's summarize button, the AI followed them: it read the user's email address on Perplexity, requested a one-time login code, opened Gmail to read it, and replied to the comment with both. That is enough to take over the account.
The breakdown
What happened
Brave's security team tested Perplexity's Comet, an AI browser that can act on web pages for you. When asked to summarize a page, Comet passed page content to its model without separating the user's request from text on the page.
Where the instructions hid
In Brave's demo, a user visits a Reddit post. One comment holds instructions hidden behind a spoiler tag, so a person reading the thread does not see them.
What the AI did
After one click on Summarize the current webpage, the assistant opened the user's Perplexity account page and copied the email address. It then started a login on perplexity.ai. with a trailing dot, which counts as a different domain, so a one-time code was sent to that email.
How the code got out
The assistant opened Gmail, where the user was already logged in, read the code, and replied to the original Reddit comment with the email address and the code. Brave says no further input from the user was needed.
Was it fixed?
Brave reported it on July 25, 2025. Perplexity shipped fixes and Brave's August 13 retest found it appeared patched. After publishing, Brave said Perplexity still had not fully mitigated this kind of attack and re-reported it.
What to do with it
An AI browser acts with your logged-in sessions. Don't run its agent features on pages full of other people's content while you are signed in to email or money accounts.
The question at the end of the video: Would you let an AI browser click around while you're logged in?
Sources
- Brave blog, Artem Chaikin and Shivan Kaul Sahib, Aug 20, 2025: Agentic Browser Security: Indirect Prompt Injection in Perplexity Comet
- The Register, Aug 20, 2025: Perplexity's Comet browser faced prompt injection vuln
FAQ
What is Perplexity Comet?
An AI browser from Perplexity with an assistant that can read pages and take actions, such as navigating sites, on your behalf.
Where was the hidden instruction?
In Brave's demo it sat in a Reddit comment, hidden behind a spoiler tag. Brave notes attackers can also use white text, HTML comments or other invisible elements.
Why didn't normal web security stop it?
Brave says protections like same-origin policy and CORS do not help when the AI itself follows the instructions, because it acts with the user's own logged-in sessions.
Is Comet still vulnerable?
Perplexity fixed the reported issue, but Brave later said this kind of attack still was not fully mitigated and re-reported it.
































