Gemini Bot Trick Enabled Fake PR Approvals

Security Week Feed · High sophistication
Last updated August 4, 2026

Researchers showed how a public-facing AI agent in Google’s ADK Python repo could be manipulated to trigger a higher-privileged workflow by posting a crafted “@gemini-cli <prompt>” comment on a pull request. This could expose secrets and help fabricate a believable (but false) trail that an automated reviewer triaged, reviewed, and approved a malicious change, though a human still had to merge it, requiring social engineering.

Key findings

  • A low-privileged, public-facing agent could be manipulated to pass prompts to a higher-privileged agent/workflow in the repo.
  • The PR triage agent was commenting as a Collaborator, implying elevated permissions.
  • Posting an “@gemini-cli <prompt>” comment could trigger a privileged workflow (“gemini-invoke”) and reveal privileged tool access.
  • The privileged bot effectively had access to run arbitrary bash commands, creating risk of secret/token theft and repo tampering.
  • The researcher described a way to poison the PR approval lifecycle to create a believable audit trail of review/approval activity that never happened, but a human still needed to merge malicious code (social engineering required).
  • Google was notified in early June and hardened the system; another ADK automation weakness was later found and fixed in late July.

Who’s being targeted

  • Commonly targeted roles: Developers, Open Source Maintainers, Code Reviewers/Approvers, DevOps/CI-CD Owners, Security/Trust & Safety for developer ecosystems.
  • Affected industries: Software development, Open source ecosystems, Technology.
  • Attack channels: github.
  • Impersonated: Gemini CLI / repository automation bot (as a trusted reviewer/triager), Repository triage/review bot (Gemini).

Awareness takeaways

  • Do not treat bot comments, triage labels, or bot approvals as proof that a change is safe, require human verification for risky merges.
  • Lock down automation permissions (tokens/workflows) so public-facing or low-trust inputs cannot trigger high-privilege actions.
  • Treat any workflow output that reveals tools, capabilities, or access scope as sensitive and investigate immediately.
  • Be alert to “trust building” by new collaborators followed by requests/actions that speed up approvals, this is a common setup for supply-chain compromise.

Red flags to watch for

  • Automation/bot comments or permissions that look more privileged than expected (e.g., acting as a collaborator)
  • PR discussion contains prompts aimed at tooling/bots rather than normal code review conversation
  • Unexpected workflow responses that list tools/capabilities or suggest command execution access
  • Review/approval activity appears automated or inconsistent with normal human review (timing, wording, or volume)
  • Bot approvals/triage labels appear on PRs without clear human request or discussion context
  • Multiple PRs where one contains mostly “prompts” or instructions aimed at automation rather than code changes
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo
Read the video transcript

Imagine a GitHub bot that can secretly approve a malicious PR… and make it look like a legit review. Researchers showed a Gemini bot on GitHub where a simple PR comment like '@gemini-cli run security checks' actually triggered a hidden workflow called 'gemini-invoke' with access to every bash command and its GitHub token. They even chained it: one PR with malicious code, a second PR full of prompts telling Gemini to mark the first as triaged, reviewed, and approved, manufacturing a fake audit trail that suggests, 'a human asked, Gemini reviewed, Gemini approved.' Here’s the move: before you merge anything risky, ignore the bot trail and do your own review, treat bot comments and approvals as hints, never as proof that the change is safe.

Categories

Similar attacks

Poisoned AI Agent Files Turn Dev Tools Into Spies

Poisoned AI Agent Files Turn Dev Tools Into Spies

Researchers found real GitHub repositories containing poisoned AI-agent instruction/config files (like CLAUDE.md and .cursorrules) that silently tell coding assistants to steal prompts, environment variables, and credentials. The malicious instructions can trigger hidden commands (for example, curl…

August 4, 2026
GitHub Issue Trick Turns AI Coders Against Repos

GitHub Issue Trick Turns AI Coders Against Repos

Researchers showed that a single public GitHub issue (from someone with no repo access) could steer popular AI coding agents into running dangerous commands, exposing tokens, and changing repositories. The risk comes from AI agents reading untrusted issue/PR text while also having access to…

August 6, 2026
Malicious GitHub Issue Can Hijack AI Coding Agents

Malicious GitHub Issue Can Hijack AI Coding Agents

Researchers showed that AI coding agents from Anthropic, Google, and OpenAI could be tricked by untrusted GitHub inputs (like an issue or workflow file) into taking unsafe actions. In the demos, a single malicious issue or writable workflow file could lead to remote code execution, stolen…

August 6, 2026
Vishing and Device-Code Tricks Drive Cloud Takeovers

Vishing and Device-Code Tricks Drive Cloud Takeovers

CrowdStrike reports attackers increasingly bypass security tools by using trusted login paths, phone-based IT impersonation, and abuse of legitimate cloud and AI services. The report highlights real intrusions where vishing led to single sign-on takeovers and rapid data theft, and where attackers…

August 6, 2026
Poisoned PRs Let One AI Agent Control Another

Poisoned PRs Let One AI Agent Control Another

Researchers found a real-world workflow flaw in Google’s Agent Development Kit (Python) repo where a low-privilege AI triage bot could be manipulated with prompt injection to trigger a higher-privilege maintainer agent. The attack uses “poisoned” pull requests to create a believable review/approval…

August 3, 2026
ClickLock Tricks Mac Users Into Pasting Malware

ClickLock Tricks Mac Users Into Pasting Malware

Researchers documented a real macOS data-stealing campaign that relies on social engineering instead of software bugs. Victims are sent to a fake “verification” page that tells them to copy and paste a command into Terminal, which silently installs a stealer and then pressures them to enter their…

July 16, 2026