AI-Assisted GitHub Actions Campaign Exploited `pull_request_target` to Steal Secrets
Supply Chain Risk · 5 sources · Updated 4mo ago · First seen Mar 27, 2026

Researchers reported that the prt-scan campaign abused misconfigured GitHub Actions workflows using the pull_request_target trigger to run attacker-controlled code from forked pull requests in privileged CI contexts. The actor used at least six GitHub accounts to submit more than 500 malicious pull requests across six waves, disguising many as routine CI updates and tailoring payloads to Python, Node.js, Go, Rust, and GitHub Actions repositories. Wiz said the operation evolved from simple bash payloads into AI-assisted, repository-aware implants designed to steal GITHUB_TOKEN values, enumerate secrets, probe cloud metadata services, and exfiltrate credentials through workflow logs and pull request comments.
The campaign succeeded often enough to cause real supply-chain impact despite an estimated success rate below 10%. Wiz confirmed compromise of the npm packages @codfish/eslint-config and @codfish/actions across 106 versions, and verified theft of AWS keys, Cloudflare API tokens, and Netlify authentication tokens. High-profile projects including Sentry, OpenSearch, IPFS, NixOS, Jina AI, and recharts reportedly blocked the attempts through contributor approval gates and workflow restrictions. The activity follows earlier warnings from Sysdig that insecure use of pull_request_target in prominent repositories such as MITRE, Splunk, and Spotipy could expose secrets and high-privilege GITHUB_TOKEN permissions, underscoring that unsafe GitHub Actions defaults remain an active software supply-chain risk.


