What it means for teams

If a stolen maintainer token or an over-privileged bot account can merge and deploy alone, the pipeline's own speed delivers the attacker's change. Every route around review, such as an exempted account, an auto-merge rule or a manual artifact upload, counts.

How to prevent it

  • Protect production branches and release tags with required review, and avoid exempting accounts or branches from the rules.
  • Keep auto-merge rules few and narrow, and review their code so they cannot be bypassed.
  • Require approval before a production deployment runs, for example a protected environment with required reviewers.
  • Let only artifacts built by the approved CI identity flow onward, and detect drift between what runs in production and its pipeline origin.

Guides on this site

Practice

References

  1. CICD-SEC-1 Insufficient Flow Control Mechanisms (OWASP)

List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.