These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
prt-scan: automated pull_request_target attacks
March – April 2026 · Contained
One actor using six accounts opened more than 500 pull requests whose code ran in pull_request_target workflows with the target's secrets; fewer than one in ten worked, but those leaked AWS, Cloudflare and Netlify keys and led to two compromised npm packages.
- Access held
- Scale
- More than 500 malicious pull requests from six accounts
Full summary
From 11 March 2026 an actor opened pull requests from forks on branches named prt-scan- followed by a hex string, with the same title and body each time, against repositories whose workflows run on pull_request_target. That trigger runs in the base repository with its secrets, so where a workflow checked out and ran the pull request's code, the attacker's code ran with them. Wiz traced six waves from six accounts, three weeks before Charlie Eriksen made it public on 2 April, when the ezmtebo account opened more than 475 pull requests in 26 hours. The payloads grew from a bash script into AI-written code that fits each repository's language and test setup. They sent the workflow token out, listed secret names and environments through the API, and where the token could write, added a workflow that named every secret and started it with workflow_dispatch to get the values. Wiz counted a success rate under ten percent across more than 450 attempts. First-time contributor approval, actor checks and path filters stopped it at Sentry, OpenSearch, NixOS and others. Where it worked it took AWS keys, Cloudflare API tokens and Netlify tokens, and two npm packages of one maintainer were compromised across 106 versions.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
From about 08:00 UTC on 11 March 2026 a since-deleted account opened pull requests on branches named prt-scan-<hex>, all with the same title and body. Wiz traced six waves from six accounts. The last, ezmtebo, was created on 2 April and opened its first pull request two minutes later, then more than 475 in 26 hours.
What breaks this step
- Audit every use of pull_request_target and remove or restructure risky ones
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Require approval for first-time/external contributor workflow runs on forks
- Disallow self-hosted runners on public repositories
- Limit who and what can trigger workflows with workflow execution protections
- Pass untrusted values through env variables instead of ${{ }} expressions in run steps.
- Make self-hosted runners ephemeral.
- Lint workflows with zizmor or a similar tool in CI.
pull_request_target runs in the base repository with its secrets and a token, even for a fork. Where a workflow checked out and built the pull request's code, the payload ran there. Later payloads were AI-written to fit the target: Go test files, npm scripts, Python conftest files.
What breaks this step
The payload sent the workflow token out, then used it to list secret names, environments and workflow files, and kept watching the runner's processes for ten minutes to catch secrets loaded later. Where the token could write, it added a workflow to the default branch that named every secret and started it with workflow_dispatch so the values reached the logs. A step that tried to add trigger labels to its own pull request could not work with the default token.
What breaks this step
- CODEOWNERS in place, required on sensitive paths
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Inventory every Actions secret and its visibility/scope; the results are usually surprising
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Put production secrets in environments with required reviewers
Wiz measured a success rate under ten percent across more than 450 attempts. Sentry, OpenSearch, IPFS, NixOS, Jina AI and recharts were protected by first-time contributor approval, workflows limited to trusted actors and path-based triggers.
Wiz saw AWS keys, Cloudflare API tokens and Netlify tokens stolen, and two npm packages with a shared maintainer, @codfish/eslint-config and @codfish/actions, compromised across 106 versions. Charlie Eriksen made the campaign public on 2 April 2026; Wiz found the earlier waves.
What breaks this step
- Adopt artifact attestations for build provenance on published binaries/images
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
Frameworks
Part of
Contained. First seen March 2026, last seen April 2026. More than 500 malicious pull requests from six accounts (as of 4 April 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchSix accounts, one actor: inside the prt-scan supply chain campaign
- researchprt-scan: GitHub Actions exfiltration campaign
- trackerCSA research note: GitHub Actions prt-scan supply chain campaign
- trackerAI-assisted supply chain attack targets GitHub
Reported by: Wiz Research