Inspect external CI code and permissions
SEC-007 / v1.1.0 / 2026-10-09
Editorial inspection guidance. Start with read-only permissions; fixes, credential revocation, and production changes follow the owner’s authorization.
Read-only review example
For this kind of environment
A pipeline executes external actions or scripts and can deploy to production.
- First read
- Map the execution definitions to the permissions supplied to each step.
- Where to look
- External code origins and pinned revisions.
- Per-step token permissions and destinations.
- Conditions for running external changes and the deployment approval boundary.
- Evidence to retain
- Record the relationship between external code, reachable assets, and approval-gated actions.
- What this does not establish
- Do not execute unknown external scripts or increase privileges to perform this review.
Applicability
CI executing external actions, orbs, scripts, or build tools.
Read the incidents behind this rule (8)
- Anthropic: evaluation connectivity limits failed
- Axios: malicious releases through publisher compromise
- Codecov: leaked image credential and CI script tampering
- イノベーション: unauthorized access and impact
- Postman: poisoned dependencies exposed CI publishing authority
- Rust: malicious build code in legitimate crate updates
- Trivy: residual credentials used to tamper with releases and actions
- Unit 42: AI-assisted intrusion abusing repository secrets
Where to look first
- CI workflows, download URLs, action references
- Job permissions, secret types, trust boundaries
- Dependency lockfiles, frozen installation, and publishing jobs
Inspection steps
- Inspect mutable references and direct remote-script execution; assess pinning, signatures, and trusted verification.
- Check whether external-code steps receive unnecessary secrets or write permissions.
- Check committed lockfiles and frozen installs, and whether dependency installation can access tokens that publish other packages.
Remediation direction
- Pin reviewed references and review updates; separate jobs by secret requirements.
Evidence required for completion
- Record pinned references, verification evidence, and successful execution under narrowed permissions.
Limits and unverified scope
- Pinning does not prove code is safe. A checksum from the same compromised source is insufficient.
Read this in context
Check what was actually deployed
Connect the running version with the external code executed on its way to deployment.