Cloud & Container Security · intermediate · ~11 min
Explain CI/CD and dependency/supply-chain risks and the defenses (SBOM, pinning).
CI/CD pipelines run with powerful credentials, so secrets-in-pipelines, over-privileged tokens, poisoned workflow execution, and unpinned actions/images are risks. The software supply chain adds vulnerable/malicious dependencies and compromised builds. Defenses: pin+verify, least-privilege tokens, dependency scanning, SBOM, artifact signing.
CI/CD holds the keys to production and the supply chain can inject code into everything you ship — both are high-leverage targets (SolarWinds-class impact). Pinning, least-privilege tokens, SCA, and SBOMs are the practical, increasingly-expected defenses.
CI/CD risks. Pipeline secrets, over-privileged tokens, poisoned execution, unpinned actions. Supply chain. Vulnerable deps (SCA), malicious packages (typosquat/hijack), compromised builds. Defenses. Pin+verify by digest, least-privilege tokens, isolate fork workflows, dependency scanning, SBOM, signing.
Modern software is built and shipped by automated pipelines pulling in huge amounts of third-party code — a large, often-overlooked attack surface.
Pipelines (GitHub Actions, GitLab CI, Jenkins) run code with powerful credentials (deploy keys, cloud roles, registry access). Risks:
GITHUB_TOKEN with write/admin scope).uses: someaction@main runs whatever that tag points to later.Your app depends on hundreds of transitive dependencies. Risks:
CI/CD and dependencies are a major modern attack surface: pipelines wield production credentials and apps pull in vast third-party code. Defend with pinned/verified components, least-privilege pipeline tokens, dependency scanning, SBOMs, and artifact signing.