What is the "pwn request" attack and how do you defend against it?
AdvancedProductionSupply Chain and Pipeline Security
Answer
An attacker opens a fork PR that modifies code a privileged workflow will run. This happens when a workflow triggered by pull_request_target (or workflow_run) checks out the PR head and runs build or test scripts with write permissions and secrets. Defences: never check out and execute untrusted PR code in privileged contexts; split into an unprivileged build workflow and a privileged follow-up that only consumes inert data; set minimal permissions; require approval for first-time contributor workflows; and lint workflows with zizmor, which flags dangerous triggers.
More on Supply Chain and Pipeline Security
What is a software supply chain attack, and where does the pipeline fit?BeginnerWhat is an SBOM and why do you generate one in CI?BeginnerHow do you sign container images and verify them at deploy time?IntermediateWhat is SLSA and which level should a typical team aim for?IntermediateHow do you verify provenance before deploying?AdvancedHow do you scan images and dependencies in the pipeline without drowning in noise?Intermediate