Skip to content

Cloud-Native Security Practices: 12 Controls to Secure Containers and Kubernetes From Code to Runtime

Almost every team running containers had a security incident last year. These 12 controls, ordered from code to runtime, close the gaps that matter most first.

Cloud-native security practices shown as four protected stages, develop, distribute, deploy and runtime, around a Kubernetes cluster

Your team ships to Kubernetes ten times a day. Images come from public registries, manifests are copied from old projects, and the only security check is a scanner that produces 400 findings nobody reads. This guide sets out cloud-native security practices for the platform engineers and DevOps leads at SaaS companies who run containers on a public cloud without a large security team behind them.

The short answer: cloud-native security means protecting the whole lifecycle, not just the cluster. You secure the code, the build pipeline that turns it into images, the deployment that admits those images, and the runtime where they execute. Below are 12 controls in that order, each tied to published guidance from the CNCF, NSA and CISA, Kubernetes and NIST, plus a 90-day plan to roll them out.

Why Cloud-Native Security Practices Matter Now

Kubernetes is now mainstream infrastructure. The CNCF Annual Cloud Native Survey, released in January 2026, found 82% of container users running Kubernetes in production in 2025, up from 66% in 2023, and 98% of organisations reporting some cloud native adoption.

Security has not kept pace. Red Hat’s State of Cloud-Native Security 2026 surveyed 600 IT professionals and found 97% of organisations had at least one cloud-native security incident in the past year. 78% reported misconfigurations, and 74% slowed or delayed application deployments in the last 12 months because of security concerns.

That last number is the real cost. Security problems found late do not just create risk; they stall releases. The practices below move checks earlier, where they are cheaper to fix.

Bar chart from Red Hat's 2026 survey: 97% had a cloud-native security incident, 78% misconfigurations, 74% delayed deployments, 49% use image signing
Incidents are nearly universal; image signing is still used by under half. Source: Red Hat.

The Four Phases of the Cloud-Native Lifecycle

The CNCF Cloud Native Security Whitepaper (version 2, 2022) organises security into four phases: Develop, Distribute, Deploy and Runtime. It is the clearest map for deciding where each control belongs, and the 12 practices below follow it.

Phase What you protect Practices in this guide
Develop Code, infrastructure as code, manifests 1 to 3
Distribute CI pipeline, images, registries 4 to 6
Deploy What is allowed into the cluster 7 to 9
Runtime Running workloads, network, secrets, logs 10 to 12
Four-phase cloud-native security lifecycle, develop, distribute, deploy and runtime, with three key controls listed under each phase
Twelve controls mapped to the CNCF lifecycle. Source: CNCF Cloud Native Security Whitepaper v2.

Develop: Catch Problems Before They Exist

1. Scan infrastructure as code and manifests at the pull request

The CNCF whitepaper recommends scanning infrastructure as code and application manifests early, in the IDE or at pull requests. A Terraform file that opens a database to the internet is a one-line fix in review and an incident in production. Run a policy scanner on every pull request and fail the check on high-severity findings.

2. Require peer review for code and infrastructure changes

No change to application code, Helm charts or cluster configuration should merge without a second person reviewing it. Protect the main branch so this cannot be bypassed, including by administrators.

3. Separate development, test and production

Use separate accounts or projects and separate clusters for each environment, as the CNCF guidance advises. A leaked developer credential should never reach production data.

Distribute: Secure the Pipeline and the Images

4. Scan images in CI and keep scanning after release

The first recommendation in the NSA and CISA Kubernetes Hardening Guidance (version 1.2, August 2022) is to scan containers and Pods for vulnerabilities or misconfigurations. Scan in CI to block bad images, then rescan images in your registry on a schedule, because new vulnerabilities are published against old images every day.

5. Sign images and generate SBOMs

Sign every image you build and verify the signature before it runs. Red Hat found only 49% of organisations currently use container image signing and verification, so this is one of the clearest gaps to close. Generate a software bill of materials (SBOM) for each image so you can answer which services are affected the day a new vulnerability lands.

6. Harden the build itself

Attackers increasingly target the pipeline rather than the app. The SLSA framework gives a ladder to climb: at Build L2, builds run on a hosted platform that generates and signs provenance; at Build L3, the build platform is hardened so forging provenance would need a vulnerability most attackers could not exploit. Isolate CI runners and keep build credentials short-lived.

Tip

Start small: pin base images by digest rather than by tag such as latest. A tag can be moved to a different image; a digest cannot.

Deploy: Control What Gets Into the Cluster

7. Enforce Pod Security Standards

Kubernetes defines three Pod Security Standards: Privileged, an unrestricted policy that allows known privilege escalations; Baseline, which prevents known privilege escalations while allowing the default Pod configuration; and Restricted, which follows current Pod hardening best practices. Label every application namespace to enforce at least Baseline, and Restricted wherever workloads allow.

Comparison of the three Kubernetes Pod Security Standards profiles: Privileged unrestricted, Baseline blocks known escalations, Restricted follows hardening best practice
Aim for Restricted on application namespaces. Source: Kubernetes documentation.

8. Verify signatures and policies at admission

The CNCF whitepaper describes pre-flight checks before deployment: confirm image signatures and integrity, image and runtime policies, and network and workload policies. Use an admission controller to reject unsigned images, images from unapproved registries and Pods that request privileges they do not need.

9. Apply least-privilege RBAC

NSA and CISA recommend strong authentication and authorization to limit both user and administrator access. Give each service account only the permissions it uses, avoid cluster-admin bindings for people, and review role bindings every quarter.

Runtime: Contain and Detect

10. Segment the network

The Kubernetes network policy documentation states that, by default, a Pod is non-isolated: all inbound and outbound connections are allowed. The NSA and CISA guidance advises network separation to control the damage a compromise can cause, and firewalls to limit unneeded connectivity. Start with a default-deny NetworkPolicy per namespace, then allow only the flows each service needs.

11. Protect secrets properly

The Kubernetes Secrets good practices page warns that Secret objects are stored unencrypted in etcd by default unless you configure encryption at rest, and that granting list access to Secrets implicitly lets the subject read their contents. Turn on encryption at rest (or confirm your managed service does), restrict get, watch and list on Secrets, and inject credentials at runtime from a secrets manager rather than baking them into images.

12. Monitor, log and run with least privilege

Run containers as non-root with read-only file systems where possible, set resource limits, and forward audit logs somewhere cluster administrators cannot tamper with, as the CNCF whitepaper recommends. Watch for unexpected processes, shells and network connections inside containers.

Warning

A clean image scan does not mean a safe workload. Misconfiguration, over-broad permissions and exposed secrets cause many incidents, and none of them show up as a CVE.

A 90-Day Plan to Roll Out These Practices

You will not implement all 12 cloud-native security practices at once. This order targets the highest-risk gaps first while keeping releases moving.

Days 1 to 30: Visibility and quick wins

  • Inventory clusters, namespaces, registries and CI pipelines.
  • Turn on image scanning in CI and in the registry; triage only critical and high findings first.
  • Apply Pod Security Admission in warn and audit mode to see what would break.
  • Confirm Secret encryption at rest and remove cluster-admin from human users.

Days 31 to 60: Enforce at the gate

  • Move Pod Security Standards to enforce Baseline, and Restricted for new namespaces.
  • Add infrastructure-as-code scanning to pull requests.
  • Start signing images and generating SBOMs in the pipeline.
  • Add default-deny network policies to one non-critical namespace and expand.

Days 61 to 90: Harden and detect

  • Reject unsigned images at admission.
  • Move secrets to a secrets manager with runtime injection.
  • Ship audit logs off-cluster and add runtime alerts for shells and unexpected network calls.
  • Review RBAC and network policies, then schedule the review quarterly.
Three-stage 90-day rollout plan for cloud-native security: visibility in days 1-30, enforcement in days 31-60, hardening and detection in days 61-90
Roll out in stages so security speeds releases up instead of blocking them.

Key Takeaways

Secure the whole lifecycle: develop, distribute, deploy and runtime.

Misconfiguration and weak permissions cause as much trouble as vulnerabilities.

Image signing, admission control and Pod Security Standards are high-value, low-cost controls.

Roll out in 30-day stages: see, enforce, then harden.

Common Mistakes to Avoid

  • Treating the scanner as the strategy. Hundreds of unprioritised findings train teams to ignore alerts. Fix critical issues in internet-facing workloads first.
  • Assuming the cloud provider secures the cluster. Managed Kubernetes covers the control plane; your workloads, RBAC, network policies and images are still your job.
  • Turning on enforcement without a warning period. Run policies in audit or warn mode first so you do not break production on day one.
  • Ignoring AI workloads. Red Hat found 59% of organisations lack documented AI usage policies. Our article on why AI transformation is a problem of governance covers how to set those rules.

If you are building these skills for your career, cloud and container security are among the fastest-moving specialisms; see our guide to cyber security jobs for the roles that use them. For deeper detail on container risks, NIST’s SP 800-190 Application Container Security Guide remains a solid reference.

Conclusion: Shift Checks Left, Keep Watching Right

Good cloud-native security practices are not a product you buy. They are a set of habits: check code and manifests before merge, sign and scan what you build, admit only what meets policy, and run every workload with the least privilege it needs while watching what it does. Start with the 30-day quick wins, and within a quarter you will have fewer incidents and fewer releases held up by security surprises.

Sources

Frequently Asked Questions

What are cloud-native security practices?

They are the controls that protect applications built on containers, Kubernetes and cloud services across the whole lifecycle: code, build pipeline, deployment and runtime. The CNCF groups them into Develop, Distribute, Deploy and Runtime phases.

What is the most important Kubernetes security practice?

There is no single control, but least privilege comes closest. Running Pods under the Restricted Pod Security Standard, limiting RBAC and blocking unneeded network traffic together shrink what an attacker can do after a compromise.

Is image scanning enough to secure containers?

No. Scanning finds known vulnerabilities, but many incidents come from misconfigurations, exposed secrets and excessive permissions. Combine scanning with admission policies, network segmentation and runtime monitoring.

Are Kubernetes Secrets encrypted by default?

The Kubernetes documentation says Secret objects are stored unencrypted in etcd by default unless encryption at rest is configured. Managed services may handle this differently, so check your provider’s settings and enable it where needed.

What is SLSA and do I need it?

SLSA is a framework of build security levels that helps prove how software was built and that it was not tampered with. Most teams can reach Build L2 by using a hosted CI platform that generates signed provenance.

How long does it take to implement cloud-native security?

Basic visibility and quick wins take about a month. A practical target is a 90-day plan that moves from visibility to enforcement to runtime detection, then continues with quarterly reviews.

Written by

Asad Ullah Hussnain

Join the discussion

Your email address will not be published. Required fields are marked *

Newsletter

Stay ahead of the tech curve

One email a week with the best new guides on AI, cloud, cyber security and crypto. No spam, unsubscribe anytime.

account android arrow-alt-circle-down arrow-alt-circle-left arrow-alt-circle-right arrow-alt-circle-up arrow-down arrow-left arrow-right arrow-up author bars behance blogger bluesky buffer caret-down caret-left caret-right caret-square-down caret-square-left caret-square-right caret-square-up caret-up cart-menu-1 cart-menu-2 cart-menu-3 cart-menu-4 categories chevron-down chevron-left chevron-right chevron-up clock close comments cookies copyright coupon-discount date-modified date-published discord double-arrows-down double-arrows-left double-arrows-right double-arrows-up dribbble envelope-open envelope eye facebook fax flickr foursquare github gmail google-drive grid-view hashtag hollow-ring homepage instagram ios level-down-alt level-up-alt line link linkedin list-view login logout long-arrow-alt-down long-arrow-alt-left long-arrow-alt-right long-arrow-alt-up mastodonmedium messenger mobile-menu mobile phone pinterest place qq quote-left quote-right quotes reading-time-hourglass reading-time-stopwatch reddit rss scroll-to-top search shazam shopping-bag shopping-cart side-panel-opening-2-left side-panel-opening-2-right side-panel-opening-left side-panel-opening-right skype slack small-arrow-down small-arrow-left small-arrow-right small-arrow-up sms snapchat soundcloud spinner spotify stackoverflow sync telegram threadstiktok times-circle tinder trello tripadvisor tumblr twitch twitter viber vimeo vine vkontakte website wechat whatsapp windows wishlist xing yelp youtube zoom