Cloud Native Security 01: The Whole Picture and Where to Start¶
In 2025, attackers got into one developer's laptop at a cryptocurrency company and left with millions of dollars1. They moved from the laptop to a cloud session, then to the build system, a container with too much power, and finally a database password. This series covers the controls that could have stopped them at each step.
It's a rewrite of the CNCF Cloud Native Security Whitepaper2, which was last updated in 2022, with current tools and the attacks we've seen since.
Prefer to watch? This 6-minute video covers the whole post. It's in Thai, and the voice and presenter are AI versions of me.
The Cloud Native Security series
One attack, five chances to stop it¶
"Cloud native" means software that runs in containers, usually on Kubernetes, and gets released often by automated pipelines. Security can't sit at the edge of that. There are too many moving parts behind the firewall, and each one can be the way in.
| What the attackers used | What would have made it harder | Read |
|---|---|---|
| A developer's laptop and cloud session | Short-lived logins with strong MFA | Post 6 |
| The build system's access token | A pipeline that can do only its own job | Post 3 |
| A privileged container | A cluster that refuses privileged containers | Post 4 |
| Free movement inside the cluster | Network rules and alerts on odd behaviour | Post 5 |
| A database password in an environment variable | Passwords kept in a secrets manager | Post 6 |
Security follows the software through four phases¶
The whitepaper splits a workload's life into four phases. The idea is to check it in every phase, because a late check finds problems when they're expensive to fix and an early check can't see what happens in production.
A secret caught while you're typing costs a minute. The same secret found after release means replacing it everywhere and checking who used it.
Five rules behind every control¶
| Rule | What it means | Example |
|---|---|---|
| Least privilege | Give each person and program only the access it needs | A web app that can read one secret |
| No implicit trust | Being inside the network proves nothing | Services prove who they are before they talk |
| Safe by default | The lazy option is the secure one | New namespaces block privileged containers |
| Rebuild, don't patch in place | Change the source and redeploy | Nobody edits a running container |
| Assume something will get in | Limit what an attacker can reach next | Network rules between services |
"Zero trust" is the usual name for the second rule. NIST describes how to apply it to cloud native systems in SP 800-207A3.
Most problems are ordinary mistakes¶
Red Hat asked 600 people about the previous 12 months, and 78% reported a misconfigured service or piece of infrastructure4. It's a vendor survey with a broad definition of "incident", but the pattern matches what OWASP lists as the top Kubernetes risks5:
| OWASP Kubernetes Top 10 (2025) | Where this series covers it |
|---|---|
| K01 Insecure workload configurations | Posts 2, 4 and 5 |
| K02 Overly permissive authorization | Post 4 |
| K03 Secrets management failures | Post 6 |
| K04 Missing cluster-level policy | Post 4 |
| K05 Missing network segmentation | Post 5 |
| K06 Overly exposed components | Posts 4 and 5 |
| K07 Misconfigured or vulnerable cluster components | Post 4 |
| K08 Movement from the cluster to the cloud account | Post 6 |
| K09 Broken authentication | Post 6 |
| K10 Too little logging and monitoring | Post 7 |
Patching matters as well. In Google Cloud's data, software flaws went from 2.9% of first break-ins in early 2025 to 44.5% in the second half1.
Find your own risks in an hour¶
A threat model is a list of what could go wrong with your system and what you'll do about it. Get the people who build and run the system in one room, draw it on a whiteboard, and answer four questions6:
- What are we working on? Include the code repository, the pipeline, the registry and the backups.
- What can go wrong?
- What are we going to do about it?
- Did we do a good job?
The second question is the hard one. STRIDE, a list of six kinds of threat, helps you find answers:
| Threat | A Kubernetes example | A first defence |
|---|---|---|
| Spoofing | Someone logs in with a stolen admin credential | Company login with MFA |
| Tampering | An image is swapped in the registry | Signed images |
| Repudiation | Nobody can tell who deleted the database | Audit logs stored elsewhere |
| Information disclosure | An app sends data to an unknown server | Outgoing network rules |
| Denial of service | One container uses all the memory | Resource limits |
| Elevation of privilege | A container takes over its node | Pod Security rules |
OWASP Threat Dragon is free and draws the diagram with you. When you want a longer list of attacks, use the MITRE ATT&CK matrix for containers7.
Decide who owns what¶
Security gaps often sit between teams. Agree on this table before you buy a tool:
| Team | Owns |
|---|---|
| App team | Its code, its dependencies and its container settings |
| Platform team | Base images, cluster rules, audit logs, patching the cluster |
| Security team | Advice, reviewing exceptions, deciding what counts as evidence |
| Management | Accepting the risk that's left |
Keep one split even in a small company. The person who writes a rule shouldn't be able to approve their own exception to it. Give every exception an owner and an end date.
What's changed since the whitepaper¶
| In 2022 | Today |
|---|---|
| Scanners were the protection | Scanners have been attacked too, including Trivy in March 2026 |
| Custom rules in Kubernetes needed an extra service | Kubernetes has its own policy rules built in |
| Isolating root inside a container was experimental | User namespaces are stable |
| ingress-nginx was the usual front door | It stopped getting security fixes in March 2026 |
| Reporting a flaw was up to you | Makers of software sold in the EU must warn authorities within 24 hours if a flaw is being exploited |
| People and services had access | AI agents do as well, and need the same limits |
On the last row, guidance from CISA and its partners is to start agents on low-risk tasks, give each one as little access as possible, and keep a person in charge of high-risk actions8.
Summary¶
If you only have a week, do these five things. Each one closes a door that attackers really use.
- Turn on phishing-resistant MFA for everyone who can reach the code, the pipeline or the cloud account
- Find out whether you still run ingress-nginx, and plan the replacement
- Scan your repositories for secrets and replace the ones you find
- Block privileged containers in one namespace, then the rest
- Restore one backup, to see if it works
Next: Secure the code
-
Google Cloud, Cloud Threat Horizons Report H1 2026: the UNC4899 case, and how attackers first got into Google Cloud environments in 2025. ↩↩
-
CNCF, Cloud Native Security Whitepaper, v1 (2020) and v2 (2022). CNCF distributes its documentation under CC BY 4.0. This series is a rewrite, with changes, and CNCF hasn't reviewed it. ↩
-
NIST, SP 800-207A, zero trust for cloud native applications. ↩
-
Red Hat, State of Cloud-Native Security, 600 respondents, August to September 2025. ↩
-
OWASP, Kubernetes Top 10, 2025 edition. Names shortened here. ↩
-
OWASP, Threat Modeling Cheat Sheet. ↩
-
MITRE, ATT&CK matrix for containers. ↩
-
CISA and partners, Careful Adoption of Agentic AI Services, May 2026. The specific advice is from Crowell's summary. ↩
Discussion
Have thoughts on this post? Share them below — questions, corrections, or your own experience are all welcome.
