The layers of pipeline security
- SAST (static application security testing) reads source code for insecure patterns such as injection or unsafe deserialization. Fast, runs on every pull request, but needs tuning to avoid false positives.
- SCA (software composition analysis) checks open-source dependencies against vulnerability databases and license rules. It usually finds the most real, fixable issues, since most application code is third-party.
- Secret scanning detects keys and tokens in commits, history and build logs. Prevention (pre-commit and push protection) beats detection after the fact.
- Container and IaC scanning checks images for vulnerable OS packages and Terraform, Helm or Kubernetes files for risky settings such as public buckets or privileged pods.
- DAST (dynamic testing) probes a running application in staging from the outside. Slower, so it usually runs nightly or before release rather than per commit.
No single layer is enough, and running all of them badly is worse than running three of them well.
SBOMs, signing and provenance
An SBOM (software bill of materials) lists the components and versions in a release, in SPDX or CycloneDX format. It lets you answer within minutes whether a newly disclosed vulnerability affects you. Generate it in the pipeline from the built artifact, store it with the artifact, and keep it for every version you support.
Signing proves an artifact came from your pipeline and was not altered. Sigstore's cosign supports keyless signing, where the CI system's OIDC identity is bound to a short-lived certificate and recorded in a public transparency log, so there are no long-lived signing keys to protect.
Provenance records how an artifact was built: source commit, builder and parameters. The SLSA framework defines build levels L0 to L3; version 1.2, approved in November 2025, added a Source track. Level 2 (signed provenance from a hosted build platform) is a realistic first target for most teams.
Policy as code in Kubernetes
Admission controllers check every object before it is stored in the cluster. Kyverno, which reached CNCF graduation in March 2026, writes policies as Kubernetes YAML and can verify image signatures, mutate resources and generate defaults. OPA Gatekeeper uses the Rego language, which is more expressive and reusable outside Kubernetes. Kubernetes also has built-in ValidatingAdmissionPolicy using CEL for simpler rules. Typical first policies: only approved registries, signed images in production, no privileged containers, resource limits required.
Why supply-chain attacks changed priorities
In March 2025 the widely used GitHub Action tj-actions/changed-files was compromised and exposed CI secrets in logs, as described in a CISA alert. From September 2025 the self-spreading Shai-Hulud malware compromised npm packages and harvested developer and CI credentials. Both show that the build system and its dependencies are part of your attack surface. Practical defences: pin actions and dependencies, use lock files, restrict CI token permissions, prefer OIDC to stored cloud keys, and delay adoption of brand-new package versions where your tooling allows it.
Regulation: EU Cyber Resilience Act and CERT-In
The EU Cyber Resilience Act applies to products with digital elements sold in the EU. Since 11 September 2026, manufacturers must report actively exploited vulnerabilities and severe incidents: an early warning within 24 hours, a notification within 72 hours and a final report later. Most other obligations, including secure-by-design requirements, vulnerability handling and an SBOM covering at least top-level dependencies, apply from 11 December 2027. Scope and classification should be confirmed with legal counsel; the engineering work is what we help with.
In India, CERT-In's 2022 directions require reporting specified cyber incidents within six hours, and CERT-In published technical guidelines on SBOMs in October 2024, expanded in 2025 to cover further bills of materials, including for AI systems. The guidelines matter most for government, public sector and essential services suppliers, and increasingly appear in procurement.
Common mistakes
- Blocking builds on every finding from day one, then disabling the scanner.
- Generating SBOMs nobody stores or queries.
- Signing images without verifying signatures at deployment.
- Treating DevSecOps as a tool purchase rather than an ownership and triage process.
Base image choice is covered in Docker & Containerization; general pipeline design in DevOps Consulting & CI/CD. Security for AI systems is covered in AI Security & Red Teaming.