Container Security Checklist: A Practical Guide for Security and Compliance Teams
Photo by Teng Yuhong on Unsplash
A container security checklist only helps if each line is something you can prove. Scanning the image, clearing the critical CVEs, and calling the workload done is how teams end up with a clean bill of materials and a wide-open cluster. This is the working list for security and compliance teams: image and build, registry, runtime, Kubernetes, secrets, network, logging, and the policy that makes the list stick.
Updated November 2026. The checks below are the ones that fail open in real clusters. Floating tags. Root containers. A service account that can read every Secret. A network that allows whatever the cluster allows by default.
Containers are not a security boundary by themselves. They share the host kernel. A kernel bug, or a container-escape bug in the runtime (the class of flaws that have turned up in runc), is a host incident. Rescanning the image does not patch the node. A clean image still fails if it runs as a privileged pod, mounts the runtime socket, or can talk to everything else you operate. The useful question is not only "is the image clean?" It is "what is this container allowed to do, and who can prove it?"
Container security checklist
Work top to bottom. Tick an item only when you can show the evidence, not when someone says it is handled.
Image and build
The container image security checklist: what has to be true before an image is allowed to ship.
Pin the base image. Build from a specific version or a digest. Do not ship production images from latest or any other floating tag.
Run as a non-root user. Set USER in the image. Do not leave root as the default and hope the cluster remembers to drop it.
Use a multi-stage build. Compilers, package managers, and test tools stay in the build stage. They do not belong in the image you run.
Keep secrets out of the build. Do not pass credentials as build arguments or copy a .env file into a layer. Image history keeps both.
Scan in CI and block on unaccepted criticals. Fail the push when a critical vulnerability has no recorded exception. A report nobody acts on is not a gate.
Publish an SBOM with the digest. Produce SPDX or CycloneDX for the image you ship, and store it with that digest in the registry or the build record.
Registry
Where the image lives, who can change it, and how you know the copy you pulled is the copy you built.
Deploy from a registry you control. Production pulls come from your private registry. They do not pull straight from a public registry at deploy time.
Require authentication to push and to pull. Grant push only to the CI identity that builds that image. Require authentication for pulls from your registry.
Sign images and verify the signature. Cosign or Notation is enough. Admission has to reject an image whose signature does not check. A signature you never verify is not a control.
Scan again after the build. New vulnerabilities show up in old images. Scan the registry on a schedule, not only the day the image was built.
Track the digest that is running. A mutable tag is not an inventory. Record the digest deployed to each environment.
Runtime
A clean image can still be a dangerous process. These are the limits on what that process is allowed to do.
Start with a read-only root filesystem. Mount an explicit writable volume only where the process must write, such as /tmp.
Drop Linux capabilities. Drop all capabilities and add back only what the process needs. Do not leave NET_RAW or SYS_ADMIN in place by default.
Apply a seccomp profile. RuntimeDefault is the floor. A custom profile is better when you know the syscalls the process actually uses.
Forbid privileged containers and host namespaces. No privileged pods, and no host PID, host network, or host IPC, unless a named exception is still in date.
Forbid dangerous mounts. Block hostPath mounts of the host root, /etc, and the container runtime socket. A mounted socket is a breakout.
Set CPU and memory limits. Every workload has requests and limits so one container cannot exhaust the node.
Watch what the process does. Alert on a shell, a package install, or an outbound connection the image should never make.
Orchestration and Kubernetes
The cluster is a second control plane. Pod Security Standards replaced PodSecurityPolicy, which Kubernetes removed in 1.25.
Protect the API server. Do not leave it open to anonymous access. Prefer a private endpoint, and use short-lived credentials for people.
Keep RBAC narrow. Workload service accounts are not cluster-admin. Human access is separate from the identity a pod uses.
Do not mount the default service account token. Set automountServiceAccountToken to false unless that pod calls the Kubernetes API.
Enforce Pod Security Standards. Restricted for application namespaces. Baseline only where Restricted cannot run. Anything looser needs an exception.
Reject bad pods at admission. Block privileged pods, host namespaces, untrusted registries, and unsigned images in the API server, not in next week's report.
Separate namespaces. Split by environment and by sensitivity. A shared default namespace is not a boundary.
Encrypt Secrets at rest and limit who can read them. Confirm encryption at rest is on for your cluster, and treat get on Secrets as a privileged action.
Patch the nodes. Containers share the node kernel. A kernel or runtime fix, including a container-escape bug in runc, is a node patch, not an image rescan.
Secrets
Credentials are not image layers, and they are not environment files committed next to the Dockerfile.
Keep secrets out of images, Dockerfiles, and Git. Search history as well as the current tree. A secret in an old commit or an old layer is still a secret.
Inject secrets at runtime. Use Kubernetes Secrets with encryption at rest, or an external secret manager. The image stays free of credentials.
Prefer workload identity. Use the cloud's workload identity for the pod instead of a long-lived access key mounted into the filesystem.
Scope each secret to one workload. Do not mount one shared bundle of every key into every pod. Rotate credentials, and revoke them when a pipeline or a person leaves.
Treat a leaked build log as a compromise. Scan source and CI logs for tokens. If a secret was printed, rotate it. Do not mark the finding as informational.
Network
Kubernetes does not default-deny. A pod with no NetworkPolicy can reach whatever the network already allows.
Use a policy the cluster actually enforces. NetworkPolicy for ingress and egress, or an equivalent control your CNI applies. A policy your plugin ignores is documentation.
Default-deny the namespace. Select the pods and allow nothing until you add rules. Isolation starts when a policy selects the pod, not when you meant to write one.
Allow only the peers and ports you need. Name ingress sources and egress destinations. Wide-open egress is how a foothold becomes a callback.
Keep admin paths off the application network. The API server, registry administration, and node access do not sit on the same flat network as ordinary pods.
Test the policy with a fresh pod. A new pod with no explicit allow should fail to reach anything sensitive. If it can, you do not have default-deny.
Logging and monitoring
You need a record the workload cannot edit, tied to the digest that ran, not only the tag you remember.
Ship stdout and stderr off the node. Send container logs to a store the workload cannot delete or rewrite.
Audit sensitive API calls. Log who created a privileged pod, who read a Secret, and who changed RBAC. Keep those audit logs outside the cluster's admin path.
Alert on the breaks that matter. Privileged pods, host mounts, unsigned images, and an interactive shell in production should page someone.
Log the digest. The event should say which image digest ran. A tag can move out from under the investigation.
Keep logs long enough, and lock down delete. Retention has to cover an investigation. The people who run the workloads should not be able to wipe the record.
Policy and governance
The list above is a control only where a policy names it, an owner owns it, and a pipeline or the API server enforces it.
Publish a container security policy with a named owner. The checks you enforce should be the checks the policy requires. See what that document needs to contain below.
Encode the blocking rules. Non-root, no privileged, signed images, approved registries, and default-deny network belong in CI or admission, not only in a PDF.
Record exceptions with an expiry. Each exception has a reason, an owner, a compensating control, and a date it ends. An expired exception reverts to the rule.
Review the policy on a schedule. At least once a year, when the platform changes, and after any container-related incident.
Give security a view of what is deployed. If only the platform team can see the cluster, you cannot assure it. Read access to workloads, images, and exceptions is part of the control.
Stay In Control?
ComplyIT's weekly GRC brief, every Monday morning.
Free. One email a week. Unsubscribe in one click. Privacy Policy. Powered by EmailOctopus.
What a container security policy should include
A container security policy is the document that says which of those checks are mandatory, who owns them, and what happens when a team cannot meet one. The checklist is the test. The policy is the rule. Write it so an engineer and an assessor can use the same text.
For software container compliance, the evidence is specific. Tie it to the digest that is running, not to a tag. Keep the scan result, the signature check, the exception record, the network policy, and the rule for secrets. If you cannot produce those, the control is not in place, whatever the policy says.
Give the policy these parts:
- Scope. Name the clusters, environments, build pipelines, and third-party images that are in. Say what is out, including local developer containers if you are not prepared to enforce the same rules there.
- Owners. Name who owns base images, who operates the cluster, who accepts risk, and who approves an exception. A policy with no owner is a draft.
- Image rules. Approved base images, non-root, the vulnerability level that blocks a build, when an exception is allowed, an SBOM in SPDX or CycloneDX, and a signature that admission actually verifies.
- Registry rules. Which registries may hold production images, who may push, how long tags are kept, and a ban on production deploys that pull straight from a public registry.
- Runtime and cluster rules. No privileged pods, no host namespaces, no runtime-socket mounts, the Pod Security Standard you enforce, RBAC boundaries, default-deny network, resource limits, and encryption of Secrets at rest.
- Secrets. Nothing in images, Dockerfiles, or Git. How secrets are issued, scoped, and rotated. Workload identity instead of long-lived keys where the cloud provides it.
- Detection. Which logs you keep, which events page someone (privileged pods, host mounts, unsigned images, a shell in production), and how long the record is retained.
- Exceptions and enforcement. Which rules block a pipeline or an admission, which are detect-only, and the fields every exception needs: reason, owner, compensating control, and an end date. An expired exception returns to the rule.
- Review. At least annually, when the platform changes, and after any container-related incident.
That is the whole policy. It does not need a separate language for each framework you report against. It needs rules you can fail a deploy with.
The isolation is thinner than it looks
The persistent myth is that a container is a small, sealed machine. It is a process with a few kernel features in front of it: namespaces, cgroups, and a seccomp profile if you set one. Those features are useful. They are not a second kernel. Teams that stop at "the scanner is green" never look at the process that green image became.
This shows up in incidents that are not zero-days. A registry left open. A Kubernetes API with more access than anyone intended. A pod that can reach the metadata service, the CI runners, and the rest of production because nobody wrote a network policy that selects it. You can have a perfectly clean image and still hand an attacker a wide set of privileges the moment it starts.
The practical shift is from a single question about the image to a short set of runtime questions. What is this container doing? Which files can it write? Which network connections can it open? Which token did the platform mount for it? Tools that see process execution, file writes, and network activity inside the container are part of operating the platform. Without them you are watching a tag and hoping.
Kubernetes multiplies the surface
Kubernetes is a powerful orchestrator and a large API. Service accounts, roles, network policies, ingress, and a few dozen other objects each add a way to get the configuration wrong. Many clusters are still installed for ease. The first manifest that works is the one that stays.
The failure mode is familiar. RBAC that grants cluster-admin to a workload because a demo required it. The API server reachable from places it should not be. No admission policy, so any identity that can create a pod can create a privileged one. PodSecurityPolicy used to be the control people pointed at. Kubernetes removed it in 1.25. The replacement is Pod Security Admission and the Pod Security Standards (Privileged, Baseline, Restricted), plus whatever extra rules you enforce with admission. If your standard still says "apply the pod security policy," it is describing a feature the cluster no longer has.
Security leadership cannot leave this entirely with the platform team and then audit it once a year. Someone who reports into the security function has to be able to read what is deployed, see which images are running, and block a manifest that breaks the policy. One field in a YAML file, privileged: true or a hostPath onto the runtime socket, is enough to throw out the isolation you thought the image scan had bought.
The supply chain is more than the base image
The image you pull is the end of a chain: the base, every package in it, every library your build copied in, and the build tool that assembled the layers. The same lesson shows up in software supply chain attacks. SolarWinds and Log4j were reminders that the component you did not write is often the one that matters. Unpinned public images and rebuilt images full of old packages are the container version of that problem.
Know what is in the image, where it came from, and who built it. That is the SBOM, the pinned digest, the private registry, and the signature. Scanning for known vulnerabilities still matters. It does not establish provenance. If admission will run an unsigned image from a registry you do not control, you do not have a supply chain control. You have a hope that nobody swapped the tag.
A policy that is not enforced is a wish
The most common gap is between the document and the cluster. Teams write rules for image hygiene, network segmentation, and runtime behavior, then leave them as a wiki page. The deployed state drifts. The wiki still says Restricted. The namespace is Privileged because a release on a Thursday night needed it, and the exception was never written down.
Bolting a scan on at the end of the pipeline produces the same drift. The check is easy to skip, the finding shows up after the deploy, and the next release is already in progress. Put the blocking rules in the path that ships code. Policy as code, wired into the pipeline and into admission, is how a container security policy stays true on a platform that changes every day. A GitOps repository helps because the thing that is applied is the thing you can review. It does not help if the cluster also accepts a kubectl apply from anyone with a kubeconfig.
How to use this list
Treat the checklist as the operating standard, not as a one-time review. Image and build, plus the registry, are the container image security checklist your pipeline should fail. Runtime, Kubernetes, secrets, and network are the conditions for letting that image run. Logging is how you know the conditions still hold next month. The policy is the one-page contract that names the owners and the exceptions.
Shift-left still means something here. It means the non-root user, the pinned digest, and the signature are properties of the build, not a meeting after production. It does not mean the work ends when the scanner returns green. The goal is to stop a bad deploy, and to notice when a good deploy starts behaving like a bad one. Anything less is a gamble the checklist was supposed to retire.
Policies from the Shop
The checklist assumes the rules are written down: how images are built, how secrets are handled, and how you log and respond. These two packs are the closest match already in the Shop. They are templates for startups and small to mid-sized companies. They are not a finished container program, and they do not replace the checks above.
Core Security Policy Pack
Fifteen plain-English policies, including secure development, logging and monitoring, and encryption. For teams that need the written rules without opening a certification program.
ISO 27001 Policy Pack
Twenty-five policies aligned to ISO/IEC 27001:2022, including Cloud Security, Secure Development, and Cryptography, plus an Annex A mapping workbook.