Security from the first commit
DevSecOps means moving security controls as early as possible: fixing a vulnerability in the pull request is far cheaper than after an audit or, worse, an incident. The goal isn't more paperwork but automated checks that run on every change.
What to scan on every pull request
Your own code with static analysis (SAST), dependencies with software composition analysis (SCA) to catch libraries with known vulnerabilities, leaked secrets in the code, and infrastructure as code to catch public buckets, open ports or disabled encryption before they exist.
The key is defining thresholds: critical findings block the merge; medium ones create a task with a due date.
Images and artifacts
Every container image is scanned before being pushed to ECR and rechecked periodically, because new vulnerabilities appear in old images. Signing images and generating a software bill of materials (SBOM) makes it easy to know what's affected when a major vulnerability is published.
Pipelines without long-lived credentials
Pipelines authenticate to AWS with OIDC and least-privilege IAM roles using temporary credentials. That way there are no access keys stored in the CI system that could leak.
Controls in the AWS account
The pipeline protects what gets deployed; the account needs its own controls: CloudTrail in every region, GuardDuty for threat detection, Security Hub to centralize findings, AWS Config to catch insecure configurations, and organization policies that prevent, for example, disabling audit logs.
Frequently asked questions
Want to apply this at your company?
Book a free 30-minute technical consultation.
