Case gemini-cli-tracebit-hijackAgent hijackUnited States
Gemini CLI hijacked via poisoned README to silently exfiltrate credentials
Archive · reported more than 12 months ago
Tracebit showed instructions hidden in README.md or GEMINI.md could make Gemini CLI run an allow-listed grep padded with whitespace and a hidden env and curl payload, exfiltrating secrets silently. Fixed in 0.1.14.
HighAttack on AIStatus: PatchedVerified case file
Open in the interactive mapCite this case
- Reported
- Jul 28, 2025
- Location
- United States
- Target
- Google Gemini CLI
- Severity
- High
- Verification
- Confirmed by victim, vendor or authority
- Triggered by
- Sam Cox (Tracebit)
- Actor type
- Security researchers
- Sector
- Technology & AI vendors
- Reported loss
- None reported
- CVE
- None
What happened
Tracebit showed instructions hidden in README.md or GEMINI.md could make Gemini CLI run an allow-listed grep padded with whitespace and a hidden env and curl payload, exfiltrating secrets silently. Fixed in 0.1.14.
Impact: Silent exfiltration of environment variables and credentials from developers analysing untrusted code in default settings; no exploitation reported
Who triggered it
Actor: Sam Cox (Tracebit)
Attribution: Responsible disclosure to Google; rated P1/S1 by Google during triage
Motive: Security research
How it happened
Attack vector: Indirect prompt injection in context files combined with weak command validation and a display bug that hid the trailing commands from the user
Root cause: Allow-list matching on command prefix plus inadequate parsing let chained shell commands run after an approved one
Timeline
- Tracebit reports the issue to Google
- Google escalates to P1/S1
- Gemini CLI 0.1.14 released with the fix
- Coordinated public disclosure
Response
Google patched Gemini CLI and improved command display and validation
Current status: Patched
Research warnings this case matches
- Seen in real incidents AI systems themselves become targets · International AI Safety Report
- Seen in real incidents Privacy and security · MIT AI Risk Repository
Compared with published AI risk research from several institutes on the Research vs reality page.
Sources (open in a new tab)
- Tracebit tracebit.com
- BleepingComputer bleepingcomputer.com
- CyberScoop cyberscoop.com
Cite this case
Gemini CLI hijacked via poisoned README to silently exfiltrate credentials. AI Threat Watch, case gemini-cli-tracebit-hijack, Jul 28, 2025. https://aithreat.io/cases/gemini-cli-tracebit-hijack/
Permanent link: https://aithreat.io/cases/gemini-cli-tracebit-hijack/
Related cases
The same type of incident, most recent first.