VNX-GH-215: Deploy key with write access, or unused
A deploy key can push to the repository.
Deploy keys are not tied to a user, do not expire, and are typically stored on build or deployment hosts. A write key there can push to unprotected branches and tags.
| Severity | Medium |
| Confidence | high |
| CWE | CWE-732 |
| Command | vulnetix gha settings, vulnetix gha audit |
| Needs | deploy keys. Without them the rule is reported as not evaluated, never as passed. |
Remediation
Make the key read-only, or replace it with a GitHub App installation token scoped to the repository.
Run only this rule
vulnetix gha settings --rule VNX-GH-215
Scoring
CWSS vector at the rule’s default severity: CWSS:1.0/TI:H/AP:A/AL:A/IC:N/FC:LT/RP:N/RL:A/AV:I/AS:N/IN:A/SC:A/BI:H/DI:H/EX:M/EC:N/P:W. A finding whose severity the repository’s settings moved is scored at its adjusted severity.
All rules: GitHub rules.