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.
"Pwn requests": pull_request_target & workflow_run
Ongoing · Ongoing
A workflow on pull_request_target or workflow_run runs in the base repository with its secrets and a write token, so when it also checks out and runs the pull request's code, or takes in its artifacts or title, anyone who can open a pull request runs code with those privileges.
- Went after
- Steal CI secrets and tokens
- Access held
- T2Contents: WriteRepository secrets
Full summary
GitHub's ordinary pull_request trigger gives a fork's pull request no secrets and a read-only token. pull_request_target was added for workflows that need more, such as labelling or commenting, and runs in the base repository with its secrets and a token that can write. Its safety assumes the workflow only runs the repository's own code and treats the pull request as data. GitHub Security Lab described the failure in December 2020 and called it a pwn request: a workflow that checks out the pull request's head and builds or tests it, so the attacker's code runs with the secrets. Legit Security showed the same with workflow_run, where a privileged workflow trusts artifacts or data from the unprivileged run a pull request started. The pattern is behind several incidents on this site: Nx s1ngularity, Ultralytics, the spotbugs step of tj-actions, hackerbot-claw, prt-scan and the TanStack cache poisoning. Datadog found that 38% of organizations had a workflow open to script injection or a dangerous trigger. In November 2025 GitHub changed pull_request_target to always take the workflow from the default branch, so a fix on main also covers old branches.
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.
pull_request gives a fork's pull request no secrets and a read-only token. pull_request_target runs in the base repository instead, with its secrets and a token with write access, so that workflows can label or comment on pull requests. It is only safe if the workflow runs the repository's own code and treats the pull request as data.
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.
A pwn request is a workflow on pull_request_target that checks out the pull request's head and builds, tests or installs it. The attacker does not even need to touch the build: a new test file or install script runs with the others, with the repository's secrets in the environment.
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
- Limit who and what can trigger workflows with workflow execution protections
- In a workflow_run job, treat artifacts and outputs from the pull request's run as untrusted input.
workflow_run starts a privileged workflow after another one finishes. Legit Security showed that when the privileged workflow downloads artifacts or reads data from a run that a fork's pull request started, the attacker controls that input and gets the privileged workflow's secrets and write access.
It is how the attacker got in at Nx (s1ngularity), Ultralytics, spotbugs before tj-actions, Trivy and awesome-go (hackerbot-claw), the prt-scan campaign and TanStack's cache poisoning, each on its own page here. Datadog found that 38% of organizations have a workflow open to script injection or a dangerous trigger.
Until late 2025 pull_request_target ran the workflow file from the pull request's base branch, so a fix on main did not cover older branches, which Nx's attacker used. GitHub's 7 November 2025 change makes it always use the default branch's workflow, and evaluates environment branch rules against the reference that actually runs.
In 2026 actions/checkout started refusing a fork's code in pull_request_target and pull-request workflow_run runs, untrusted triggers got a read-only cache token, and from 2 December public repositories without an event policy no longer run pull_request_target. Wiz lists what still works: SHA pins from before the checkout backport, gh pr checkout or git clone in a run step, issue_comment and repository_dispatch bots, allow-unsafe-pr-checkout: true, script injection that needs no checkout, artifacts a workflow_run downloads, and state left on non-ephemeral self-hosted runners. The 2 December rule does not cover workflow_run, private or internal repositories.
Frameworks
Part of
Ongoing. First seen April 2021. Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchKeeping your GitHub Actions and workflows secure: preventing pwn requests
- researchThe case for GitHub Actions security after recent supply chain attacks
- researchVulnerable GitHub Actions workflows: privilege escalation
- advisoryActions pull_request_target and environment branch protections changes
- researchThe Pwn Request Reckoning: What Still Works Against GitHub Actions
Reported by: Datadog