Google Gemini vulnerable to a stupidly easy prompt injection attack in Gmail AI summaries

Alfonso Maruccia

Posts: 2,747   +1,063
Staff
AI first, security later: As GenAI tools make their way into mainstream apps and workflows, serious concerns are mounting about their real-world safety. Far from boosting productivity, these systems are increasingly being exploited – benefiting cybercriminals and cost-cutting executives far more than end users. Researchers this week uncovered how Google's Gemini model used in Gmail can be subverted in an incredibly simple way, making phishing campaigns easier than ever.

Mozilla recently unveiled a new prompt injection attack against Google Gemini for Workspace, which can be abused to turn AI summaries in Gmail messages into an effective phishing operation. Researcher Marco Figueroa described the attack on 0din, Mozilla's bug bounty program for generative AI services.

We strongly recommend reading the full report if you still think GenAI technology is ready for deployment in production or live, customer-facing products.

Like many other Gemini-powered services, the AI summary feature was recently forced onto Gmail users as a supposedly powerful new workflow enhancement. The "summarize this email" option is meant to provide a quick overview of selected messages – though its behavior depends heavily on Gemini's whims. Originally introduced as an optional feature, the summary tool is now baked into the Gmail mobile app and functions without user intervention.

The newly disclosed prompt injection attack exploits the autonomous nature of these summaries – and the fact that Gemini will "faithfully" follow any hidden prompt-based instructions. Attackers can use simple HTML and CSS to hide malicious prompts in email bodies by setting them to zero font size and white text color, rendering them essentially invisible to users. This is somewhat similar to a story we reported on this week, about researchers hiding prompts in academic papers to manipulate AI peer reviews.

Using this method, researchers crafted an apparently legitimate warning about a compromised Gmail account, urging the user to call a phone number and provide a reference code.

According to 0din's analysis, this type of attack is considered "moderate" risk, as it still requires active user interaction. However, a successful phishing campaign could lead to serious consequences by harvesting credentials through voice-phishing.

Even more concerning, the same technique can be applied to exploit Gemini's AI in Docs, Slides, and Drive search. Newsletters, automated ticketing emails, and other mass-distributed messages could turn a single compromised SaaS account into thousands of phishing beacons, the researchers warn.

Figueroa described prompt injections as "the new email macros," noting that the perceived trustworthiness of AI-generated summaries only makes the threat more severe.

In response to the disclosure, Google said it is currently implementing a multi-layered security approach to address this type of prompt injection across Gemini's infrastructure.

Permalink to story:

 
Ugh, I hadn't noticed AI was crammed into the mobile app with no way to disable it. At least on web gmail you can turn all of the AI stuff off.

I really need to find the time to move my small business emails away from google.
 
Ugh, I hadn't noticed AI was crammed into the mobile app with no way to disable it. At least on web gmail you can turn all of the AI stuff off.

I really need to find the time to move my small business emails away from google.


Why would any one use Google's gmail app when there are many great alternatives. I've try not use any of their apps other than maps.
 
Why would any one use Google's gmail app when there are many great alternatives. I've try not use any of their apps other than maps.
You started the business a long while ago and it has since become a side hustle on autopilot after you moved industries. Cost benefit of my time fixing things on the old business vs doing something fun or making money in my new area.
 
There are no full proof defences against crafted email attacks like this. See also the ‘EchoLeak’ MS Copilot vulnerability. Basically, don't allow LLMs to take untrusted emails as an input. They are so stupid and will follow any instructions they are given.
 
Ugh, I hadn't noticed AI was crammed into the mobile app with no way to disable it. At least on web gmail you can turn all of the AI stuff off.

I really need to find the time to move my small business emails away from google.
Self-host it. Get a VPS or root server, do some work and set up dovecot for IMAP and smtp gateway of you chosing (Haraka for example). I don't like this forced AI junk. Decided to run my wife's small business off its own mail server instead of other paid-for email services (who knows who reads what). It's even got spam learning and filtering using rspamd. Locked down her office version so it doesn't get this new Outlook that's out now. She prefers to use Outlook and it works perfectly with dovecot, etc.

I don't even trust those other email services out there that every de-google-your-life video recommends. But then again, I've got the time to do the time-consuming technical effort to get them running because I have no life anyway. :)
 
Self-host it. Get a VPS or root server, do some work and set up dovecot for IMAP and smtp gateway of you chosing (Haraka for example). I don't like this forced AI junk. Decided to run my wife's small business off its own mail server instead of other paid-for email services (who knows who reads what). It's even got spam learning and filtering using rspamd. Locked down her office version so it doesn't get this new Outlook that's out now. She prefers to use Outlook and it works perfectly with dovecot, etc.

I don't even trust those other email services out there that every de-google-your-life video recommends. But then again, I've got the time to do the time-consuming technical effort to get them running because I have no life anyway. :)
Yeah that's a lot of work for a business I currently have zero time for.
 
Or, get this, you can just ignore it. Don't like it? Don't use it. The rest of us who actually adopt new tech and don't avoid change like the plague will happily enjoy these convenient new features.
 
Back