← 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
2025
- GhostAction September 2025
2023
- Dependabot impersonation July 2023
Attack path techniques used
- Push directly, without review (Submit malicious code)
- Add a workflow that dumps secrets (Steal CI secrets and tokens)
- Search the repository and its history for keys (Steal CI secrets and tokens)
- 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 of the last push + required status checks
- Rulesets applied: push restriction, tag protection, sensitive file-path protection
- Require the committer to match the pusher on sensitive repos
- 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
- Put production secrets in environments with required reviewers
- Secret scanning and push protection enabled
- 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
- Limit where workflow jobs can connect to, starting with release and deploy jobs
Permissions involved
The GitHub permissions those incidents abused.