ShipSafe has 9 sourced items that involve Gemini: 1 build story and 8 security incidents. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where Gemini builders get stuck
Leaked secrets & API keys (6): 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.
Trusting agents & AI input (1): Agents read web pages, files, emails and tool output that can hide instructions. Give agents the fewest permissions possible and approve anything that runs commands, sends data, deletes or pays.
Dependencies, plugins & MCP servers (1): AI suggests packages, extensions and MCP servers that can be malicious or vulnerable. Check the publisher and permissions before installing.
Fix loops & regressions (1): After 2–3 failed fixes, stop. Restore the last working version, start a fresh chat, paste the exact error and ask for one small change.
How to use these Gemini stories
Read the summary and the original post, then copy the fix prompt into Gemini 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, so the topic links above show the same mistake in other tools.
In a 9 November paper, Google DeepMind researchers used swarms of attacker agents to craft prompt injections hidden in tool output. Against the strongest attacker, Gemini 4 Argon resisted only 66% of attacks at maximum budget, while Kimi K3, GLM-5.3 and DeepSeek-V4.1-Flash each resisted 1%. The authors conclude prompt injection is not solved.
Bitdefender Labs said on 17 Nov 2026 it had found 22 malicious GitHub links built to target developers using AI coding assistants. Files such as AGENTS.md and CLAUDE.md tell the assistant that scripts/setup.js is a 'sealed' signed artifact it must not read, and to run it automatically at session start without asking. A second route uses a session-start hook in .claude/settings.json, so the script runs once the repo is trusted with no prompt at all. The heavily obfuscated payload steals CI/CD tokens, cloud secrets, package-registry credentials, SSH keys, .env files, API keys, browser and password-manager data, then searches the machine for config files of 14 agents (Claude, Codex, Gemini, Copilot, Cursor, Bolt, Cline, Aider and others) to plant malicious instructions, hooks or MCP servers. With stolen GitHub or GitLab tokens it can commit the same files into up to 25 other repos by default and try to republish infected packages to npm, PyPI, RubyGems and JFrog.
Google Threat Intelligence Group and Mandiant reported on 2 Nov on 2026 incidents where attackers hijacked companies' access to LLMs. Some saw over $100,000 in fraudulent charges in a single day, and cumulative charges at some reached $1 million before access was revoked. The main ways in were stolen or exposed cloud credentials, GitHub tokens and service-account keys; one group harvested LLM keys from public GitHub repos and tested them with single-token requests to stay unnoticed. Stolen access is resold through 'LLM mixer' services.
A GitGuardian post dated 19 Oct describes research in which people recovered real DeepSeek and Google API keys from Qwen3-27B, GPT-Codex 5.3 and Claude Haiku 4.5 using only API output; each key also appeared in public GitHub code. GitGuardian also says Claude Code-assisted public commits leaked secrets at 3.2% versus a 1.5% baseline, and that public MCP config files held 24,008 unique secrets, 2,117 of them valid. These figures are GitGuardian's, from a company that sells secret-protection tools.
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
OpenCode said an intruder reached a legacy Console system on the night of 16 Oct and that OpenAI, Anthropic and Google keys saved by 1.4% of Console users may have been exposed. Users told reporters their keys were then billed, with claims from $168 to $1,700.
Truffle Security scanned 224 million public GitHub repos and found 543,699 credentials that still worked when tested in July 2026, including 31,374 live Gemini keys. The median one had been public for 784 days. GitHub's push protection does not block Google or Gemini API keys.
A developer reported a stolen Google Cloud API key that generated about $82,000 of Gemini charges in two days, against a normal monthly spend of about $180.