The core is now software on Kubernetes — secure it like it
"The 5G core isn't a rack of telecom appliances anymore. It's containers on Kubernetes — and it inherits every cloud-native attack the IT world spent a decade learning to fear."
— THE CLOUD-NATIVE REALITY
Modern 5G cores are Cloud-Native Functions (CNFs): containerized software orchestrated by Kubernetes, often on shared or public cloud. This unlocks elasticity and automation — and adds a whole layer of attack surface beneath the 3GPP one. This chapter covers container and image security, Kubernetes hardening for telco, service mesh, secrets management (including where K lives), CI/CD and supply chain, and multi-tenancy.
🎯 Learning objectives
Map the cloud-native 5G stack and its layers of trust.
Secure container images and the supply chain.
Harden Kubernetes for a telco core.
Manage secrets — including the long-term key K.
Address multi-tenancy and NFVI threats.
📘 Standards reference box — Chapter 29
Reference
Title
Note
TS 33.501 / 33.848
5G security / virtualization security study
Rel-18 edition
CIS / NIST
Kubernetes & container hardening benchmarks
current
GSMA / NESAS
NFVI & cloud security guidance
current
Checked June 2026 — verify against the latest 3GPP version.
29.1 The Cloud-Native 5G Stack
FIGURE 29.1The Cloud-Native 5G Stack — Layers of Trust
Purpose: the layered reality. This book secured the top layer; the four cloud layers beneath it are new attack surface that can undermine the 3GPP security above.
FIGURE 29.2Container Image Supply Chain for CNFs
Purpose: the supply chain as a pipeline to secure. Each stage is a point an attacker can poison; signing, scanning, SBOM, and deploy-time verification close it.
FIGURE 29.3Kubernetes Hardening Map for Telco Clusters
Purpose: the K8s hardening checklist (CIS-aligned). A telco core on Kubernetes needs every one of these — RBAC, network policy, no privileged pods, secrets encryption, admission control, pod security.
FIGURE 29.4Pod / Namespace Isolation for Network Functions
Purpose: map cloud isolation to 3GPP blast radius. The crown-jewel NFs (Chapter 3) get the strictest namespace isolation and HSM backing at the K8s layer too.
FIGURE 29.5Service Mesh and SBA mTLS — Sidecars vs Native
Purpose: two ways to deliver SBA mTLS. A service mesh centralizes it (but becomes critical itself); native TLS keeps 3GPP behavior with per-NF certs (Chapter 10). Many operators blend both.
FIGURE 29.6Secrets Management — Keys and Certs
Purpose: secrets are where cloud-native cores most often fail. Env-var/file secrets are exfiltrated with one compromise; vault + HSM keeps secrets out of the blast radius.
FIGURE 29.7Where the Long-Term Key K Lives in a Cloud Core
Purpose: the most important cloud-native rule. The long-term key K must live in an HSM, not a container — a pod is far too exposed to hold the master secret (Chapter 11).
FIGURE 29.8CI/CD Pipeline Security Gates
Purpose: the pipeline is production-critical. Security gates at each CI/CD stage stop a poisoned commit or dependency from reaching live NFs — the supply-chain defense (Chapter 24).
FIGURE 29.9Multi-Tenancy Risks on Shared Clusters
Purpose: the shared-cluster trade-off. Co-locating tenants/slices on shared nodes risks cross-tenant escape; crown-jewel NFs (UDM) often warrant dedicated nodes or clusters.
FIGURE 29.10NFVI / Host Escape Threat Path
Purpose: the worst-case cloud path — escape to host to crown jewels. Defense in depth (kernel hardening, no privileged pods, runtime security) breaks the chain before it reaches the UDM.
FIGURE 29.11Cloud-Native Observability for Security
Purpose: unify the two telemetry planes. A cloud-native core attack may appear only in container/K8s logs, not 3GPP signaling — the SOC (Chapter 27) needs both.
FIGURE 29.12Cloud-Native 5G Hardening Checklist
Purpose: the cloud-native security job on one card. These eight controls protect the four layers beneath 3GPP security — and feed the audit (Chapter 28).
29.2 The Practical Operator View
Keep K in an HSM, never a container — the one non-negotiable cloud-native rule.
Sign, scan, SBOM, and verify-at-deploy every image; gate the CI/CD pipeline.
Harden Kubernetes (RBAC, network policy, no privileged pods, secrets encryption) and align isolation to 3GPP blast radius.
Dedicate nodes/clusters for crown-jewel NFs (UDM, NRF).
Unify cloud + 3GPP telemetry to the SOC — attacks may show only in one plane.
29.3 Threats and Mitigations
Threat
Vector
Defense
Supply-chain backdoor
poisoned image/dependency
sign/scan/SBOM, deploy verification
Container escape → host
app/kernel vuln
no privileged pods, kernel hardening, runtime sec
Secrets exfiltration
env-var/file secrets
vault, HSM for K, short-lived tokens
K8s privilege abuse
weak RBAC
least privilege, admission control
Cross-tenant escape
shared nodes
node/cluster dedication for sensitive NFs
Pipeline compromise
CI/CD as attack path
security gates, signed artifacts
29.4 Terminology
Term
Meaning
CNF
Cloud-Native Function — containerized NF
NFVI
Network Function Virtualization Infrastructure (the platform)
Real network example. A cloud-native 5G core stored its NFs' TLS private keys and OAuth signing material as Kubernetes secrets mounted as files, base64-encoded but unencrypted at rest, and the long-term key K's operator constants were in an env var on the ARPF pod "for performance." A red team that obtained read access to one node's filesystem (via a container escape from an unrelated, vulnerable app pod sharing the node) recovered the NF keys and the ARPF constants — effectively the core's crown jewels — without ever touching a 3GPP interface. The 3GPP security was flawless; the cloud layer beneath it gave everything away. Fixes: secrets moved to a vault with encryption at rest and short-lived issuance, K and constants moved into an HSM, crown-jewel NFs given dedicated nodes, and no-privileged-pod + kernel-hardening policies to break the escape path. In a cloud-native core, the platform is the new perimeter — and the master secret belongs in hardware.
★ Chapter Summary
The 5G core is CNFs on Kubernetes; 3GPP security sits atop four cloud layers (containers, K8s, host, NFVI) that are new attack surface.
Secure the image supply chain (sign/scan/SBOM/verify) and the CI/CD pipeline (gates).
Harden Kubernetes and align isolation to 3GPP blast radius; dedicate nodes/clusters for crown jewels.
Manage secrets in a vault; keep K in an HSM, never a container — the non-negotiable rule.
Unify cloud + 3GPP telemetry to the SOC; defend the container-escape-to-host path.
? Review Questions
What four cloud layers sit beneath 3GPP security, and why do they matter?
How do you secure the CNF image supply chain end to end?
Name five Kubernetes hardening controls for a telco core.
Where must the long-term key K live in a cloud core, and why?
Why is the CI/CD pipeline part of the attack surface?
Describe the container-escape-to-crown-jewel path and its defenses.
Why must the SOC unify cloud and 3GPP telemetry?
A core's 3GPP security is perfect but its keys are stolen via a node compromise. What went wrong and how do you fix it?
🧪 Mini lab — find the secrets
In a lab Kubernetes cluster running a CNF (or Open5GS containerized): (1) Inspect how secrets are stored — env vars? mounted files? Kubernetes secrets (base64 ≠ encrypted)? (2) Determine whether a read of one pod/node filesystem would expose another NF's keys. (3) Move one secret into a vault with encryption-at-rest and short-lived issuance; confirm the pod can no longer leak it at rest. (4) Identify where K (or its lab equivalent) lives and argue why it belongs in an HSM. (5) Check for privileged pods and a missing no-escape policy. You've now audited the platform layer that this book's 3GPP security depends on — and that attackers increasingly target instead of the protocols.