Skip to content
MediumNewsLLM-specific

Hacking Gemini's Memory with Prompt Injection and Delayed Tool Invocation

Published
Record updated
View JSON

Summary

Researcher Johann Rehberger shows that Gemini's long-term memory feature can be written to via prompt injection in an uploaded document, bypassing the usual protection that blocks sensitive tools when processing untrusted data. Using delayed tool invocation, a hidden instruction makes Gemini save attacker-chosen false information to memory when the user replies with a trigger word such as "yes" or "sure", and that entry can persist across sessions.