Skip to content
March 28, 2026·OpenSyber Team·8 min read

YOUR AI CODE REVIEWER CAN BE HACKED WITH A GITHUB ISSUE

PromptPwnd + Clinejection


AI-powered GitHub Actions such as Claude Code Actions, Gemini CLI, and OpenAI Codex process untrusted user input from issue bodies and PR descriptions. Attackers have discovered that embedding prompt injection payloads in these inputs can hijack the AI agent, causing it to leak secrets, publish malicious packages, or exfiltrate credentials.

Two attacks, one pattern

1. Clinejection

A GitHub issue containing hidden instructions caused Cline's AI bot to expose npm publish tokens. The attacker used the stolen tokens to publish cline@2.3.0 with a malicious postinstall script, affecting over 5 million users who installed or updated the package.

2. PromptPwnd

Five Fortune 500 companies were hit when attackers submitted GitHub issues containing prompt injection payloads targeting AI-powered code review workflows. Google's own Gemini CLI workflow leaked API keys after processing a malicious issue body.

The common pattern

In both cases, untrusted input from a GitHub issue body or PR description flowed directly into an AI agent prompt. The AI agent treated the injected instructions as legitimate commands. The attacker never needed repository write access, a compromised account, or a zero-day vulnerability. They only needed to open an issue.

Why existing defenses fail

Traditional CI/CD security tools scan for secrets in code, not for prompt injection in issue bodies. SAST tools do not analyze AI action configurations. Code review bots do not validate the allowed_non_write_users field or scan instruction files for hidden directives. The attack surface is entirely new and unmonitored by conventional tooling.

How to defend

  • Validate AI action configurations — Ensure allowed_non_write_users is explicitly restricted.
  • Scan instruction files — Check CLAUDE.md, .cursorrules, and similar files for injected directives.
  • Restrict secret access — AI agents should never have access to publish tokens or deployment credentials.
  • Monitor outbound requests — Flag any unexpected network calls from AI action runners.

How OpenSyber detects this

OpenSyber's GitHub Actions AI Prompt Guard skill detects prompt injection patterns in issue bodies, PR descriptions, and comment threads before they reach an AI agent. It validates AI action configurations and flags overly permissive access controls.

Install the AI Prompt Guard skill.

Detect prompt injection in GitHub issues and PRs before your AI code reviewer processes them.

Start free →