Skill 5.2.2

Implement security scanning in pipelines to assess vulnerabilities and sign artifacts (for example, by using Amazon Inspector, Amazon ECR image scanning).

Key Concepts

Scanning stages: static analysis and secret detection on source, dependency scanning of software bills of materials (SBOMs), infrastructure as code scanning, and image scanning. Amazon Inspector scans images, packages and code: the Inspector SBOM generator and CI/CD integration scan images inside CodeBuild before push, Inspector code security scans repositories, and ECR enhanced scanning rescans images continuously after push. The pipeline fails when findings exceed a severity threshold, and continuous scanning catches vulnerabilities published later.

Signing: AWS Signer signs Lambda code packages (Lambda code signing configurations reject unsigned code) and, with Notation, container images; ECR managed signing can sign images automatically on push. Deployment targets verify signatures, for example with admission controllers in EKS, so only images signed by the trusted pipeline run. Separate build and deploy roles, immutable tags and promotion of the same signed artifact complete the chain of custody.