Repository settings weakened
The settings that stop the change path being bypassed — branch protection, required reviews and checks, signing, secret scanning — are switched off, bypassed or no longer match what is declared, by one of the routes below. Branch protection and the merge settings are managed as code and the live settings verified against them (CFG-08), and the nightly plan reports any difference between infrastructure and its code (CHK-36). The person who administers the repository holds the settings these controls rely on, which while one person holds every role is person.K3 S2.
Before and after controls.
With controls is rated as if every control below works as designed.
How it can happen.
Protection switched off or overridden by an administrator
An administrator turns branch protection off to unblock a stuck change, or uses an override to push or force-push directly, and does not turn it back on, or nobody notices. The release branch refuses direct and force pushes and accepts only a reviewed pull request by squash merge, and the live settings are verified against the declared ones (CFG-08); protection left off is reported by the nightly plan (CHK-36). An override in the moment is found afterwards: a direct push leaves a commit on the release branch that no squash merge signed (CFG-14), and a merge with no approval leaves its
mergesrow and raiseschange.unapproved_merge(CFG-26 and.3), which is only recorded until BL-0132 is decided.Secret scanning switched off
A repository's pre-commit configuration, which runs secret scanning, is removed or never set up. A new repository's pre-commit configuration is generated from the project baseline (CFG-03), and its project configuration is compared with the baseline (CHK-27); that comparison does not read the pre-commit configuration. Secret scanning also runs at push, through the Git host's push protection, and in CI (CHK-29), so a removed hook leaves those in place.
The live settings drift from what is declared
Branch protection, the required check or the signing rule is changed in the host's settings with no commit, or protection names a branch that is no longer the one released from; the repository looks protected on paper while the release branch accepts direct pushes or unchecked merges. The settings are declared as code and the live settings compared with them (CFG-08) each night (CHK-36), and every commit on the release branch is verified as signed whatever the setting says (CFG-14).
Controls that reduce it.
- CHK-27Every repository's project configuration matches the project baseline Check
- CFG-03Every new repository is generated from the project baseline Configuration
- CFG-08The release branch accepts changes only through a reviewed pull request Configuration
- CHK-36Infrastructure that differs from its code is detected every night Check
- CFG-14Every commit on the release branch is signed, and traces to commits signed by a known person Configuration
- CHK-29Secrets are blocked at commit, at push and in the built agent bundle Check
- CFG-26Every release pointer change and every merge is kept in a history that can't be edited Configuration
Where it comes from.
This risk to cloud resource arises from:
Other risks to cloud resource.
- Resource created outside infrastructure codeLow
- Infrastructure state read or changed outside the pipelineLow
- Insecure configuration appliedLow
- Unlabelled resource escapes ownership and deletionLow
- CI workflow compromised through broad permissions or unpinned actionsLow
- Merge gate passes a change it should blockLow
See the whole picture.
Every AI risk on one matrix, before and after controls.