Skip to content
Write-up Advanced

Six Accounts, One Actor: Inside the prt-scan Supply Chain Campaign

A threat actor exploited GitHub's pull_request_target workflow trigger across over 500 malicious pull requests, using AI-generated payloads to steal CI/CD secrets and compromise npm packages. The attacker achieved a low success rate but did manage to compromise at least two npm packages and steal some cloud credentials.

Rami McCarthy Follow

Published on wiz.io

On April 2, 2026, security researcher Charlie Eriksen publicly identified an automated campaign exploiting GitHub's pullrequesttarget workflow trigger. The attacker, operating under the account ezmtebo, opened over 475 malicious PRs in 26 hours targeting repositories belonging to both prominent organizations and…

Rami McCarthy, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the misuse of GitHub's pull_request_target trigger, which runs workflows in the context of the base repository and exposes secrets to pull requests from forks.

Impact

The campaign had a low success rate, but the attacker compromised at least two npm packages and stole some cloud credentials, though high-value targets blocked the attack.

What the attacker needed

Repositories using pull_request_target; attacker can fork target repository; workflow runs on pull_request_target

The fix

The report recommends reviewing GitHub organizations for indicators of compromise and following preventative guidance on GitHub Actions hardening.

How it was found

  1. Search for repositories using pull_request_target within GitHub Actions
  2. Fork the target repository
  3. Create a branch named prt-scan-{12-hex-chars}
  4. Inject a malicious payload into a file that executes during CI (conftest.py, package.json, Makefile, build.rs, etc.)
  5. Open a PR with the innocuous title 'ci: update build configuration'
  6. If the malicious workflow triggers: steal GITHUB_TOKEN, enumerate secrets, probe cloud metadata (AWS/Azure/GCP), and exfiltrate credentials via base64-encoded workflow log markers and PR comments

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes an attacker who abused a GitHub feature called pull_request_target, which lets code from a pull request run with access to the repository's secrets. By injecting malicious scripts into files that run during automated testing, the attacker tried to steal passwords and tokens, and in a few cases succeeded in publishing malicious versions of software packages.

More by Rami McCarthy

View all

4 more disclosed reports, best first.

Similar reports

Same bug class and techniques, clearest first.