ShipSafe has 3 sourced items that involve Gemini CLI: 0 build stories and 3 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Gemini CLI builders get stuck
Dependencies, plugins & MCP servers (2): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Leaked secrets & API keys (1): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
How to use these Gemini CLI stories
Read the summary and the original post, then copy the fix prompt into Gemini CLI or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to Gemini CLI, so the topic links above show the same mistake in other tools.
Backslash Security published research on 25 Nov 2026: it scanned 2,504 public GitHub repositories holding chat logs and other agent files from nine AI coding tools and found 708 exposed secrets in 255 of them (about 10%), and it assesses about 200 are likely still valid. Backslash says 7 in 10 of the secrets got into the logs through the agent's own actions, such as reading a .env file, writing a key into a config file or running a command that printed it, not because a user pasted them. It says every one of the nine tools it examined leaked secrets this way, and that deleting the log does not help because it stays in git history, forks and clones.
Socket's Threat Research Team analysed strutil-core 1.0.1, a RubyGems package published on 1 November 2026 less than two hours after a clean 1.0.0. During gem install, a native extension script downloads the Bun runtime and runs a 5.48 MB worm from the Shai-Hulud-derived Miasma family. It collects cloud, CI, registry, SSH, wallet and AI coding tool credentials, adds an MCP server named workspace-tools and SessionStart hooks to local agent configs, and with stolen Git credentials commits .claude/settings.json, .cursor/mcp.json, CLAUDE.md, AGENTS.md and a VS Code folder-open task into repositories, so opening the repo in an AI coding tool can run it again. A monitor deletes the home directory if a stolen GitHub token stops working. RubyGems removed both versions about five hours after release; Socket found no public dependents and no confirmed victims.
Malicious versions of the Nx build tool were published to npm; the install script used locally installed AI coding CLIs to search the machine for secrets and wallets and uploaded them to GitHub.