Skip to main content

Security

Security cannot be a final review step before go-live. Modern systems are built from hundreds of open source dependencies, container images and cloud services, and new vulnerabilities are published every day. Software that was secure yesterday can be vulnerable today without a single line of code changing.

Security as a platform capability means two things:

  • Prevent: build security controls into every stage of delivery, so that most problems are caught automatically before they reach production ("shift left").
  • Detect and respond: continuously monitor what is running for new vulnerabilities, misconfigurations and attacks, and route findings to the people who can fix them ("shield right").

The platform team provides the tools, defaults and guardrails. Product teams own the fixing, with the platform making it as easy as possible.

Security across the delivery lifecycle​

Controls are applied at every stage, from the developer's laptop to the running system. Each stage catches what the previous one missed.

StageControlWhat it prevents or detects
CodeStatic analysis (SAST)Injection, insecure crypto, unsafe deserialization in your own code
Secret scanningAPI keys, passwords and tokens committed to repositories
Software Composition Analysis (SCA)Known vulnerabilities in open source dependencies
Infrastructure as Code scanningPublic buckets, open security groups, unencrypted storage in Terraform or Kubernetes manifests
BuildContainer image scanningVulnerable OS packages and libraries in images
SBOM generationLack of visibility: what exactly is inside each artifact
Signing and provenanceTampered or unknown artifacts
RegistryContinuous scanning, approved base imagesImages that become vulnerable after they were built
DeployAdmission policiesUnsigned images, images from unknown registries, containers running as root
RuntimeCloud posture, runtime detection, WAFMisconfigurations, attacks, exposed resources, suspicious behavior

Code: shift left​

The earlier a problem is found, the cheaper it is to fix. Findings in the pull request, while the developer still has the context, get fixed. Findings in a quarterly report usually do not.

CategoryPopular tools
SASTSemgrep, SonarQube, GitHub CodeQL
Secret scanningGitHub secret scanning, Gitleaks
Dependency scanning (SCA) and updatesSnyk, GitHub Dependabot, Renovate
IaC scanningCheckov, Trivy
tip

Automated dependency updates are one of the most effective security controls. Small, frequent upgrades merged automatically when tests pass keep services close to the latest versions, so a critical fix is a minor version bump instead of a risky migration.

Container images and registries​

Containers are the unit of deployment on most platforms, so the container supply chain deserves special attention.

Base images​

Most vulnerabilities in container images come from the base image, not from application code. A full Linux distribution includes hundreds of packages the application never uses, and each of them can carry vulnerabilities.

  • Use minimal base images, such as distroless images or hardened images like Chainguard Containers, which contain only what the application needs to run.
  • Provide approved "golden" base images from the platform team: minimal, patched regularly, scanned, and used by all templates. When a base image is patched, all services are rebuilt on it.
  • Run as non-root, with a read-only file system where possible.

Container registries​

A container registry stores and distributes images. A private registry is a key security control: it is the single place where images are scanned, signed and approved before they can run.

CategoryPopular registries
Cloud provider registriesAmazon ECR, Azure Container Registry, Google Artifact Registry
Self-hosted / universalHarbor (open source, CNCF), JFrog Artifactory
Code-platform registriesGitHub Container Registry
Public registryDocker Hub: source of many base images, but should not be pulled from directly in production

Good registry practices:

  • Scan on push and continuously. Registries such as Amazon ECR (with Amazon Inspector) and Harbor (with Trivy) rescan stored images when new vulnerabilities are published. An image that was clean at build time may be vulnerable a week later.
  • Mirror public images. Pull public images through a cache or proxy in your own registry. This protects against upstream images being deleted or replaced, and against rate limits.
  • Use immutable tags and digests. Prevent tags from being overwritten, and deploy by digest (image@sha256:...) so the image that was scanned is the image that runs.
  • Clean up. Lifecycle rules remove old, unused images, which reduces noise from findings nobody will fix.

SBOM, signing and provenance​

  • Software Bill of Materials (SBOM): a machine-readable list of every component inside an artifact, in CycloneDX or SPDX format, generated for example with Syft. When the next widespread vulnerability is published, SBOMs answer "where do we use this library?" in minutes instead of weeks.
  • Signing: Sigstore Cosign signs images, so the cluster can verify that an image was built by your pipeline and not modified afterwards. Keyless signing uses the pipeline's OIDC identity, with no keys to manage.
  • Provenance: the SLSA framework defines levels of build integrity, from documented builds to hardened, verifiable build platforms.

Example pipeline steps that scan, generate an SBOM and sign an image:

IMAGE=123456789012.dkr.ecr.eu-central-1.amazonaws.com/order-service
DIGEST=$(docker push "$IMAGE:$GIT_SHA" | grep -o 'sha256:[a-f0-9]*' | tail -1)

# Fail the build on fixable critical and high vulnerabilities
trivy image --severity CRITICAL,HIGH --ignore-unfixed --exit-code 1 "$IMAGE@$DIGEST"

# Generate an SBOM
syft "$IMAGE@$DIGEST" -o cyclonedx-json > sbom.cdx.json

# Sign the image and attach the SBOM (keyless, using the pipeline's OIDC identity)
cosign sign --yes "$IMAGE@$DIGEST"
cosign attest --yes --type cyclonedx --predicate sbom.cdx.json "$IMAGE@$DIGEST"

Deploy: admission control​

Scanning is only useful if its results are enforced. In Kubernetes, admission controllers check every workload before it is created and reject those that break the rules. Popular policy engines are Kyverno and OPA Gatekeeper.

Typical policies:

  • images only from the organization's registry
  • only signed images, signed by the organization's pipeline
  • no containers running as root or in privileged mode
  • resource limits and required labels (owner, service) on every workload

Example Kyverno policy that allows only images from the company registry:

restrict-image-registries.yaml
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: restrict-image-registries
spec:
background: true
rules:
- name: only-company-registry
match:
any:
- resources:
kinds: [Pod]
validate:
failureAction: Enforce
message: Images must come from the company registry.
pattern:
spec:
containers:
- image: "123456789012.dkr.ecr.eu-central-1.amazonaws.com/*"

Runtime: monitoring what is running​

Cloud security platforms (CNAPP)​

A Cloud-Native Application Protection Platform (CNAPP) combines several earlier tool categories into one view of cloud risk:

CapabilityWhat it does
CSPM (Cloud Security Posture Management)Finds misconfigurations in cloud accounts: public storage, overly broad IAM permissions, disabled logging, compared against benchmarks such as CIS
CWPP (Cloud Workload Protection)Finds vulnerabilities and malware in virtual machines, containers and serverless functions
CIEM (Cloud Infrastructure Entitlement Management)Finds excessive and unused permissions of users and workloads
DSPM (Data Security Posture Management)Finds sensitive data and who can access it
Code to cloudLinks runtime findings back to the repository, image and team that produced them

Wiz is one of the best-known CNAPP platforms and a good example of the approach. Its main ideas:

  • Agentless scanning. Wiz connects to cloud accounts through their APIs and scans disk snapshots of workloads, so it covers the whole environment within hours, without installing agents everywhere.
  • Security graph. Resources, identities, network exposure, vulnerabilities and data are modeled as one graph.
  • Toxic combinations. Instead of listing thousands of vulnerabilities, it highlights the dangerous combinations, for example a virtual machine that is exposed to the internet, has a critical exploitable vulnerability, and has an IAM role with access to sensitive data. Fixing that one path matters more than fixing a hundred isolated findings.

Wiz was acquired by Google in 2026 and continues as a multi-cloud product within Google Cloud.

Other popular options:

CategoryPlatforms
CNAPP vendorsWiz, CrowdStrike Falcon Cloud Security, Orca Security, Sysdig
Cloud provider servicesMicrosoft Defender for Cloud, AWS: Security Hub, Inspector and GuardDuty
Developer security platformsSnyk, Semgrep

Runtime threat detection​

Posture tools find weaknesses. Runtime detection finds attacks in progress: a shell started inside a container, unexpected network connections, access to sensitive files, or cryptocurrency mining. Examples are Falco (open source, CNCF) and Amazon GuardDuty. Their alerts should flow into the security team's SIEM and the central observability platform.

Protecting the edge​

  • Web Application Firewall (WAF), such as AWS WAF or Cloudflare WAF, blocks common attacks and bots before they reach applications, and can provide a temporary "virtual patch" while a fix is being deployed.
  • Dynamic testing (DAST), for example with ZAP, attacks running applications in test environments the way an attacker would.
  • Penetration tests and bug bounties find what automated tools cannot, such as flaws in business logic.

Vulnerability management​

Tools produce findings. Vulnerability management is the process that turns findings into fixes. Without it, teams drown in thousands of alerts and fix none of the important ones.

Prioritize by real risk​

Not every "critical" vulnerability is critical for you. Prioritize using several signals, not the severity score alone:

SignalQuestionSource
SeverityHow bad is it in theory?CVSS score, from CVE records and the NVD
Exploited in the wildAre attackers actively using it?CISA Known Exploited Vulnerabilities (KEV)
Exploit likelihoodHow likely is exploitation in the next 30 days?EPSS
ReachabilityDoes our code actually call the vulnerable function?SCA tools with reachability analysis
ExposureIs the workload reachable from the internet?CNAPP, network configuration
Business impactHow critical is the system, and what data does it hold?Systems inventory: criticality, data classification

A vulnerability that is exploited in the wild, internet-facing and in a Tier 1 system must be fixed today. The same CVE in an internal batch job that never calls the vulnerable code can wait for the next regular update.

Route findings to owners​

Findings are useless if they land in a security team's backlog that nobody reads. The platform should route each finding automatically to the owning team, using the ownership data in the Software Catalog: from the vulnerable image, to the service, to the team. Consistent tags on cloud resources (set by provisioning) make the same possible for cloud misconfigurations.

Agree on remediation times​

An example of service levels for fixing vulnerabilities, adjusted to each organization's risk appetite:

PriorityExample criteriaFix within
EmergencyKnown exploited (KEV), internet-facing48 hours
CriticalCritical severity, exploitable, exposed7 days
HighHigh severity, or critical in an internal system30 days
Medium / lowEverything elseNext regular update

Exceptions are allowed, but they are documented, approved by the system owner, and have an expiry date. Track and report the trend: number of open findings past their deadline, per team and per system.

Standards and frameworks​

FrameworkUse it for
OWASP Top 10The most critical web application security risks; the baseline for secure coding training
OWASP SAMMAssessing and improving the maturity of the software security program
NIST SP 800-218 (SSDF)Secure software development practices, increasingly required by customers and regulators
SLSASupply chain integrity levels for builds and artifacts
CIS BenchmarksSecure configuration of operating systems, Kubernetes and cloud accounts

Vulnerability data comes from CVE, the NVD, and OSV for open source ecosystems.

Security as a platform capability​

Following the platform mindset, the platform makes the secure way the default way:

  • Secure golden paths. Templates come with hardened base images, security scanning in the pipeline, signing, and secure infrastructure modules. A new service is secure by default without extra work.
  • One registry, one pipeline standard. All images go through the organization's registry and the standard scanning and signing steps. Admission policies reject anything else.
  • Continuous monitoring. A CNAPP or cloud-native security services cover all cloud accounts, so new vulnerabilities and misconfigurations are found in running systems, not only at build time.
  • Findings to owners, with context. Prioritized by real risk, routed to the owning team, and tracked against agreed remediation times.
  • Guardrails over gates. Block only what is clearly dangerous (critical exploitable vulnerabilities, unsigned images, public data). For everything else, give teams visibility and time to fix, so security does not become the bottleneck that teams try to work around.
  • Identity first. Many breaches start with stolen credentials, not with vulnerabilities. Security works together with identity and access management: no long-lived keys, least privilege, and MFA everywhere.