← OWASP Top 10 CI/CD Security Risks
CICD-SEC-10
Insufficient Logging and Visibility
The logs that would show an attack are missing, not collected, or not watched. Incidents are found by outsiders, weeks later, without a trail to follow.
Summary in ghtier's words. Read OWASP CI/CD's own text
Incidents (3)
Last 12 months (1): Megalodon: mass backdooring of CI workflows
2026
- Megalodon: mass backdooring of CI workflowsOrganization May 2026
2025
- GhostActionOrganization September 2025
2023
- Dependabot impersonationUser July 2023
Attack path techniques used
- Push directly, without review (Submit malicious code)
- Add a workflow that dumps secrets (Steal CI secrets and tokens)
- Publish a malicious version with a stolen token (Poison the build or published package)
- Leave a dormant workflow behind (Keep access)
Checklist items
The fixes for those techniques, plus the items ghtier tags with this risk.
- Branch protection on default/release branches: required reviews + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- CODEOWNERS in place, required on sensitive paths
- Inventory every Actions secret and its visibility/scope; the results are usually surprising
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Adopt artifact attestations for build provenance on published binaries/images
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
- Enable audit logging and export it to a SIEM for retention and detection
- Add a .github/SECURITY.md with a disclosure contact and process
Permissions involved
The GitHub permissions those incidents abused.