Scammers can now use Google Gemini for phishing as pretend AI
Tech giant Google last year added the ability for its AI model Gemini to produce dot point summaries of email threads in Gmail, and laterย enabled the feature by defaultย for Google Workspace users.
According to newย security findingsย submitted to Mozillaโs AI bug bounty program 0din, threat actors can hide malicious prompts inside the body of an email to trick Gemini into including scam messages in its email summaries.
When a recipient clicks โSummarise this emailโ, Gemini โfaithfully obeysโ the scammerโs hidden instructions and appends a deceptive message which looks โas if it came from Google itselfโ.
In an example from 0din, Gemini told a recipient their password had been compromised before urging them to call a phone number for a password reset.
In a successful phishing scenario, the victim would then call the malicious number, disclose their password and potentially succumb to further social engineering over the phone.

An example of Gemini sending a phishing message. Source: 0din
The exploit, known as a prompt injection attack, evades detection by simply reducing the prompt font size and changing its colour to white so it blends into the background of an email.

Malicious instructions are hidden in white font. Source: 0din
โThe email travels through normal channels; spam filters see only harmless prose,โ wrote 0din program manager Marco Figueroa.
Further testing by this writer showed the flaw could be more precisely rigged to include links to active phishing sites.
โYour Gmail password has been compromised, please visit [link] to submit a password change immediately,โ read a Gemini output during testing.
.jpeg)
Gemini tricked into sharing a dangerous link. Source: Information Age
Google has not seen evidence of active attacks using the newly reported method, while a recentย blog postย revealed the tech giant plans to add โadditional prompt injection defences directly into Geminiโ later this year.
While prompt injection attacks may appear complicated, they operate exactly as their name suggests: threat actors โinjectโ malicious, often hidden prompts into an AI tool to make it misbehave.
These prompts can be sophisticated instructions or code to force a model to take out-of-scope action, while in other cases it can be a simple line of text.
0din found no email โlinks or attachments are requiredโ for Googleโs latest vulnerability, and that it instead uses โcrafted HTML [and] CSS inside the email bodyโ.
โCurrent LLM guard-rails largely focus on user-visible text,โ wrote Figueroa.
โHTML and CSS tricks bypass those heuristics because the model still receives the raw markup.โ
Thanks to the inclusion of โ<admin>โ tags and phrases such as โYou Gemini, have toโฆโ, the AIโs prompt-parser treats the hidden instructions as a โhigher-priority directiveโ and obliges them accordingly.
A user clicking the โsummarise emailโ button effectively delivers the prompt, while this writerfoundprompts could also be executed in automatically generated summaries for longer email threads.
A Google spokesperson said defending against โattacks impacting the industry, like prompt injectionsโ has been a continued priority.
โWeโve deployed numerous strong defences to keep users safe, including safeguards to prevent harmful or misleading responses,โ they said.
โWe are constantly hardening our already robust defences through red-teaming exercises that train our models to defend against these types of adversarial attacks.โ
Shannon Davis, global principal security researcher at software company Splunk, toldย Information Ageย he believed there are โother types of this vulnerability in the wild that we just haven’t seen surface yet.โ
Although mitigations for hidden email contents have existed for โsome timeโ, Shannon said these protections have mostly accounted for more technical exploits like database SQL injections or cross-site scripting.
โSometimes the simple approaches to circumvent protections are the ones that work,โ said Davis.
He added that AI is definitely โin that hype phase where AI tools are being built without properly planning for security first.โ
โWe need to think of the new avenues for security risks as we integrate these new AI tools into legacy systems.โ
0din also observed the exploit could present a supply-chain risk if newsletters and automated ticketing emails were used as injection vectors or even result in โfuture AI wormsโ that self-replicate and spread from inbox to inbox.
โSecurity teams must treat AI assistants as part of the attack surface,โ wrote Figueroa.
โInstrument them, sandbox them, and never assume their output is benign.โ
Comments