Container penetration testing checklist: what to review before you sign
A buyer who needs a container penetration test, usually because a framework, a customer security review, a product launch or an insurer asks for one, needs to know what the test should check before comparing quotes. A container test examines the container images, the registries that store them, the container host, the runtime and whether a workload can escape to the host. This page is a checklist to hold a quote against, drawing on the hardening areas in the OWASP Docker Security Cheat Sheet and the recommendations in the CIS Docker benchmark, which CIS began publishing with Docker 1.6 and which contains more than 80 recommendations for production use.
Use the checklist to test the quote, not to replace the test. A written scope that names the daemon and socket exposure, container users and privileges, Linux capabilities, seccomp, AppArmor or SELinux settings, resource limits, read-only filesystems, secrets handling, inter-container connectivity and the image supply chain shows that the provider understood the target. Ask the provider to map each item to a test step and to state which items they will verify by hands-on testing and which they will only confirm from configuration files. Ask also whether the host operating system and Docker versions in scope will be checked against current patch levels, since the OWASP cheat sheet begins by requiring both to be kept up to date. Confirm with the provider whether the Kubernetes layer, if your containers run on a cluster, is excluded, because that work follows a separate assessment and affects effort.
A quote that lists only a vulnerability scan of images, or that promises a general hardening review without naming the runtime and host, leaves the escape path untested. Ask for the attack paths the provider will try, the environments they will test in, and whether a retest of fixed items is included. Any cloud-hosted part should also be checked against the provider's testing rules, which are covered in the scope and rules of engagement section of this page.
Which Docker hardening areas a container test checks and the test step for each
This table pairs each Docker hardening area drawn from the OWASP Docker Security Cheat Sheet with what a weak setting looks like, the review or verification step a tester uses, and why it matters. Use it to check a quote: if a hardening area in your environment has no matching step, ask the provider how it will be covered. The main takeaway is that most container findings come from configuration and host state, so the test should verify those directly rather than rely on a scan alone.
| Hardening area | What a weak setting looks like | Test step that checks it | Why it matters |
|---|---|---|---|
| Daemon socket exposure | Docker socket mounted into containers or the daemon listening on an unauthenticated network port | Inspect host daemon configuration, container mounts and listening ports; confirm no container mounts the socket | A container with daemon control can effectively control the host |
| Host and Docker patch level | Host kernel, container runtime or Docker engine behind supported security releases | Compare installed versions and vendor advisories against the host and runtime inventory | Known runtime and kernel flaws are a common route from container to host |
| Non-root users | Images or containers run processes as UID 0 by default | Review image user directives and running process owners in the container inventory | Root inside a container widens the impact of any application flaw |
| Rootless mode | Daemon runs with full root on the host with no rootless option evaluated | Confirm whether rootless mode is in use or documented as rejected, and record the trade-offs noted | Limits what a compromised daemon can change on the host |
| Linux capabilities | Containers keep default or added capabilities the workload does not need | Compare granted capabilities per container with the workload's stated requirements | Excess capabilities enable kernel operations the application never uses |
| In-container privilege escalation | No-new-privileges not set, setuid binaries present, or privileged flag enabled | Check privilege flags and escalation controls per container, and review setuid binaries in the image | Escalation inside the container is the first step in most container-to-host chains |
| Seccomp, AppArmor or SELinux | No profile applied, or unconfined profile set on workloads | Verify which Linux security module profile each workload runs under and whether it is unconfined | Restricts system calls and file access if the application is compromised |
| Inter-container connectivity | Flat networks where every container reaches every other container and internal services | Review network definitions and test that only intended container-to-container paths are reachable | Limits lateral movement from one compromised service to others |
| Resource limits | No memory, CPU, process, file descriptor or restart limits set | Inspect resource and restart settings in deployment definitions and check that limits apply at runtime | Unbounded consumption can take down co-located workloads |
| Read-only filesystems and volumes | Writable root filesystems and volumes mounted read-write without need | Confirm read-only root filesystem settings and volume mount modes against the workload design | Prevents persistence and tampering with application binaries |
| Logging level at info | Daemon logging set to debug in production, or logs not shipped off the host | Check daemon log level and confirm logs reach the central logging system and are retained | Detection and investigation depend on usable, retained logs |
| Docker Secrets for sensitive data | Credentials in environment variables, image layers or plain configuration files | Search images, environment definitions and repositories for embedded secrets; confirm the secrets mechanism in use | Secrets in image layers or environment values are readable by anyone with image or inspect access |
| Container image scanning in CI/CD | Images deployed without vulnerability scanning or with scan failures ignored | Review pipeline definitions and sample recent deployments to confirm scanning gates run before release | Catches known vulnerable packages before they reach production |
| Supply chain controls | Base images pulled from unverified sources, untagged or unpinned, with no provenance check | Review image sources, digest pinning, signing and provenance records against the team's stated policy | Protects against tampered or substituted images entering the build |
How a container penetration test runs from scoping to retest
The sequence moves from agreed boundaries to an inventory of images and hosts, then through configuration, runtime and supply chain testing, and ends with validated findings and a retest. Each phase has a named output the buyer can check against the statement of work.
Agree scope and rules of engagement
The buyer and the tester agree in writing which clusters, hosts, registries and CI/CD components are in scope, which activities are excluded, and who is the point of contact for stopping a test. The tester confirms the test stays inside the client's own accounts and projects. If any target runs on a managed cloud service, the statement of work should state which provider rules apply and whether prior approval is needed. Confirm the reporting timeline and the retest terms before work starts. The output is a signed statement of work with a target list and exclusions.
Inventory images, hosts and registries
The tester builds a list of container hosts, daemons, images, base images, registries and orchestration endpoints in scope, using access the client provides. This step shows which workloads run with which images and tags, so later checks have a defined target. Ask the tester to confirm whether they will work from a supplied inventory or discover assets themselves. The output is an asset register that the client signs off, so nothing outside it is tested.
Review host and daemon configuration
The tester checks the container host against the OWASP Docker Security Cheat Sheet and the CIS Docker benchmark, which covers daemon exposure, the Docker socket, logging level, rootless mode and whether the host and engine are kept up to date. The CIS Docker benchmark began with Docker 1.6 and makes more than 80 recommendations, and it is written for administrators, security specialists and auditors, so the report can be read by all three. The tester records each setting, its current value and the control it maps to. The output is a configuration findings list tied to specific hosts.
Test runtime isolation and privilege boundaries
Using authorized test accounts, the tester examines how running containers are constrained: Linux capabilities, non-root users, seccomp, AppArmor or SELinux profiles, read-only filesystems, resource limits and inter-container connectivity. Where Kubernetes is involved, the tester also checks Pod Security Standards enforcement. The aim is to show whether a compromised container could reach the host or other workloads, without running destructive payloads. The output is a set of validated isolation findings with evidence and the conditions under which each was confirmed.
Review secrets and cloud metadata exposure
The tester checks how credentials reach containers, whether secrets are stored in images, environment variables or mounted volumes, and whether Docker Secrets or an equivalent mechanism is used. Where containers run on cloud infrastructure, the tester confirms whether workloads can reach instance metadata endpoints and what identity they inherit. The output documents each secret location and each identity path, with the owner who will rotate or remove it.
Review registry and supply chain controls
The tester reviews how images are built, signed, scanned and promoted, including whether container scanning runs in the CI/CD pipeline, how base images are chosen and updated, and who can push to registries. This maps to the OWASP cheat sheet's supply chain guidance and to NIST SP 800-190, which frames container image and registry risks. The tester does not need to rebuild every image. The output is a list of pipeline and registry gaps, with the owners who can change them.
Report validated findings and agree fixes
The tester writes a report that separates validated findings from observations, gives each finding its evidence, its affected asset, its risk rating and a specific fix. Client engineers and the security owner review the draft to confirm reproducibility and feasibility. The report should also state what was not tested and why. Ask for the report format in the statement of work, including whether it will be usable by an internal auditor. The output is a final report and an agreed remediation list.
Retest fixed findings and close the engagement
After the client applies fixes, the tester repeats the checks that produced each validated finding and records whether it is closed, partly closed or still open. Retest terms, including whether one retest round is included and how it is priced, should be written into the statement of work before testing begins. The output is a retest addendum that states the status of every finding, which the client can file with its risk register or share with an auditor.
Where the trust boundaries sit in a container environment
The illustrative model starts at the source repository and CI/CD pipeline, which produce an image that is pushed to a registry. A container host runs the Docker daemon, which starts containers carrying their own capabilities and mounts. The container to host boundary, the daemon socket and the registry to pipeline hand-off are where most checklist items apply, so a tester should ask how each one is controlled. The container to container network link is shown separately because inter-container connectivity is a distinct check. This is a generic model, not a description of any specific client environment.
Illustrative model of trust boundaries in a generic container environment, not a specific client system.
What drives the cost and duration of a container penetration test
This table compares the main drivers of container penetration test cost and duration, with what to ask for in a quote for each. Read it against your own estate: the larger the number of images, hosts, runtimes and privilege paths, the more testing effort the quote should show. Most drivers are one-time for a single engagement, while retest rounds and re-runs after major changes recur.
| Cost driver | Why it moves price or effort | What to ask for in a quote |
|---|---|---|
| Number of images and registries | Each image needs layer, package and configuration review, and each registry needs access and policy checks. Many base images or several registries multiply that work. | Count of images in scope, registries named, and whether images are sampled or all reviewed |
| Number of hosts and clusters | Each container host, node pool and cluster adds configuration checks, escape-path review and sampling of workloads on it. | Host and cluster inventory, environments included, and which nodes are sampled |
| Container runtimes in use | Plain Docker hosts, ECS, Fargate and Kubernetes nodes have different control planes and boundaries, so each needs its own test steps. Fargate and ECS are on AWS's list of services customers may test without prior approval. | Runtime list per environment and the test steps planned for each |
| CI/CD pipeline included | Testing build systems, registry push rights, signing and secrets injection adds a separate workstream from runtime testing. | Whether the pipeline is in scope, which tools, and what access the tester receives |
| Rootless or privileged workloads | Privileged containers, host mounts and added capabilities create more escape paths to test. Rootless or restricted workloads usually need fewer deep checks, though each still needs verification. | Count of privileged or capability-adding workloads and a plan for testing each |
| Depth of host and escape testing | Testing whether a container can reach the host or other containers is the most effort-heavy step. Scope limited to configuration review costs less than tests that attempt controlled escape. | Whether escape attempts are included, the boundary of allowed actions, and the test environment used |
| Authorization and provider approvals | AWS permits listed services without prior approval, but command and control testing needs approval, and simulated events need a request at least 2 weeks ahead (AWS penetration testing policy). Google Cloud customers do not need to notify Google, but must follow its policies. Microsoft has its own rules of engagement. | Which provider rules apply, who files any approval or request, and the lead time built into the schedule |
| Retest rounds | Each retest checks whether fixes closed the findings, so the cost depends on how many findings are fixed and how many rounds are agreed. Retests are usually a separate line item. | Number of retest rounds included, what counts as a closed finding, and whether retests are priced separately |
Which frameworks expect container testing and what they look for
No source we rely on requires a container penetration test by name, so the first step is to ask your assessor or customer whether they expect one, and what they will accept as evidence. The requirement often arrives as a control rather than a test type, so write down the exact control wording your auditor or customer cites before you commission work. Many buyers discover that a configuration review, a vulnerability scan or a targeted test each satisfies a different line of the same questionnaire.
For financial entities in the EU, the clearest reference is Delegated Regulation (EU) 2024/1774, the ICT risk management standard under DORA. Its Article 10 asks for automated vulnerability scanning of systems supporting critical or important functions at least weekly, and its Article 21 asks for access rights to be reviewed at least every 6 months. A container test does not replace either recurring control, but it can supply dated evidence on image provenance, runtime privileges, and whether service accounts and cluster roles still match what the workloads need. Confirm with your compliance team which of these systems fall in scope before you agree the test boundaries.
Assessors frequently ask about two configuration references. The NSA and CISA Kubernetes Hardening Guide and the CIS Docker and Kubernetes benchmarks are both used to judge hardening, and CIS publishes separate benchmarks for managed Kubernetes services. Ask your assessor which version of each they accept, because the Kubernetes Hardening Guide has had updates since its first release, and a finding mapped to an outdated version can create avoidable debate. Ask the tester to state the version used in the report, and to map each finding to the control it supports.
What the client receives and whether it satisfies an auditor or customer
A container test is only as useful as the document that comes out of it. The cards below cover what the report should contain, so a buyer can check it against an internal security review, a customer questionnaire or an auditor's evidence request. None of these items is an audit opinion or certification, which auditors and certification bodies issue.
Scope and exclusions
The report should list every image, registry, cluster, node and runtime that was in scope, with the version or digest tested, and state what was not tested. Ask whether the scope names the benchmark or guide version used, such as the CIS Docker Benchmark or the OWASP Docker Security Cheat Sheet as it stood at the time of testing. Exclusions matter as much as inclusions: an untested registry or a host with no runtime review changes what the report can support. Confirm that the tester records any excluded checks and the reason for each.
OWASP cheat sheetMethod and checklist coverage map
A coverage map ties each tested area to a checklist item: daemon socket exposure, non-root users, Linux capabilities, privilege escalation controls, seccomp, AppArmor or SELinux, resource limits, read-only filesystems, secrets handling and supply chain. Each row should show whether the check was run, how it was run (configuration review, test in a lab copy, or manual attempt), and the result. Ask for the method in terms a reviewer can follow, and check that it reflects the phases agreed in the statement of work rather than a generic template.
Findings with affected asset and evidence
Each finding should name the affected image, host or container, the configuration or behavior involved, and the evidence that supports it. Look for a severity rating with the basis stated, and for remediation guidance specific enough for an engineer to act on without rerunning the test. Evidence should describe what was observed, not contain working exploit code or full payloads. A finding without an affected asset cannot be tracked to closure, and an auditor will ask for that link first.
Remediation plan and retest results
A useful report separates fixes the client should make from findings that need a design decision, and assigns each one an owner in the client's process. Retest results should state, per finding, whether the fix was verified, partially addressed or still open, with the date and the image or host version retested. Ask whether retesting is included in the quoted scope or priced separately. Retest evidence is the part of the file that shows findings were closed rather than only reported.
Limitations and responsibility statement
The report should say what the test could not prove, such as runtime behavior outside the observed window, cloud provider controls that belong to the provider under the shared responsibility model, or cluster settings reviewed only through configuration files. It should also state who performed the test and who is responsible for the client's own environment after delivery. Readers who work with auditors should confirm that the limitations section is written plainly, because an overstated result is harder to defend than a stated gap.
Shared responsibility modelSummary letter for customers and auditors
A short summary letter can be shared with a customer's security team or an auditor who needs evidence for a broader assessment. It should describe the scope, dates, method, the number of findings by severity and the retest status, without reproducing sensitive detail. Treat it as a summary of the technical report, not a certificate: it does not state that the environment is secure or compliant. Ask the provider to confirm in writing what the letter may be shared with and whether the client may quote it externally.
What your team prepares before the container test starts
Before the test starts, your team should hand the tester a complete inventory of what is in scope: the images and their tags, the registries that store them, the container hosts, the orchestration layer and the runtimes in use. Without this list, the tester spends paid time discovering assets, and the scope document cannot name what is excluded. Include read-only or scoped access to the Docker daemon configuration, the daemon.json file, container run definitions, Compose files or Kubernetes manifests, so the tester can check settings such as the daemon socket exposure, user settings and Linux capabilities against the OWASP Docker Security Cheat Sheet without changing anything in production. Name who will grant and revoke that access, and record it in the rules of engagement.
Cloud-hosted container services need a separate check. If the containers run on Amazon ECS, Fargate, AKS or GKE, the provider's testing rules may apply, and some services need approval before testing begins. AWS lists ECS and Fargate among services customers may test without prior approval, but any testing that includes command and control needs prior approval. Ask your provider to confirm, in writing, which services in your container estate require notice or approval, who submits any request, and how many days ahead it must be filed. Confirm this before the scope is signed, because a missed approval can stop the test or put it outside the rules.
Agree three operational items in advance. First, provide CI/CD access for pipeline review, such as read access to the pipeline definitions and image build steps, so the tester can check how scanning is integrated into the build. Second, name a technical contact and an escalation contact, and set any change freeze windows so the test does not coincide with a release. Third, agree in writing what happens if the tester finds evidence of a live compromise, such as an unfamiliar process on a host or an unexpected image in a registry. The plan should name who is called, who decides whether testing pauses, and how the finding is preserved. Ask the tester to confirm how it will handle this situation before work begins.
What to check in a provider before you sign a container test
A container test is only as useful as the scope, method and evidence behind it. The cards below set out what to ask for in writing before you sign, and what to confirm against your own environment, so the quote can be compared on the same terms.
Written scope by component
The scope should list every host, image, registry, orchestrator node and runtime the test will touch, with version identifiers where you have them. Ask the provider to state which container hosts are in scope and which are excluded, and whether a registry is tested as a service or only the images pulled from it. Confirm each listed component against your own asset inventory, since a missing registry or build host is the most common gap in a scope that looks complete.
Method tied to public standards
Ask which standards the test follows and how each phase maps to them. NIST SP 800-190 describes container security concerns across images, registries, orchestrators and hosts, and the CIS Docker benchmark gives configuration recommendations that a tester can check item by item. A provider should name the checks it runs from each source rather than describe its method in general terms.
NIST SP 800-190Experience with container and cloud runtimes
Ask for evidence that the team has tested container hosts and the managed runtimes you run, such as ECS, Fargate, EKS, AKS or GKE, depending on where your workloads sit. Experience with the cloud provider's own rules matters here, because the rules that allow or prohibit a test differ by service. Ask who on the team will do the hands-on work and whether they hold the experience you are paying for.
Authorization and provider rules
Ask how the provider confirms that you own every environment in scope and how it handles the cloud provider's testing rules. For AWS, some services can be tested without prior approval while simulated events and command and control need an advance request. Microsoft and Google publish their own rules. Ask for a written statement of which approvals the provider will obtain, which you must obtain, and who is responsible if the test runs outside them.
AWS testing policySample report and evidence
Request a redacted sample report before you sign. It should show each finding with the affected component, the evidence captured, the risk rating and a fix that your engineers can act on. Check whether the report separates confirmed issues from configuration observations and whether it records which checks were run and which were not. The sample shows the level of evidence you will receive, which is what your auditor or customer will read.
Retest terms in writing
Confirm whether a retest of fixed findings is included, how many rounds it covers, and how long after the report it must be requested. Ask what the retest checks, whether it reuses the original evidence method, and what the final report shows about closed and open items. Retest terms affect whether you can give a customer or regulator a verified status rather than a list of promised fixes.
Container penetration testing questions buyers ask before hiring
How much does a container penetration test cost and what drives the price?
Price depends on how many images, registries, clusters and hosts are in scope, how many runtime configurations need manual testing, and how much the tester must reconstruct about your build and deployment pipeline. No public rate exists for a manual container test, so the quote follows from a written scope. Ask the provider to separate the one-time test effort from any recurring work such as retesting or continuous scanning. Also ask which items are excluded, because a Kubernetes assessment or cloud configuration review is usually priced separately.
How long does a container penetration test take?
Duration is set by the number of images, hosts and clusters in scope, the depth of runtime testing, and how quickly the client can supply access and answers. Any test that touches a managed cloud service also follows that provider's rules, and some services need prior approval. Ask the provider for a timeline tied to the agreed scope, with dates for testing, draft findings and the retest window. No fixed duration is published in the sources used for this page, so treat any number a vendor gives you as an estimate to confirm in writing.
What does the client need to provide before a container test starts?
The tester needs written scope, named targets, test accounts or read-only access to registries and clusters, and a contact who can approve testing that might affect production. Ask for image inventories, Dockerfiles or build pipeline details, the cluster's admission and Pod Security settings, and network diagrams showing which containers can reach each other. Agree in advance on test windows, monitoring and a stop process. Without these inputs, the tester spends time on discovery and the report covers less ground.
Can our own team run these container checks instead?
Yes, many checks are repeatable by an internal team that understands Docker and the OWASP Docker Security Cheat Sheet. Image scanning, daemon configuration review and CIS-style checks can be automated and run in CI/CD. A penetration test adds judgment: chaining weaknesses, testing whether a container can reach the host or other workloads, and checking whether controls work in practice rather than only in configuration. Many teams split the work, running scanners continuously and commissioning an external test for attacker paths and independent evidence.
How does a container penetration test differ from a Kubernetes assessment or configuration scan?
A container penetration test focuses on attacker paths through images, registries, the container host, the runtime and any route to escape the container. A Kubernetes assessment checks a cluster against the CIS Kubernetes Benchmark and the Pod Security Standards, covering RBAC, network policy and secrets. A configuration scan compares settings to a rule set and reports deviations, without proving whether they can be exploited. Ask the provider which of the three the quote covers, and whether the report separates confirmed attack paths from configuration gaps.
Is a CIS benchmark scan alone enough for a container test?
No. A benchmark scan checks whether settings match a published baseline, which is useful for hygiene and audit evidence, but it does not show whether an attacker could chain settings together. The CIS Docker benchmark, first published for Docker 1.6, contains more than 80 recommendations, and the OWASP Docker Security Cheat Sheet covers areas such as the daemon socket, capabilities, secrets and supply chain. Ask the provider to map findings to those areas and to test the controls that matter most for your workloads. A scan can be part of the evidence, not the whole test.
How does retesting work after findings are fixed?
Retesting checks whether the agreed fixes work in the environment where the original issue was found. Ask whether retesting is included in the quote, how many rounds it covers, and how long after the report it remains open. Good practice is to rebuild the affected images, redeploy, then rerun the specific checks and record the result against each finding ID. Confirm with the provider how retest evidence is documented, since your auditor or customer will want to see which findings were closed and how.
What should we do when a finding affects a production workload?
Do not wait for the final report if a finding shows a live path to data, credentials or the host. Agree in advance who on your side can authorize an emergency change, who the tester contacts, and how testing pauses. Typical first steps include restricting the affected container's privileges, removing exposed sockets or secrets, and rotating any credential that may have been read. Ask the provider to flag high-risk findings in writing as soon as they are confirmed, and to avoid further exploitation once the issue is proven.
How DeployOpen scopes, tests, reports and retests container environments
DeployOpen treats a container penetration test as a written, fixed-scope engagement that starts with the images, hosts and runtime settings you actually run. Each area on the checklist is agreed in advance, tested within the rules that apply to your provider, and reported with fixes and a retest.
How we scope
- Written scope names the registries, images, container hosts and runtime settings included in the test.
- Scope records whether the Docker daemon, orchestrator nodes or managed cloud services are in or out.
- Rules for your cloud provider, such as approvals for command and control, are confirmed before work begins.
How we test
- Testing follows the OWASP Docker Security Cheat Sheet rules for daemon exposure, users, capabilities and seccomp, AppArmor or SELinux profiles.
- Image and supply chain checks cover base image provenance, secrets left in layers and scanning integration in the CI/CD pipeline.
- Escape-path checks are limited to the agreed hosts and are stopped at the boundary the written scope sets.
How we hand over
- Each finding lists the affected image, host or setting, its risk, evidence and a specific remediation step.
- Findings are mapped to the checklist area they came from, so your security and platform teams can track them.
- The report is written so your auditor or customer security reviewer can trace each test step to its scope item.
How we support
- Fixed-scope engagements include a retest of agreed findings once your teams have made the changes.
- Ongoing support, upgrades and continuous testing are available as a retainer for container platforms that change often.
- Ask us to confirm retest timing and what it covers before you sign the written scope.

