Container penetration testing: what is tested, how and the standards it follows

A container penetration test checks whether an attacker can move from a workload to the host or other workloads. This page explains what is covered, the standards behind the method, and what the client receives.

On this page

Why container penetration testing is commissioned and what it proves

A container penetration test is an attacker-path test of containerized workloads that tries to show whether a foothold inside one container can reach the host, other workloads or data it should not touch, and it is commissioned when a compliance framework, a customer security review, a product launch or an insurer asks for evidence beyond a configuration scan. The outcome a buyer should expect is a clear answer to two questions: can an attacker escape to the host, and can a compromised workload reach across the boundary into other containers, namespaces or the cloud identities attached to the node. Either answer is useful only if the tester can show how the result was reached.

NIST SP 800-190, the Application Container Security Guide, groups container risk into categories across images, registries, orchestrators, the container runtime and the host operating system. Its Section 3 gives a tester a public risk list to scope against, so the engagement can state which categories are in scope and why. MITRE ATT&CK technique T1611, Escape to Host, describes the adversary behavior the test is built around: breaking out of a container to reach the underlying host, and from there other containerized resources. Buyers should ask the provider to map each planned attack path to these categories and to state which paths were attempted, which were blocked and what evidence supports each conclusion.

This is a test of attacker paths, not a checklist. A configuration review confirms that a setting such as privileged mode, host namespace sharing or a mounted runtime socket is absent; a penetration test asks whether a realistic chain of weaknesses, starting from a vulnerable application inside a container, actually leads somewhere valuable. Confirm with the provider whether the test will chain findings, what proof of impact it will record, and how it will prevent impact on production workloads. That distinction determines whether the report can support an auditor's question or a customer's due diligence file.

What can be in scope for a container penetration test

A container test is defined by the layers it reaches and the boundaries drawn around them. The four layers below connect because a weakness in one, such as a vulnerable image, can matter only once a container reaches the host or the cloud account behind it.

Container images

The image is the first layer a tester examines: base image provenance, installed packages, embedded secrets, unnecessary tools and the user the process runs as. Testing covers whether images are built from trusted, pinned bases and whether known vulnerable components are present. Ask the provider how image findings are matched to a vulnerability source and whether builds are reviewed or only the running artifacts.

Registries and image pipelines

Registries hold the images that clusters pull, so access control, tag mutability, signing and who can push are in scope. A tester checks whether an attacker who gains registry write access could replace an image that production later runs. Confirm which registries are included, whether private and public mirrors count, and whether the build pipeline that feeds them is covered or handled separately.

Container host and operating system

The host operating system is in scope because NIST SP 800-190 advises using container-specific host operating systems to reduce the attack surface. The test examines the host's patch level, kernel configuration, the container daemon and its socket exposure, and what the host can reach on the network. Confirm with the client whether the nodes are shared across workloads, since that changes the impact of any host weakness.

NIST SP 800-190

Runtime and escape to host

Runtime testing checks whether a compromised container could break out to the host or reach other workloads. Privileged settings, added Linux capabilities, host namespace sharing and writable host mounts are the usual conditions examined. MITRE ATT&CK T1611, Escape to Host, defines the outcome the test tries to prove or rule out. Agree in writing whether any escape attempt is limited to proving the condition exists.

ATT&CK T1611 entry

Clusters and namespaces

Scope lists the clusters, namespaces and workloads included, and whether the test runs against production, staging or a copy. Cluster-level controls such as role bindings and admission settings belong here only if the client wants them tested, since they overlap with a Kubernetes assessment. Write the namespace list into the contract so the tester cannot drift into neighboring workloads owned by another team.

Cloud services and tester access

Containers often reach managed services, such as ECS or Fargate on AWS, and those services fall under each provider's testing rules. Confirm which services are permitted without prior approval, which need a request, and whether a test that includes command and control needs AWS approval. Also agree how the tester is granted access, which accounts and roles it uses, and when those credentials are revoked.

AWS testing policy

How the engagement runs from scoping to retest

The sequence turns a container test from a vague request into a bounded, authorized exercise that proves or rules out specific risks, ends with findings the owning team can act on, and closes with evidence that the fixes hold. Each step has a defined output that the next step depends on.

  1. Confirm the scope and the provider rules

    Before any testing, the buyer and tester agree which images, registries, hosts, clusters and runtimes are in scope, and which are excluded. Where containers run on a public cloud, the provider's rules come first: AWS publishes a list of services customers may test without prior approval, including ECS, Fargate and Lambda, and requires a request at least 2 weeks ahead for simulated events such as red team exercises. Confirm with the provider whether any planned activity needs approval. The output is a written scope document with asset owners named and provider approvals either obtained or confirmed unnecessary.

  2. Set the rules of engagement

    The rules of engagement record what the tester may do and what is prohibited. They cover test windows, source addresses, denial of service prohibitions, limits on fuzzing and load, handling of any data the tester reaches, escalation contacts and how a critical finding is reported mid-test. Microsoft's published rules, for example, prohibit denial of service under all circumstances, and AWS prohibits port and request flooding. The output is a signed document that both sides can point to if a test triggers an alert or affects a production workload.

  3. Collect the inventory and baseline

    The tester gathers the container inventory: image names and tags, registry locations, base images, host operating system, orchestrator version, runtime settings and the cloud accounts involved. This is a documentation and access step, not an attack. The buyer checks that the host runs a container-specific operating system where one is used, as NIST SP 800-190 recommends. The output is an asset register that maps each image and host to an owner and a risk area from the NIST SP 800-190 list.

  4. Test against the NIST risk areas

    Under NIST SP 800-115, the tester runs technical testing and examination methods against each area in scope: image provenance and vulnerabilities, registry access controls, daemon and host configuration, runtime privileges and capabilities, network exposure, secrets handling and the path to escape to the host, which MITRE ATT&CK describes as T1611. Testing is staged and logged, and each check is tied to the asset it targets. The output is a working log of what was tested, what was observed and what was ruled out, so the report can show coverage and not only findings.

  5. Validate and rate each finding

    A finding is not reported until the tester can show the condition exists, what an attacker would gain from it and which assets it affects. Duplicates and version noise are removed, and each finding is rated against the buyer's own severity model. Findings tied to cloud configuration are checked against the relevant CIS benchmark control. The output is a validated list where every item carries evidence, affected assets, impact in plain terms and a recommended fix.

  6. Deliver the report and agree the fixes

    The report has an executive summary, a technical section for engineers, a scope and coverage statement, the rules of engagement as tested, and a remediation plan with owners. Findings that touch a cloud provider's own service, rather than the customer's configuration, follow that provider's reporting route; for example, Microsoft requires vulnerabilities in its services to be reported to MSRC. The output is a delivered report and a remediation plan that the buyer's security lead has reviewed and accepted.

  7. Remediate and retest the fixed items

    The owning teams apply fixes, such as rebuilding images from a patched base, removing privileged settings, restricting the Docker socket or tightening registry permissions. The tester then retests each closed finding against its original evidence and confirms the fix holds. Findings that remain open are recorded with the reason. The output is a retest statement listing each finding as closed, open or accepted risk, which the buyer can file with the test record.

  8. Retain evidence for reviewers

    The final package holds the signed scope, rules of engagement, provider approvals where needed, the coverage log, the validated report and the retest statement. Auditors and customers usually ask for these together. Ask the tester to confirm that the package matches the scope agreed in step one. The output is a single evidence file that the buyer can share with an auditor or customer, noting that the auditor or customer makes its own judgment on whether it meets their requirements.

Weakness categories a container test looks for

Container images carry everything an application runs with: the base operating system layer, language runtimes, libraries and build tooling. A weakness here is usually inherited rather than written by the application team, so a test checks what the image contains, where it came from and whether it was built from a controlled pipeline. NIST SP 800-190 treats image risks as one of the core container risk areas, which makes them a natural first category to scope against.

  • Outdated or vulnerable packages: Known-vulnerable libraries in base and application layers that remain exploitable after deployment.
  • Unnecessary tooling: Shells, package managers or debug utilities left in production images, which widen what an attacker can use after a foothold.
  • Untrusted or unpinned base images: Images pulled from public sources by mutable tag rather than verified digest.
  • Build-time leftovers: Credentials, certificates or source fragments copied into image layers during the build.
  • Missing provenance: No record of which pipeline produced an image, so a finding cannot be traced to its source.

Confirm with the client which image sources are approved, how digests are pinned and whether a software bill of materials exists for each image in scope.

What drives the cost and duration of a container test

This table lists the factors that change the price and length of a container penetration test, who is paid for each, and whether the cost is one-time or recurs on retest. Use it to compare written quotes line by line, since no public rate exists and a quote follows the agreed scope.

DriverWhy it changes cost or effortOne-time or recurring, and what to ask for in a quote
Number of images and registriesEach image needs its layers, base OS packages, users, capabilities and embedded secrets reviewed. Many images from shared base images can be sampled, but the quote should state how the sample is chosen.One-time. Ask which images and registries are in scope, whether pulled images are tested or only the registry, and how the image sample is selected.
Clusters, hosts and runtimesEach container host, runtime daemon and orchestrator node adds configuration and exposure checks. Managed clusters differ from self-managed ones because the provider owns part of the stack.One-time. Ask for the list of hosts, runtimes and clusters, and whether managed control planes are excluded as provider responsibility under the shared responsibility model.
Depth of escape to host testingProving or ruling out escape to host (MITRE ATT&CK T1611) takes more effort than a configuration check, especially when privileged settings, mounts or kernel exposure need manual validation.One-time. Ask whether escape testing is a configuration-based check, a controlled proof of exposure or both, and what evidence is returned.
Cloud integration and identity scopeWorkloads that reach cloud metadata services, secrets stores or cloud roles widen the review. Testing those paths must stay within each provider's published testing rules.One-time. Ask which cloud accounts, roles and service identities are included, and whether any provider approval step is needed before testing.
Simulated events and adversary techniquesRed team style exercises, phishing or malware simulations add planning, rules of engagement and provider notice requirements, so they cost more than a standard technical test.One-time. Ask whether simulated events are included, who requests any provider notice, and the lead time that applies.
Retest after remediationA retest checks whether the fixes hold for the findings in the report. Its effort depends on how many findings remain open and how many environments changed.Recurring for each retest round. Ask whether one retest is included, how long it remains open, and whether new images or clusters are covered.
Reporting and audit evidenceReports that map findings to the CIS Kubernetes Benchmark, NIST SP 800-190 risk areas or a client's framework need more analysis and review time.One-time. Ask for the report format, the mapping used, and whether a walkthrough with the client's assessor or engineers is included.

How a container penetration test differs from a Kubernetes assessment or configuration scan

A configuration scan asks whether individual settings match a benchmark. The CIS Docker and Kubernetes Benchmarks define those settings, and a scan reports which ones deviate. A Kubernetes assessment goes further for a managed cluster: it reviews RBAC, workload isolation, network policies, secrets and cloud identity integration against the CIS benchmarks for EKS, AKS or GKE, the Pod Security Standards and the NSA and CISA hardening guide. Both produce a list of controls that pass or fail. Neither, on its own, shows whether an attacker can use the failures together.

A container penetration test asks that second question. It takes the weaknesses found in images, registries, the host and the runtime and tries to chain them toward the outcome that matters, such as escape to the host under MITRE ATT&CK T1611 or access to another workload's secrets. A single permissive setting may look low risk in a scan, but it can become the step that connects two other weaknesses. The tester's report should therefore describe attack paths, the preconditions for each, and what was actually reached. Ask the provider to show which paths were attempted, which were blocked and why, so you can tell a proven path from a theoretical one.

Before commissioning the test, confirm three things in writing: whether the cluster or host is in a managed service with its own testing rules, whether a configuration review or Kubernetes assessment is already scheduled, and which environments may be touched during escape attempts. A penetration test typically needs a clean, approved baseline from the scan or assessment first, so findings are not repeated. For scope boundaries, see the Kubernetes penetration testing scope and rules of engagement page and the broader Kubernetes security assessment page.

Frameworks and customers that expect container testing

This table maps the common requirements and customer reviews that ask for container testing to the evidence an assessor or customer is likely to expect. Use it to decide what your test report must show, then confirm the exact control wording with your assessor or customer before scoping. The main takeaway is that a container test supports these requirements only when its scope, findings and retest records match what each reader asks for.

Requirement or reviewWhat it asks forEvidence to expect from a container test
DORA ICT risk management (Delegated Regulation (EU) 2024/1774)Automated vulnerability scanning of assets supporting critical or important functions at least weekly (Article 10), and access rights reviewed at least every 6 months (Article 21)Scan coverage for container images and hosts, access review of registry, cluster and runtime roles, and dated findings with remediation records
Attestation by an independent auditor or certification bodyDocumented controls tested against the framework's own control IDs, issued by the assessorTest scope mapped to the controls in scope, plus the raw test records the assessor can sample. DeployOpen does not issue attestations.
Customer security review of a SaaS productProof that hosting containers are hardened and tested, often in a questionnaire or trust centerScope statement naming registries, cluster and host, a summary of findings by severity, and a retest confirmation
Internal hardening baseline (CIS Kubernetes Benchmark, NIST SP 800-190)Configuration checks on host, daemon and cluster against a published benchmark or risk listMapping of each test step to a benchmark recommendation or NIST SP 800-190 risk area, with results per item
Container escape assurance (MITRE ATT&CK T1611)Evidence that escape to the host is prevented or has been tested and ruled outDocumented escape-path tests with observed outcome, the controls relied on, and the fix and retest result
Supplier and third-party risk questionsProof that vendor-hosted or customer-hosted containers have been independently testedWritten scope and rules of engagement, tester identity and method summary, and the remediation status of open items

What the client receives and whether it satisfies an auditor or customer

A container penetration test should end in a package that a security team can act on and an auditor or customer can read. The cards below cover each component, what it proves, and where its limits sit, since a summary letter describes work performed rather than certifying the environment.

Scope and rules of engagement

The report should restate the agreed targets: which images, registries, hosts, clusters and runtimes were tested, which were excluded, and the rules that governed the work, such as permitted hours, test accounts and any prohibited techniques. Reviewers use this section to confirm that the test covered the environment they care about. If the scope names only a sample of images or nodes, the report should say so and explain how the sample was chosen.

Attack paths tested

Findings are easier to judge when the report shows the paths the tester tried, not only the weaknesses it found. For containers, expect paths such as a compromised image reaching production, a container reaching the host, and a workload reaching the cloud metadata service. Each path should record whether it succeeded, failed, or was blocked by a specific control, mapped to the escape-to-host technique in MITRE ATT&CK.

Validated findings with severity

Each finding should include a description, the affected component, evidence that the issue was confirmed rather than inferred, and a severity rating with the method used to assign it. Ask whether the rating follows a named scale and whether the tester adjusted it for your environment. Unvalidated scanner output presented as findings is a sign the test was a configuration scan, not a penetration test.

Evidence and reproduction steps

Evidence supports the finding without handing an attacker a working method. Good reports record the observed behavior, timestamps, the configuration state at test time, and redacted screenshots or command output. Ask that reproduction notes describe the condition to recreate, not a copy-paste exploit, and that any sensitive data encountered is masked and handled under the agreed data terms.

Remediation guidance and retest results

Each finding should link to a concrete fix, such as dropping capabilities, restricting the daemon socket, enforcing a Pod Security Standards level, or rotating exposed credentials, along with an owner and priority. A retest should confirm which fixes worked and close those findings with dated evidence. Ask whether retesting is included in the fixed price or billed separately, and how long after the original report it remains valid.

Summary letter for customers or auditors

A summary letter states what work was performed, by whom, over which scope, and with what result. It is useful for a customer security review or as one input to an auditor's evidence, but it is a statement of work performed, not an attestation, certification or audit opinion. Only an independent auditor or certification body can issue that. Confirm with your auditor in advance whether they will accept a penetration test summary as evidence for the control in question.

How the test changes for self-managed, managed and cloud-hosted containers

When the client runs Docker or containerd on hosts it owns, whether in its own data center or on virtual machines in a cloud account, the test reaches the full stack. The tester can examine the container host operating system, the container daemon and its socket, the registry, the images and the runtime settings on each node. NIST SP 800-190 advises container-specific host operating systems over general-purpose ones to reduce attack surface, so the host OS choice is a test finding in its own right. Because the client owns every layer, the escape-to-host question (MITRE ATT&CK T1611) can be tested against the real host rather than a simulation.

  • Daemon and socket exposure: Whether the container daemon socket is reachable from containers or from the network, and who holds access to it.
  • Host OS and patch state: Whether the host runs a minimal, maintained operating system and how kernel and runtime patches are applied.
  • Runtime privileges: Use of privileged containers, host namespaces, added capabilities and writable host mounts.
  • Registry and image pipeline: Where images come from, how they are signed or pinned and who can push to the registry.
  • Host access controls: Administrative accounts, SSH access and logging of actions on each node.

Before testing, confirm with the client who owns each host, which hypervisor or cloud account hosts it and whether the host can be stopped or restored if the test causes disruption.

What you prepare before a container test starts

Before a container test starts, the client must settle who can touch what. Agree on the test accounts and cluster access levels the tester will use, and write down whether the tester gets a read-only view of the cluster, a namespace-scoped role, or node-level access on a non-production copy. Each level changes which escape-to-host and lateral movement checks are meaningful, so the access tier belongs in the rules of engagement, not in a side email. Confirm which container registries, image repositories and build pipelines the tester may read, and ask for an inventory of the images in scope with their tags, base images and owners. Without that inventory, a tester cannot tell whether an image they find is the one running in production.

Second, agree the operational guardrails. Write the written rules of engagement to cover permitted techniques, excluded namespaces or nodes, data the tester must not copy, and the time windows in which active testing may run. Ask the operations team to declare any change freeze that overlaps the test, so that a deployment does not change the target mid-test and produce findings that cannot be reproduced. Name a primary and backup contact on both sides for emergencies, with a phone number that works outside business hours, and agree who may halt testing. Write a stop plan for anything that affects production: the trigger conditions, who makes the call, and how the cluster or workload is restored. For cloud-hosted clusters, confirm with the provider's published testing rules which services, such as managed container or serverless services, are in scope, and whether any simulated event needs advance notice. Those answers come from the provider's current policy, so the client should verify them before signing the scope.

Container penetration testing questions buyers ask

Does a container penetration test need AWS or other cloud approval?

It depends on the services and the activities. AWS lets customers run security assessments or penetration tests of a listed set of services without prior approval, including EC2, Lambda, API Gateway, ECS and Fargate, so container hosts and workloads on those services often need no pre-approval. Any testing that includes command and control needs prior approval, and simulated events such as red team exercises need an AWS request at least 2 weeks ahead. Confirm before you scope whether your orchestration service is on the list, because EKS is not named in the supplied policy summary. Microsoft and Google set their own rules, so check the AWS penetration testing policy and each provider's terms before testing starts.

What drives the cost and time of a container penetration test?

The main drivers are the size and spread of the estate and how deep the work goes. Count the images and registries, clusters and nodes, cloud accounts, and whether runtime behavior and escape to the host are in scope. Each added cluster or cloud account adds setup, access and analysis work. Cloud provider rules also add time, because some activities need prior approval and lead times. The tester is paid for test effort and reporting, while your team pays for environment access, staging and internal review. Most engagements are one-time assessments, and continuous testing is a recurring retainer. Ask for a quote that lists each environment, the test types, assumptions about access and test windows, the reporting format and the retest terms. DeployOpen agrees fixed scope, deliverables and timelines in writing before work starts and does not publish a price list.

Can our own team run a container penetration test internally?

Your team can run parts of the work, such as image scanning, configuration checks and internal review of findings, and many teams do this well. A full test is harder to run internally for three reasons. Your team may lack current skills in container escape and cluster attack paths, the work needs clear written authorization and rules of engagement, and an independent tester is often what an auditor or customer expects as evidence. Internal testing still has value for continuous coverage between external tests. Before deciding, ask your auditor or key customers which evidence they accept, and check the cloud provider rules for the services you plan to test. Note that DeployOpen does not issue audit reports or certifications. Independent auditors and certification bodies do that work, and DeployOpen prepares the systems, controls and evidence they review.

How does a container penetration test differ from a CIS benchmark scan?

A benchmark scan checks configuration against a fixed list of settings, while a penetration test checks whether an attacker could use those settings in practice. The CIS Kubernetes Benchmark is at version 2.1.0 and gives you a broad, repeatable check of cluster settings, which is useful for baseline coverage. A penetration test starts from an attacker's position, chains weak points together, and shows what an attacker could reach, such as other containers, the host or cloud credentials. Scans give breadth and repeatability, and penetration tests give depth and proof of impact. Many organizations run both, with the scan as a regular control and the penetration test as a periodic, scoped exercise. The test report should explain which findings were exploitable in your environment and which were configuration gaps only.

Does a container penetration test check for escape to the host?

Yes, when escape to the host is included in the agreed scope. MITRE ATT&CK technique T1611, Escape to Host, describes adversaries breaking out of a container to reach the underlying host, and from there other containerized resources. A well-scoped test tries to prove or rule out that outcome. Typical areas include privileged containers, host path mounts, excessive Linux capabilities, exposed container runtime interfaces, shared namespaces and the host operating system itself. MITRE D3FEND's page on T1611 is a useful reference for the technique. Because escape testing reaches the host, it needs explicit written authorization, a named host scope, and a stop condition for production systems. Ask the tester how they will avoid disruption and what evidence they will keep.

How is retesting billed after a container penetration test?

Retesting is usually scoped as a separate, defined piece of work, but the supplied facts do not give a fee or duration, so confirm the terms in writing. Ask whether retesting is included in the original quote or priced separately, which findings it covers, how many retest rounds apply, the environment and access it needs, the deadline for fixes, and the format of the closure evidence. Retesting is cheaper when the findings are clear, reproducible and mapped to specific resources, which is one reason to ask for that detail in the report. For continuous work across releases or clusters, a recurring retainer is the usual model. DeployOpen agrees fixed scope, deliverables and timelines in writing before work starts, so the retest terms should be part of that agreement.

Which standards define how a container penetration test is run?

Three public sources shape most container test methods. NIST SP 800-190, the Application Container Security Guide, is a 63 page publication dated September 2017 and available free of charge. Its Section 3 sets out the major risks for container images, registries, orchestrators, the container host and runtime, which gives testers a public list to scope against. NIST SP 800-115 covers technical testing and examination methods for information security assessments. For Kubernetes, the Pod Security Standards define the Privileged, Baseline and Restricted policies, and the NSA and CISA Kubernetes Hardening Guide, updated to version 1.2 in August 2022, gives hardening measures. Ask your tester which standard maps to each test step and how the report links findings to these sources.

How DeployOpen scopes, tests, reports and retests containers

DeployOpen scopes container penetration testing in writing before work starts, covering images, registries, the container host, the runtime and escape to the host. Testing follows the public method in NIST SP 800-190 and the risk categories it defines, and findings are delivered with fixes and a retest.

How we scope

  • Agree in writing which images, registries, hosts and runtimes are in the test
  • Confirm which clusters, namespaces or hosts belong to the client and may be tested
  • Set the escape-to-host question the test must prove or rule out, mapped to MITRE ATT&CK T1611
  • Record whether the work is a container test, a Kubernetes assessment or a configuration scan

How we build

  • Review image contents, build history and base image choices against NIST SP 800-190 risk areas
  • Test the container host operating system, daemon exposure and runtime privileges within agreed limits
  • Attempt container breakout paths in a controlled test environment agreed with the client
  • Use the public method in NIST SP 800-115 to structure planning, testing and analysis

How we hand over

  • Deliver a findings report with severity, affected images or hosts and evidence of each weakness
  • Map each finding to a container risk category and a concrete remediation step
  • Document which escape paths were proven, which were blocked and what remains untested
  • Provide a retest of agreed findings so the client can close them with evidence

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Confirm with your auditor or customer which report format and evidence they expect before testing starts
  • Confirm any cloud provider testing rules for managed container services before scoping

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.