Preserving Volatile Evidence on Amazon EKS - Container Checkpoints, Isolation Order, and What Each Step Destroys
First Published:
Last Updated:
This article outlines, for EKS clusters running on EC2 nodes, what each step stops and what it destroys. It also details what can be preserved using the Kubelet Checkpoint API, and the order in which to acquire and isolate, based on documentation from AWS and Kubernetes. The primary documentation consulted includes: the Amazon EKS Best Practices Guide's section on Incident response and forensics; the Amazon EC2 User Guide's section on Amazon EC2 security group connection tracking; the Amazon GuardDuty User Guide's section on Remediating EKS Protection findings; a blog post from the AWS Containers Blog on Forensic container checkpointing on Amazon Elastic Kubernetes Service (Amazon EKS); two posts from the AWS Security Blog; and Kubernetes documentation.
Within the scope of the available documentation, the answers are as follows: Switching to an isolation security group does not cut tracked connections. Network ACLs cut existing connections entering and exiting the subnet. The sources disagree on whether Network Policies cut existing connections, and this article could not verify it. Cordoning a node does not affect Pods running on that node. EC2 termination protection does not prevent termination initiated by Auto Scaling. When enabled, EKS automatic node repair replaces a node that stays not Ready for 30 minutes. In EKS Auto Mode, repair is always enabled. The Kubelet Checkpoint API writes container memory, file descriptors, sockets, and filesystem differences to the node's disk. On EKS, it is available on Kubernetes version 1.34 or later when CRIU is installed on the node. The order of acquisition and isolation varies depending on the documentation. The Amazon EKS Best Practices Guide places isolation with a Network Policy before acquisition, while an AWS Security Blog post places acquisition before isolation.
This article is neither an implementation guide for checkpoints, a design for detection, nor a procedure for memory analysis. It does not cover attack methods or pricing. It only describes, based on the documentation, what remains and what is removed with each measure, and how to determine the order of operations. The information presented was verified as of November 26, 2026.
Related articles on this site:
- Forensic Evidence on AWS - Acquisition Order, the Forensics Account, Re-Encryption, and EBS Snapshot Lock
- AWS Security Incident Response Playbooks - First-Response Runbooks for Common Scenarios
- Amazon GuardDuty Extended Threat Detection Architecture - Attack Sequences, Runtime Monitoring, and Response Automation
- eBPF on Amazon EKS - What Loads Into Your Nodes, When a Network Policy Starts Enforcing, and Where the Coverage Stops
- Amazon EKS Networking Deep Dive - VPC CNI, IP Address Management, Security Groups for Pods, and Pod Connectivity
- Workload Isolation Levels on Amazon EKS - Which Level You Stopped At, and What That Level Does Not Stop
- Who Can Call the Kubernetes API on Amazon EKS - One-Way Authentication Modes, Which Mapping Wins, and Access Policies Plus RBAC
- What Scales a Pod and What Scales a Node on Amazon EKS - HPA Signals, Karpenter Consolidation, and What Holds Scale-In Back
Table of Contents
- 1. Scope and Assumptions
- 2. What Is Volatile on an EKS Node and When It Disappears
- 3. What Each Step Stops and What It Destroys
- 4. Where a Connection Is Cut
- 5. What the Kubelet Checkpoint API Keeps
- 6. Designing the Order
- 7. Fargate, EKS Auto Mode, and EKS Hybrid Nodes
- 8. Handing Over What You Captured
- 9. Failure Modes
- 10. Frequently Asked Questions About Preserving Volatile Evidence on Amazon EKS
- 11. Summary
- 12. References
1. Scope and Assumptions
This chapter defines the intended audience, scope, relevant materials, and terminology used in this article. The core conclusions are as follows:- This article primarily focuses on EKS running on EC2 nodes, including managed node groups, self-managed nodes, and nodes created by Karpenter. Chapter 7 covers only the differences for AWS Fargate, EKS Auto Mode, and EKS Hybrid Nodes.
- Volatile data can be lost due to container restarts, Pod deletions, or node replacements. Chapter 2 lists what disappears with the container, the Pod, and the node, and its Table 1 lists the mechanisms that replace a node.
- Each step pairs what it stops with what it destroys. Even the steps that destroy nothing leave some things unstopped. Table 2 in Chapter 3 lists them.
- The points at which connections are severed vary depending on the action. Isolation security groups do not cut tracked connections, while network ACLs cut existing connections entering and exiting the subnet. For Network Policies, the sources disagree.
- The Kubelet Checkpoint API can preserve the running state of containers. This functionality requires specific versions of Kubernetes and containerd, CRIU on the node, and permissions for
nodes/checkpoint. - The order of acquisition and isolation varies across different sources. This article does not designate either order as incorrect. It lays out the assumptions behind each order and presents one order as this article's inference.
1.1 Who This Article Is For
This article is intended for security engineers and platform engineers who operate workloads on EC2 nodes within EKS and are responsible for defining response procedures (runbooks) for potentially compromised Pods and nodes, particularly when receiving alerts from services like GuardDuty. This article specifically targets readers who may believe any of the following:- Changing the security group of a node to an isolation security group will cut the attacker's connections.
- Applying a "deny all" Network Policy will completely block a Pod's connections.
- Cordoning a node will stop all Pods running on that node.
- Enabling EC2 termination protection will prevent the node from being terminated.
- Evidence can be collected after the attack has been stopped.
Depending on which statement in which source you read, each of these holds only in part or not at all.
1.2 What This Article Covers and What It Does Not
This article covers the following topics:- What is volatile on EKS nodes and Pods, and the events that remove it.
- The impact of various measures, such as Network Policies, cordon commands, isolation security groups, network ACLs, termination protection, credential revocation, Pod deletion, and node termination – specifically, what each stops and what each destroys.
- Where a connection is cut for tracked connections, untracked connections, network ACLs, and Network Policies.
- The prerequisites, outputs, and methods for protecting those outputs related to the Kubelet Checkpoint API.
- What each source says about the order of acquisition and isolation, and the assumptions behind each.
- Differences in behavior across Fargate, EKS Auto Mode, and EKS Hybrid Nodes.
This article does not cover the following topics.
- Handling account access, keys, locks, and EBS snapshots. The published article Forensic Evidence on AWS - Acquisition Order, the Forensics Account, Re-Encryption, and EBS Snapshot Lock covers this. This article covers acquisition from containers, which that article left out of scope.
- Designing detection mechanisms. The published article Amazon GuardDuty Extended Threat Detection Architecture - Attack Sequences, Runtime Monitoring, and Response Automation covers this. This article begins after a finding has been identified.
- Selecting the appropriate level of isolation during normal operations. The published article Workload Isolation Levels on Amazon EKS - Which Level You Stopped At, and What That Level Does Not Stop covers this.
- Understanding the implementation details of eBPF and Network Policies. The published article eBPF on Amazon EKS - What Loads Into Your Nodes, When a Network Policy Starts Enforcing, and Where the Coverage Stops covers this.
- Implementing the process of taking checkpoints. An article on the AWS Containers Blog details the process, from DaemonSet configuration to code.
- Techniques for analyzing memory and files, along with how to use analysis tools. Also restoring from a checkpoint.
- AWS Security Incident Response, an AWS service.
- Legal admissibility, pricing, and attack methods.
1.3 Confirmation Date and Sources
This article was verified on November 26, 2026, using the following materials. The text calls them by the short names in parentheses.- Amazon EKS Best Practices Guide's sections on Incident response and forensics (BPG) and Karpenter.
- Amazon EC2 User Guide's sections on Amazon EC2 security group connection tracking, Change instance termination protection, Preserve data when an instance is terminated, and Amazon EC2 managed instances (EC2 UG).
- Amazon VPC User Guide's section on Control subnet traffic with network access control lists (VPC UG).
- Amazon EC2 Auto Scaling User Guide's section on Use instance scale-in protection to control instance termination.
- Amazon GuardDuty User Guide's sections on Remediating EKS Protection findings (GuardDuty remediation page) and the section on EKS coverage for Runtime Monitoring.
- Amazon EKS User Guide's sections on Limit Pod traffic with Kubernetes network policies, Update the Amazon VPC CNI, Automatically repair nodes in EKS clusters, Understand the Kubernetes version lifecycle on EKS, EKS Auto Mode, Retrieve node logs using kubectl and Amazon S3, Assign security groups to individual Pods, EKS Hybrid Nodes (CNI and Network Policy section), Configure add-ons for hybrid nodes, and the section on the data plane for Amazon EKS Auto Mode (EKS Auto Mode data plane). (EKS UG)
- AWS re:Post Knowledge Center's article on How do I configure a security group for AWS Fargate Pods in my Amazon EKS cluster?
- AWS Containers Blog's article on Forensic container checkpointing on Amazon Elastic Kubernetes Service (Amazon EKS) (August 12, 2026 – checkpoint post).
- AWS Security Blog's article on How to investigate and take action on security issues in Amazon EKS clusters with Amazon Detective – Part 2 (December 5, 2022 – updated March 15, 2023 – Detective post).
- AWS Security Blog's article on How to automate incident response for Amazon EKS on Amazon EC2 (May 20, 2025 – automation post).
- IAM User Guide's section on Revoke IAM role temporary security credentials.
- Kubernetes documentation's sections on Kubelet Checkpoint API, Kubelet authentication/authorization, Network Policies, Nodes, DaemonSet, Taints and Tolerations, Volumes, Logging Architecture, and Pod Lifecycle, as well as the section on Feature Gates.
- Karpenter documentation's Disruption page.
Articles on the AWS Security Blog and AWS Containers Blog reflect the state of affairs at the time of their publication. The Detective post is more than three years old as of this article's confirmation date. This article cites the steps in those posts as examples of AWS procedures. Any of them can change after publication.
1.4 Terms Used in This Article
This article uses the following terms with the following meanings:- Volatile evidence: Evidence that is lost when a node or container stops. This refers to memory, processes, connection state, files in the container's writable layer, emptyDir volumes, and logs on the node.
- Acquisition: The process of preserving volatile evidence in a format that persists outside the node.
- Pod isolation: Preventing communication for a Pod using Network Policies.
- Node isolation: Preventing communication for a node by changing its security group or applying network ACLs.
- Cutting a connection: Making an established connection stop passing traffic on the spot.
- Stopping new connections: Not letting through connections that are about to be established. Established connections can keep passing traffic.
This article uses four terms to describe the state of the materials. This article uses these English spellings in table cells as well.
- Stated: The material contains a statement regarding the matter.
- No statement found: Despite searching the materials from Section 1.3, using different search terms and examining different sources, no relevant statement could be found. This does not necessarily indicate that the matter is absent or impossible.
- Sources disagree: The statements regarding the same matter differ between two materials. This article will present both statements, along with their sources, without designating either as incorrect.
- Inference: This is an inference made by this article and is not a statement found in any of the materials. This article will clearly indicate when a statement is an inference.
This article writes every date with the year.
2. What Is Volatile on an EKS Node and When It Disappears
This chapter outlines what data is volatile on an EKS node and under what circumstances it disappears. In conclusion, a container's memory and writable layer are lost during a container restart, data inemptyDir and logs are lost when a Pod is removed from the node, and the node's memory is lost when the node is terminated. Nodes can be replaced without any action by the responders.The checkpoint post lists what is lost when a container disappears:
the moment Kubernetes terminates or evicts a container with unintended access, your runtime state is lost: in-memory credentials, active network connections, injected processes, and ephemeral file system changes.
2.1 What Disappears with the Container
When a container restarts, its memory and processes are lost. Any files created or modified within the container are also lost. The Kubernetes Volumes page states:After a crash, kubelet restarts the container with a clean state.
Logs persist for only one generation after a restart. The Kubernetes Logging Architecture page states:
By default, if a container restarts, the kubelet keeps one terminated container with its logs. If a pod is evicted from the node, all corresponding containers are also evicted, along with their logs.
According to the same page, the kubelet rotates container logs, and by default, it retains up to 5 files per container, each up to 10Mi in size.
Containers can restart even if the responders take no action. The Kubernetes Pod Lifecycle page describes liveness probes as follows:
If a container fails its liveness probe more times than the configured tolerance, the kubelet restarts that container.
2.2 What Disappears with the Pod
When a Pod is removed from a node, theemptyDir volume disappears. The Volumes page describes emptyDir as a volume that is created when a Pod is assigned to a node and deleted when the Pod is removed from that node.empty scratch space that is initialized when the Pod is assigned to a node, and is deleted when the Pod is removed from that node.
According to the same page, the volume's data persists across container restarts. Therefore, even though an
emptyDir does not disappear during a container restart, it will be deleted when the Pod is removed.When a Pod is deleted, typically, the kubelet sends a TERM signal to the main process of each container via the container runtime, and after a grace period, sends a KILL signal (the Pod Lifecycle page). As this article's inference, a process that receives a TERM signal can clean up its own state before it exits. The cleanup can include what an attacker left behind.
2.3 What Disappears with the Node
When a node is terminated, the node's memory, as well as all Pods and containers running on that node, are lost. According to the EC2 User Guide, root volumes attached during instance launch are, by default, deleted when the instance is terminated.Nodes can be replaced without action by the responders. Table 1 lists the mechanisms that replace a node and what stops each of them.
| Event | Triggering Mechanism | What Stops It | Source |
|---|---|---|---|
| Consolidation | Karpenter, EKS Auto Mode | Stops when the Pod has the karpenter.sh/do-not-disrupt annotation. | EKS User Guide (Cost page for EKS Auto Mode), BPG (Karpenter) |
| Expiration | Karpenter's expireAfter, EKS Auto Mode's maximum lifetime | Does not stop when the Pod has the karpenter.sh/do-not-disrupt annotation. | Karpenter Disruption page, EKS User Guide |
| Interruption | Spot instance interruptions, etc. | Does not stop when the Pod has the karpenter.sh/do-not-disrupt annotation. EC2 termination protection cannot be applied to Spot instances. | Karpenter Disruption page, EC2 User Guide |
| Automatic Node Repair | EKS automatic node repair | Does not stop when the Pod has the karpenter.sh/do-not-disrupt annotation. Settings cannot be modified in EKS Auto Mode. | EKS User Guide (Automatically repair nodes) |
| Auto Scaling Scale-In, Replacement due to Health Checks | Managed Node Group Auto Scaling Group | Scale-in protection prevents scale-in operations, but does not prevent replacement due to health checks. EC2 termination protection does not prevent either. | EC2 Auto Scaling User Guide, EC2 User Guide |
| Manual Deletion | kubectl delete node, Instance termination | EC2 termination protection prevents termination via the EC2 API. No statement found for a way to stop kubectl delete node. | Karpenter Disruption page, EC2 User Guide |
When enabled, automatic node repair replaces a node whose Ready condition stays not Ready for 30 minutes in a row. According to the EKS User Guide, repair is enabled by default in EKS Auto Mode, and you enable it for managed node groups and self-managed Karpenter. The EKS User Guide states:
Automatic node repair is a forceful action.
On every compute type, the `karpenter.sh/do-not-disrupt` annotation doesn’t exclude a node from repair.
In EKS Auto Mode, automatic node repair is always enabled, and its settings cannot be changed.
Automatic node repair cannot be configured when using EKS Auto Mode. It is always enabled there, with the default settings described in this topic.
According to the same page, with self-managed Karpenter version 1.15.0 and later, you can exclude a node from repair by adding the
karpenter.sh/do-not-repair annotation to that node. Managed node groups let you choose whether to enable repair and configure its behavior per condition.The lifetime of an EKS Auto Mode node has an upper limit. The EKS User Guide states:
EC2 managed instances operated by EKS Auto Mode have a maximum lifetime of 21 days.
As this article's inference, isolating a node can trigger automatic node repair. If a node's security groups or network ACLs prevent communication between the node and the EKS control plane, the kubelet will be unable to report the node's status. If the node stays not Ready for 30 minutes, repair can replace the node. Section 4.4 examines this issue from a connectivity perspective.
3. What Each Step Stops and What It Destroys
This chapter lists, for each step the responders take, what it stops, what it does not stop, and what it destroys. In conclusion, every step that destroys nothing (the investigation label, cordon, termination protection, scale-in protection,karpenter.sh/do-not-disrupt) leaves something unstopped. The steps that cut traffic differ in which connections they cut. Deleting a Pod and terminating a node remove all volatile evidence within their respective scopes.Figure 1 shows what each step stops and what it destroys.

| Step | Stops | Does Not Stop | Destroys and Scope | Source |
|---|---|---|---|---|
| Investigation label | None. The BPG describes it as a warning to administrators. | Mechanism-based replacement, attacks. | None. | BPG |
| Cordon | Scheduling of new Pods. | Running Pods, scheduling of DaemonSet Pods, node replacement. | None. | Kubernetes Nodes and DaemonSet pages |
| EC2 Termination Protection | Termination via EC2 API. | Termination via Auto Scaling, OS shutdown (when shutdown behavior is terminate), scheduled termination events. Not applicable to Spot Instances. | None. | EC2 User Guide |
| Scale-In Protection | Termination via Auto Scaling scale-in. | Replacement due to health checks, Spot interruption, manual termination. | None. | EC2 Auto Scaling User Guide |
karpenter.sh/do-not-disrupt | Voluntary disruption such as consolidation. | Expiration, interruption, automatic node repair, manual deletion. | None. | Karpenter Disruption page, EKS User Guide |
| Network Policy (deny all) | New connections of the Pod (Section 4.3 covers whether it cuts existing connections). | Attackers who have penetrated the host. Communication permitted by other Network Policies. | Pod communication. Not applicable to Fargate. | BPG, Kubernetes Network Policies page, EKS User Guide |
| Isolation Security Group | New connections, untracked connections. | Tracked connections. | Communication for containers on the node. For Pods assigned a security group via Security Groups for Pods, the Pod's security group applies. Inference: blocking communication with the control plane can trigger automatic node repair. | EC2 User Guide, EKS User Guide, BPG, Detective post |
| Network ACL | Communication entering and exiting the subnet, including existing connections. | Communication between resources within the same subnet. | All resources within the subnet using the Network ACL. Connection state. | EC2 User Guide, VPC User Guide, Detective post |
| Credential Revocation | Use of temporary credentials issued before the revocation time. | The credentials themselves remaining in memory. Credentials obtained by assuming the role after the revocation. | All entities using the same IAM role, for sessions prior to revocation. | IAM User Guide, automation post |
| Container pause | Inference: progress of the container's processes. | No statement found. | Inference: repeated liveness probe failures can make the kubelet restart the container, which can wipe its memory and writable layer. | BPG, Kubernetes Pod Lifecycle page |
| Pod Deletion | All processes within the Pod. | Another Pod within the same workload. The controller will create a new Pod. | Memory, processes, connections, writable layer, emptyDir, logs. | BPG, Kubernetes Volumes and Logging Architecture page |
| Node Termination | All processes on the node. | Other nodes. | Node memory, all Pods on the node, root volume by default. | GuardDuty Remediation page, EC2 User Guide |
3.1 Steps That Change Nothing on the Node
Labels, cordon, termination protection, scale-in protection, andkarpenter.sh/do-not-disrupt do not alter any volatile evidence on the node. However, none of them stops attacks or node replacement entirely.Cordon informs the scheduler not to assign new Pods to the node. The BPG describes this as:
By cordoning the impacted worker node, you’re informing the scheduler to avoid scheduling pods onto the affected node. This will allow you to remove the node for forensic study without disrupting other workloads.
Cordon does not affect running Pods. The Kubernetes Nodes page describes this as:
Marking a node as unschedulable prevents the scheduler from placing new pods onto that Node but does not affect existing Pods on the Node.
DaemonSet Pods can still be assigned to a cordoned node. The Kubernetes DaemonSet page describes one of the automatic tolerations applied to DaemonSet Pods as:
DaemonSet Pods can be scheduled onto nodes that are unschedulable.
As this article's inference, this property is useful when implementing acquisition mechanisms within a DaemonSet. Acquisition mechanism Pods can still be assigned to a cordoned node.
EC2 termination protection prevents termination via the EC2 API. The BPG explains the reasons for enabling termination protection as follows:
An attacker may attempt to erase their misdeeds by terminating an affected node.
However, the EC2 User Guide clarifies what termination protection does not prevent:
Enabling termination protection does not prevent Amazon EC2 Auto Scaling from terminating an instance when the instance is unhealthy or during scale-in events.
You can't enable termination protection for Spot Instances.
Nodes within a managed node group are part of an Auto Scaling group. According to the EC2 User Guide, whether the Auto Scaling group terminates unhealthy instances can be controlled by suspending the ReplaceUnhealthy process. This article has not confirmed whether you can suspend this process in a managed node group's Auto Scaling group. Scale-in protection prevents terminations caused by scale-in events, but according to the EC2 Auto Scaling User Guide, it does not prevent replacements triggered by health checks. In addition to termination protection, the Detective post changes the shutdown behavior to Stop. According to the EC2 User Guide, termination protection does not stop termination by a shutdown from within the OS when the shutdown behavior is set to terminate.
karpenter.sh/do-not-disrupt prevents Karpenter and EKS Auto Mode from consolidating and deleting nodes. The Karpenter section of the BPG describes this as:By adding a `karpenter.sh/do-not-disrupt` annotation to the pod, you are instructing Karpenter to preserve the node until the Pod is terminated or the `karpenter.sh/do-not-disrupt` annotation is removed.
According to the Karpenter Disruption page, this annotation does not exclude a node from the forceful disruption methods: expiration, interruption, node repair, and manual deletion. As shown in Table 1 in Section 2.3, the EKS User Guide also states that this annotation does not exclude a node from repair.
3.2 Steps That Cut Traffic
Network Policies, isolation security groups, and network ACLs all restrict communication. They differ in the scope of their restrictions and how they handle existing connections. Chapter 4 will discuss these aspects from the perspective of connections.Network Policies operate at the Pod level, security groups at the node network interface level, and network ACLs at the subnet level. The BPG describes the case where a Network Policy does not work as follows:
A Network Policy may prove ineffective if an attacker has gained access to underlying host. If you suspect that has happened, you can use AWS Security Groups to isolate a compromised host from other hosts. When changing a host’s security group, be aware that it will impact all containers running on that host.
3.3 Revoking Credentials
The BPG and GuardDuty remediation pages describe how to remove IAM roles assigned to nodes or Pods, or how to remove IAM policies. The IAM User Guide details the process for revoking temporary IAM role credentials issued prior to a specific time.All temporary credentials for that role issued before the specified time become invalid.
This deny policy applies to all users of the specified role, not just those with longer duration console sessions
The automation post describes the impact of revoking node credentials as follows:
revoking the AWS Security Token Service (AWS STS) credentials or changing the instance profile on the EC2 instance will impact all pods on the EC2 instance.
As this article's inference, revoking credentials does not destroy evidence in memory. The credentials remain in memory and can be examined if acquired. However, revocation represents a change visible from the attacker's perspective. The Detective post discusses the risk that malware may attempt to erase traces if resources are quarantined before capture (Section 6.1). As this article's inference, credential revocation carries the same risk.
3.4 Pausing a Container
The BPG lists pausing the container as one of the steps to capture volatile artifacts (Pause the container for forensic capture). The BPG does not state what a pause stops. As this article's inference, a pause stops the progress of the container's processes and leaves its memory as it is.As this article's inference, a pause interacts with the liveness probe mechanism described in Section 2.1. A paused container will not respond to the liveness probe. If the number of failed probes exceeds the configured threshold, kubelet may restart the container, potentially resulting in the loss of memory and the writable layer. The BPG does not state the relationship between pausing and the liveness probe (No statement found).
3.5 Deleting the Pod and Terminating the Node
The BPG places a step to redeploy the compromised Pod or workload resource after the evidence is gathered. The GuardDuty remediation page includes the step to terminate the node at the end of the procedure for nodes suspected of compromise.Terminate the potentially compromised node.
Deleting the Pod and terminating the node both remove volatile evidence. The BPG outlines the process for recreating the Pod, which involves fixing vulnerabilities and launching a new Pod before deleting the vulnerable Pod. As this article's inference, this order sits outside the acquisition steps. Finish acquisition before deleting the Pod and terminating the node.
4. Where a Connection Is Cut
This chapter lists where a connection is cut by security groups, network ACLs, and Network Policies. The conclusion is that isolation security groups do not cut tracked connections, while network ACLs cut those entering and exiting the subnet. For Network Policies, the sources disagree (Sources disagree). Cutting a connection also removes the connection as evidence.Table 3 lists how each step handles existing and new connections.
| Measure | Existing Connections | New Connections | Scope | Status |
|---|---|---|---|---|
| Changing security group rules, or switching to an isolation security group | Tracked connections continue until timeout. Untracked connections are cut immediately. | Blocked | Network interface (containers on a node, excluding Pods assigned a security group via Security Groups for Pods) | Stated (EC2 UG, EKS UG, Detective post) |
| Denying with a network ACL | Cut (connections entering and exiting the subnet) | Blocked | All resources within a subnet | Stated (EC2 UG, Detective post) |
| Network Policy (deny all) | Sources disagree on whether they are cut. | Blocked (excluding communication permitted by other Network Policies) | Pod | Sources disagree (BPG, Kubernetes Network Policies page, automation post) |
4.1 Security Groups
The EC2 User Guide states that when security group rules change, tracked connections are not immediately interrupted.When you change a security group rule, its tracked connections are not immediately interrupted. The security group continues to allow packets until existing connections time out.
Untracked connections, on the other hand, are cut immediately when the rule that allows them is removed. According to the EC2 User Guide, if there are rules allowing all source addresses (0.0.0.0/0 or ::/0) for TCP and UDP, along with corresponding rules allowing all responses, those connections will not be tracked. However, connections through NAT gateways, Network Load Balancers, and similar are automatically tracked. The Detective post discusses isolation security groups, stating:
Applying an isolation security group will drop untracked connections. For tracked connections, new connections with the host will not be allowed from the isolation security group, but existing tracked connections will not be interrupted.
The connection tracking timeout determines how long tracked connections stay open. According to the EC2 User Guide, the default timeout for idle TCP connections on Nitro v6 instance types (excluding P6e-GB200) is 350 seconds, while for all other instance types, it is 432000 seconds (5 days). As this article's inference, this timeout counts idle time. Active connections will not reach the timeout.
Chapter 4 of the published article Forensic Evidence on AWS - Acquisition Order, the Forensics Account, Re-Encryption, and EBS Snapshot Lock also covers tracked connections of security groups and the decision to isolate an EC2 instance.
4.2 Network ACLs
Network ACLs cut existing connections. The EC2 User Guide states:Adding a network ACL that blocks traffic in either direction breaks existing connections.
The Detective post describes network ACLs as follows:
Because network ACLs are stateless firewalls, all connections will be interrupted, whether they are tracked or untracked connections.
The same post also notes, as an important consideration, that network ACLs apply to all subnets that use them, as well as all resources within those subnets. EKS nodes may reside within the same subnet as other nodes and Pods.
However, network ACLs only evaluate communication entering and exiting the subnet. The VPC User Guide states:
We evaluate the network ACL rules when traffic enters and leaves the subnet, not as it is routed within a subnet.
As this article's inference, even if a network ACL blocks traffic, communication with other nodes or Pods within the same subnet is not stopped.
4.3 Network Policies
Sources disagree on whether Network Policies cut existing connections. This article could not verify it on EKS.The BPG describes Network Policies with a "deny all" rule as follows:
A deny all traffic rule may help stop an attack that is already underway by severing all connections to the pod.
The Kubernetes Network Policies page states that whether existing connections are cut is left to the implementation of the network plugin.
Example: A policy is created that leads to denying a previously allowed connection, the underlying network plugin implementation is responsible for defining if that new policy will close the existing connections or not.
Amazon VPC CNI implements EKS Network Policies. The published article eBPF on Amazon EKS - What Loads Into Your Nodes, When a Network Policy Starts Enforcing, and Where the Coverage Stops states, based on an AWS re:Post article, that established connections take a fast path through the connection tracking map, and that only new connections go to Network Policy evaluation. The EKS User Guide also mentions that the Network Policy agent maintains a connection tracking map (Conntrack map). However, this article found no AWS statement on whether established connections are cut when a "deny all" Network Policy is applied.
The automation post describes Network Policies as follows:
Network policies, like NACLs, are stateless and control network traffic at the IP address or port level in an EKS cluster.
In contrast, the Kubernetes Network Policies page states that responses to allowed connections are implicitly allowed.
Reply traffic for those allowed connections will also be implicitly allowed.
As this article's inference, do not treat a Network Policy as a step that cuts existing connections. If you must reliably cut existing connections, the step that the sources say cuts them is a network ACL. However, network ACLs apply to an entire subnet.
In addition to existing connections, there are four conditions that determine how Network Policies take effect.
First, Network Policies operate on an additive basis. The Kubernetes Network Policies page states the following, and goes on to say that the allowed connections are the union of what the applicable policies allow. Therefore, if another Network Policy applies to the same Pod and allows communication, even if a "deny all" Network Policy is added, that communication will continue to function.
Network policies do not conflict; they are additive.
Second, the "Deny" setting in the EKS Admin tier's ClusterNetworkPolicy cannot be overridden by namespace-level Network Policies. According to the EKS User Guide, Admin tier Network Policies are available with Amazon VPC CNI version 1.21.0 and later.
When an Admin policy with a Deny action matches traffic, that traffic is immediately blocked regardless of any other policies.
Third, according to the EKS User Guide, Amazon VPC CNI Network Policies only apply to EC2-based Linux nodes. They do not apply to Fargate or Windows nodes.
You can’t apply the policies to Fargate or Windows nodes.
Fourth, according to the EKS User Guide, Network Policies may not always reliably apply to standalone Pods that do not have a controller (Pods without
metadata.ownerReferences).4.4 Cutting a Connection Also Removes Evidence
A connection, in itself, constitutes evidence. The checkpoint post lists connection state among what a checkpoint keeps, and says that it helps trace communication with command-and-control infrastructure. As this article's inference, if you acquire the connection state before cutting a connection, you can still investigate what it was communicating with after the cut.As this article's inference, isolating a node has another consequence. When a node's security groups or network ACLs prevent communication with the EKS control plane, the kubelet is no longer able to report the node's status. According to the Kubernetes Taints and Tolerations page, when a node becomes not ready or unreachable, Pods stay bound to that node for five minutes.
These automatically-added tolerations mean that Pods remain bound to Nodes for 5 minutes after one of these problems is detected.
After that, those Pods become subject to eviction. Moreover, if the node stays not Ready for 30 minutes, automatic node repair can replace it (Section 2.3). With security groups, the existing connections between the kubelet and the control plane can stay open as tracked connections. This article has not confirmed how many minutes it takes for a node switched to an isolation security group to become not Ready.
5. What the Kubelet Checkpoint API Keeps
This chapter outlines the prerequisites, data captured, and changes resulting from the Kubelet Checkpoint API, as well as how to protect the archive. In essence, the checkpoint process writes the container's memory, file descriptors, sockets, and file system differences to the node's disk, without terminating the container. During the capture, the processes are frozen. The archive contains every secret in the container's memory.5.1 Prerequisites
Table 4 lists the prerequisites for using the Kubelet Checkpoint API in EKS.| Prerequisite | Description | Source |
|---|---|---|
| Kubernetes Feature Stage | The ContainerCheckpoint feature gate is in alpha in version 1.25 and beta from version 1.30, and is enabled by default. | Kubernetes Kubelet Checkpoint API and Feature Gates pages |
| EKS Version | Kubernetes version 1.34 or later. The checkpoint post states that with 1.34, containerd 2.x implements CheckpointContainer. containerd 1.7.x on 1.30 to 1.33 does not. | Checkpoint post |
| Node CRIU | Amazon EKS AL2023 AMIs do not include CRIU. It must be installed separately. | Checkpoint post |
| Endpoint | kubelet POST /checkpoint/{namespace}/{pod}/{container} | Kubernetes Kubelet Checkpoint API page |
| Permissions | The kubelet API endpoint /checkpoint/* corresponds to the checkpoint subresource of the nodes resource. The checkpoint post uses a ClusterRole that allows create on nodes/checkpoint. | Kubernetes Kubelet authentication/authorization page, checkpoint post |
| Storage Location | Node /var/lib/kubelet/checkpoints/ (the checkpoints directory under the kubelet's --root-dir) | Kubernetes Kubelet Checkpoint API page |
The checkpoint post describes the history of availability in EKS as follows:
Kubernetes v1.25 introduced the Kubelet Checkpoint API (KEP-2008), and v1.30 promoted it to beta.
With Amazon EKS 1.34, the underlying container runtime (containerd 2.x, at the time of this writing) implements this RPC, making the capability available on Amazon EKS.
containerd 1.7.x (shipped with Amazon EKS 1.30–1.33) doesn’t implement the `CheckpointContainer` RPC.
According to the EKS UG, as of November 26, 2026, the standard support versions for EKS are 1.34, 1.35, 1.36, and 1.37. Standard support for version 1.34 will end on December 2, 2026. The checkpoint post states that it tested on AL2023 nodes with 1.34, containerd 2.2.1, and CRIU 3.17.1. This article could not confirm whether CRIU can be used on Bottlerocket nodes (No statement found).
5.2 What the Archive Contains and What It Does Not
According to the checkpoint post, the acquired archive (tar file) contains the following:checkpoint/: Memory pages, file descriptors, and process metadata.rootfs-diff.tar: Files that have changed since the container was started.bind.mounts: Information about bind mounts.config.dumpandspec.dump: Runtime configuration for the container.criu.work/: CRIU working directory and dump logs.
The checkpoint post states that the archive reveals data structures within memory, cached credentials, sockets and their destinations, files placed after startup, and the process tree.
A checkpoint is taken per container. The endpoint specifies a namespace, a Pod, and a container. As this article's inference, the node's memory, the kernel state, and other containers on the same node are not in the archive. The OS memory capture that the BPG lists is a separate acquisition from a checkpoint. The checkpoint post notes that when an archive is restored on a different host, TCP connections typically do not survive.
5.3 What Capturing Changes
A checkpoint freezes the container's processes during the capture. The checkpoint post describes the Kubelet Checkpoint API flow as follows:containerd invokes CRIU to freeze the container process and capture its runtime state.
The container typically continues running.
The checkpoint post states that it can capture without stopping the workload. It also gives values from its test environment: capturing a container running on an m5.xlarge node with a resident memory range of 200 to 400 MB completes in under 10 seconds, while containers with 1 to 2 GB of memory may take between 30 and 60 seconds. These are values from the post's test environment, not specifications. As this article's inference, the container does not respond to requests while it is frozen. If the freeze lasts too long, the liveness probe described in Section 2.1 may fail.
A checkpoint writes to the node's disk. The resulting tar archive is placed in the node's
/var/lib/kubelet/checkpoints/ directory. As this article's inference, if you acquire disk evidence with EBS snapshots, the snapshot also contains the archive. The archive also reduces free disk space by its size.If you deploy the capture mechanism to a node after an incident, the node changes. The checkpoint post describes a DaemonSet that installs CRIU, which uses a privileged init container to install the package into the host's file system. As this article's inference, install CRIU and the capture mechanism before an incident.
5.4 Protecting the Archive
The archive contains secrets from memory. The Kubernetes Kubelet Checkpoint API page states:Typically a checkpoint contains all memory pages of all processes in the checkpointed container. This means that everything that used to be in memory is now available on the local disk. This includes all private data and possibly keys used for encryption.
The same page also states that the container runtime should create the archive so that only the root user can access it. It also notes that when the archive is transferred to another system, the owner of the archive can read all memory pages.
The checkpoint post describes a configuration where the archive is packaged as an OCI image and stored in Amazon ECR. It describes encryption at rest, access restrictions with repository policies, and expiration with lifecycle policies. The same post advises copying an archive that an investigation needs beyond that window to a separate repository or archive.
5.5 Who Can Take a Checkpoint
Principals with thenodes/checkpoint permission can turn container memory into an archive. As this article's inference, this permission is close to permission to read secrets in memory. The checkpoint post recommends scoping this permission to specific service accounts. It also states that if EKS control plane logging is enabled, you can audit who took a checkpoint and when.According to the Kubernetes Kubelet authentication/authorization page, API paths not listed in the table fall under the
nodes/proxy subresource. As this article's inference, check which principals are allowed nodes/proxy together with nodes/checkpoint. The published article Who Can Call the Kubernetes API on Amazon EKS - One-Way Authentication Modes, Which Mapping Wins, and Access Policies Plus RBAC covers which principals can call the Kubernetes API on Amazon EKS.6. Designing the Order
This chapter outlines the order of acquisition and isolation, listing what each source says and assumes, and presents one order as this article's inference. In conclusion, the BPG puts isolation via Network Policy and credential revocation before acquisition, while the Detective post and the automation post place acquisition before isolation. The two orders rest on different assumptions.Figure 2 shows the two orders and what can be lost between them.

6.1 What Each Source Says
Table 5 lists the order of actions described in each source, using the exact wording from the source material's headings.| Source (Section) | Order the Source Gives (Opening Words of Each Heading) | Where Isolation Sits | Where Acquisition Sits |
|---|---|---|---|
| BPG (Sample incident response plan) | Isolate the Pod by creating a Network Policy, Revoke temporary security credentials, Cordon the worker node, Enable termination protection, Label the offending Pod/Node, Capture volatile artifacts on the worker node, Redeploy compromised Pod or Workload Resource | Network Policy first. Security groups are mentioned as a precaution when a host is suspected of being compromised. | After cordon, termination protection, and labeling. |
| Detective post (Remediation techniques for Amazon EKS) | To preserve forensic evidence (including termination protection and shutdown behavior, labeling, cordon, and collection of volatile and non-volatile data), To quarantine EKS resources (Network Policy, isolation security groups, network ACL), To remove unauthorized permissions (including credential revocation). | After data collection. | After termination protection, labeling, and cordon. |
| Automation post (Solution overview) | Begin collecting memory and disk data concurrently. Once memory collection is complete, isolate the node using cordon, Network Policy, and restricted security groups. Isolation is performed only when selected through a Security Hub custom action. | After memory collection. | First. |
| GuardDuty remediation page (Remediating potentially compromised Kubernetes nodes) | Isolate the pod, rotate its credentials, and gather data for forensic analysis. Verify service accounts. Terminate the potentially compromised node. | In the first step, together with acquisition. | In the first step. |
The Detective post gives its reason for putting acquisition before isolation as follows:
If you quarantine resources before you capture forensic artifacts, there is a risk that running processes will be interrupted or that the malware attempts to destroy resources that are valuable to a forensics investigation, to cover its tracks.
The automation post describes isolation after memory acquisition as follows:
Post memory acquisition completion, the node is isolated by cordoning the node, creating a network policy, and applying a restricted security group to the cluster.
At its beginning, the BPG says that you must choose between destroying and replacing, and isolating and inspecting.
When an incident does arise, you have to quickly decide whether to destroy and replace the effected container, or isolate and inspect the container.
6.2 What Each Order Assumes
In this article's reading, the two orders guard against different risks first.- The BPG order stops an attack in progress first. The BPG states that a "deny all" Network Policy can help stop an attack that is already underway (Section 4.3). In exchange, the Pod's traffic and the credentials change before acquisition.
- The Detective post's order protects evidence first. It states that quarantining before acquisition can interrupt running processes and potentially allow malware to erase traces. In exchange, the attacker's traffic continues during acquisition.
In both the BPG order and the Detective post's order, cordon, termination protection, and labels come before acquisition. The automation post places cordon after memory acquisition. Sources that include steps for deleting Pods or terminating nodes (the BPG, the Detective post, and the node procedure on the GuardDuty remediation page) all place these steps after acquisition. The sources disagree on where Network Policies, security groups, and credential revocation sit (Sources disagree).
As this article's inference, the BPG order loses only a limited amount. If the Network Policy implementation does not cut existing connections, isolating a Pod destroys neither memory nor connection state. However, as noted in Section 4.3, this article could not verify whether Network Policies cut existing connections on EKS.
6.3 An Order This Article Proposes
As this article's inference, this article proposes the following order. It is not the procedure of any source.- Take the steps that destroy nothing: the investigation label, cordon, EC2 termination protection and the shutdown behavior (excluding Spot Instances), scale-in protection, and the
karpenter.sh/do-not-disruptannotation. Also decide how to handle automatic node repair. Managed node groups can have their repair settings modified, and self-managed Karpenter versions 1.15.0 and later can use thekarpenter.sh/do-not-repairannotation. - Acquire the most volatile data. This includes checkpoints, node memory, and connection states.
- Isolate Pods. Apply Network Policies (excluding Fargate). So that no allow rule from another Network Policy that selects the same Pod remains, use an Admin tier Deny or check the existing Network Policies. If you must reliably cut existing connections, assess the impact of network ACLs before applying them.
- If there is suspicion that a host has been compromised, isolate the node. Switch it to an isolation security group. For Pods assigned a security group via Security Groups for Pods, also replace the Pod's security group.
- Revoke credentials.
- Acquire non-volatile data. This includes EBS snapshots.
- Recreate workloads, delete Pods, and terminate nodes.
This order is subject to exceptions. If the impact of an attack is deemed more significant than the time acquisition takes (e.g., data continues to be exfiltrated), take steps 3 through 5 before step 2. This judgment is this article's inference, and the sources give no criteria for it (No statement found). Even when you isolate first, you can take the steps in step 1 before isolating.
6.4 What to Decide Before an Incident
As this article's inference, decide the following before an incident:- On which nodes, and when, to install the checkpoint capture mechanism and CRIU (Section 5.3).
- Which principals to grant
nodes/checkpoint(Section 5.5). - Where the collected data will be stored and to which accounts it will be delivered (Chapter 8).
- How to handle automatic node repair on nodes under investigation. The available options differ depending on whether the nodes are part of a managed node group, self-managed with Karpenter, or using EKS Auto Mode (Section 2.3).
- How to handle Spot instances. Note that Spot instances cannot have EC2 termination protection enabled.
- Whether to use network ACLs when you cut existing connections, and who assesses the impact on resources in the same subnet.
7. Fargate, EKS Auto Mode, and EKS Hybrid Nodes
This chapter outlines the differences in procedures when using environments other than EC2 nodes. In conclusion, Amazon VPC CNI Network Policies cannot be applied on Fargate, which disagrees with the BPG's note about Fargate. In EKS Auto Mode, software cannot be installed on the nodes, and automatic node repair cannot be stopped. As this article's inference, EC2 steps do not apply to EKS Hybrid Nodes.Table 6 lists how this article's steps and acquisition apply to each compute type.
| Item | Fargate | EKS Auto Mode | EKS Hybrid Nodes |
|---|---|---|---|
| Node Access | Inference: you cannot access the nodes. The BPG states that each Fargate Pod runs in its own sandboxed environment. | SSH and Session Manager are not available. Software installation is not possible. | Nodes located outside of the AWS cloud, on the user's equipment. |
| Cordon | The BPG states that this does not apply to Fargate. | Available (Inference). | Available (Inference). |
| Network Policy | Amazon VPC CNI Network Policies are not applicable (EKS UG). The BPG states that Fargate Pods should be isolated with a Network Policy (Sources disagree). | Available (Inference). | When using Cilium as the CNI, AWS supports Network Policies. Amazon VPC CNI is not supported (EKS UG). |
| EC2 Termination Protection, Security Groups | Security Groups for Pods can attach security groups to Fargate Pods (AWS re:Post). Whether it works for isolation is an Inference. | EC2 managed instances with IAM-enforced restrictions. Changing the instance profile and attaching or detaching network interfaces are not possible (Amazon EKS Auto Mode Security Overview). The EC2 User Guide states that managed instances cannot be directly modified or terminated, and lists EKS Auto Mode among the services that offer them. | EC2 measures are not applicable (Inference: These are not EC2 instances). |
| Automatic Node Repair | Inference: Not applicable. | Always enabled; its settings cannot be changed. | No statement found. |
| Checkpoint | Inference: CRIU cannot be installed on the node, so it is not usable. | Inference: CRIU cannot be installed on the node, so the checkpoint post's configuration does not work. | No statement found. |
| Node Log Collection (NodeDiagnostic) | Not available (EKS UG). | Available; the agent is included. | Inference: available. The EKS User Guide states that node log collection works on any node that runs the EKS node monitoring agent, and lists the agent as an add-on compatible with hybrid nodes. |
| GuardDuty Runtime Monitoring | Not supported. | Supported. | Not supported. |
The BPG states the following about Fargate:
This guidance is not applicable to Fargate where each Fargate pod run in its own sandboxed environment. Instead of cordoning, sequester the affected Fargate pods by applying a network policy that denies all ingress and egress traffic.
On the other hand, the EKS User Guide states that Amazon VPC CNI Network Policies cannot be applied to Fargate (Section 4.3). This article has not confirmed another way to apply Network Policies to Fargate Pods.
Regarding EKS Auto Mode, the EKS User Guide states:
You can’t directly access or install software on instances managed by EKS Auto Mode.
As this article's inference, the configuration in the checkpoint post, which uses a DaemonSet to install CRIU on the host, does not work on EKS Auto Mode. As a means of obtaining data compatible with EKS Auto Mode, the EKS User Guide describes a procedure that uses the NodeDiagnostic custom resource to bundle node logs and send them to Amazon S3, and a procedure to capture the node's network traffic. As this article's inference, the traffic capture procedure captures only traffic after it starts; it does not capture traffic from before it starts.
EKS Hybrid Nodes turn the user's own machines outside the AWS Cloud into EKS nodes. According to the EKS User Guide, Amazon VPC CNI cannot be used with EKS Hybrid Nodes, and the CNI supported by AWS is Cilium. This article has not confirmed how Cilium's Network Policies handle existing connections. According to the GuardDuty User Guide, Runtime Monitoring does not support EKS Hybrid Nodes or Fargate. As this article's inference, on EKS Hybrid Nodes, you prepare equivalents of EC2 termination protection, security groups, and EBS snapshots with the means of the hardware itself.
8. Handing Over What You Captured
This chapter briefly discusses where to transfer the captured data. In conclusion, hand the captured data over to a place outside the compromised account. A published article covers the design of the handover.The checkpoint post describes a configuration that sends the captured data to an Amazon ECR repository within the same account as the cluster. As this article's inference, this repository is in the compromised account, and a principal with permissions in that account can delete it. The published article Forensic Evidence on AWS - Acquisition Order, the Forensics Account, Re-Encryption, and EBS Snapshot Lock covers the handover of EBS snapshots and memory dumps to a forensics account, including re-encryption with keys and EBS snapshot locking. As this article's inference, hand over checkpoint archives to the forensics account in the same way.
During the handover process, you can hit denials from AWS KMS key permissions. A separate article published on the same day, AWS KMS AccessDenied by Service - Which Principal Needs Which Action, and in Which Policy, covers, service by service, which principal needs which KMS action in which policy.
9. Failure Modes
This chapter lists failures that can occur with the steps in this article, with the source statements behind each.- Assuming that switching the node's security group to an isolation security group cut the attacker's connections. Tracked connections continue until they time out (Section 4.1).
- Assuming that applying a "deny all" Network Policy cut the Pod's connections. The sources disagree on whether existing connections are cut. Traffic that other Network Policies allow also continues (Section 4.3).
- Isolating Fargate Pods with Amazon VPC CNI Network Policies. The EKS User Guide states that they cannot be applied to Fargate (Chapter 7).
- Assuming that cordoning the node stopped the Pods on it. Cordon does not affect running Pods (Section 3.1).
- Assuming that EC2 termination protection keeps the node from disappearing. It does not stop termination by Auto Scaling or replacement by automatic node repair (Sections 2.3 and 3.1).
- Assuming that the
karpenter.sh/do-not-disruptannotation keeps the node from being replaced. Expiration, interruption, repair, and manual deletion still remove it (Section 2.3). - Postponing acquisition after isolating the node. If communication with the control plane stops, the node can be replaced after it stays not Ready for 30 minutes (Section 4.4).
- Postponing acquisition while the container is paused. Repeated liveness probe failures can restart the container (Section 3.4).
- Installing CRIU and the capture mechanism on the node after an incident. The node changes, and on EKS Auto Mode you cannot install them (Section 5.3, Chapter 7).
- Keeping checkpoint archives only on the node's disk or in the compromised account. The archives contain secrets from memory, and principals in that account can delete them (Section 5.4, Chapter 8).
- Granting
nodes/checkpointbroadly. Principals with it can turn container memory into an archive (Section 5.5). - Deleting the Pod or terminating the node before acquisition. Memory, processes, connections, the writable layer, emptyDir, and logs are lost (Section 3.5).
10. Frequently Asked Questions About Preserving Volatile Evidence on Amazon EKS
This chapter briefly summarizes the content of this article in response to six common questions.Does replacing a node's security group with an isolation security group cut the attacker's connections?
No, tracked connections are not cut. According to the Amazon EC2 User Guide, changing a security group does not immediately cut off tracked connections; packets will continue to pass until those connections time out. Untracked connections, however, are cut immediately. For Pods assigned a security group via Security Groups for Pods, the Pod's security group applies instead of the node's. The step that this guide says cuts existing connections is a network ACL. Network ACLs apply to all resources within a subnet but do not evaluate communication within that subnet.Does a deny-all network policy cut existing connections to a Pod on Amazon EKS?
The sources disagree, and this article could not verify it. The Amazon EKS Best Practices Guide states that a deny-all rule severs all connections to a Pod. However, the Kubernetes documentation leaves whether existing connections are cut to the implementation of the network plugin. This article found no AWS statement addressing how existing connections are handled in the Amazon VPC CNI implementation. Traffic that other Network Policies selecting the same Pod allow continues even after a deny-all Network Policy is added.Does EC2 termination protection keep an Amazon EKS node from being replaced?
No, it does not stop every kind of termination. The Amazon EC2 User Guide states that termination protection does not stop Amazon EC2 Auto Scaling from terminating unhealthy instances or terminating instances during scale-in. It cannot be applied to Spot Instances. When enabled, EKS automatic node repair replaces a node that stays not Ready for 30 minutes. In EKS Auto Mode, repair is always enabled.Does the Kubelet Checkpoint API stop the container while it captures the state?
It freezes the processes during the capture. The AWS Containers Blog post on forensic container checkpointing states that CRIU freezes the container's processes to capture their state, while the container typically continues to run. In the post's test environment, using a container with a resident memory footprint of 200 to 400 MB on an m5.xlarge node, the capture process completed in under 10 seconds. This is not a specified value.Which Amazon EKS versions support container checkpointing?
Kubernetes 1.34 or later. The AWS Containers Blog post on forensic container checkpointing states that with Amazon EKS 1.34, containerd 2.x implements the checkpoint call, while containerd 1.7.x in Amazon EKS 1.30 through 1.33 does not. The AL2023 AMI for Amazon EKS does not include CRIU, so you install it separately. As of November 26, 2026, standard support for version 1.34 will end on December 2, 2026.Should a Pod be isolated before or after volatile evidence is captured?
It depends on the source. The Amazon EKS Best Practices Guide places isolating the Pod with a Network Policy and revoking credentials before acquisition. Conversely, the AWS Security Blog post on Amazon Detective states that quarantining before capturing evidence can interrupt running processes and that malware can try to erase traces, and puts acquisition first. Both sources put cordon and termination protection before acquisition, and Pod deletion and node termination after it.11. Summary
This article listed, for each step on EKS with EC2 nodes, what it stops and what it destroys. The investigation label, cordon, termination protection, scale-in protection, andkarpenter.sh/do-not-disrupt do not destroy volatile evidence. However, cordon does not stop running Pods, termination protection does not prevent terminations initiated by Auto Scaling, and karpenter.sh/do-not-disrupt does not prevent automatic node repair.Where a connection is cut differs by step. Isolation security groups do not cut tracked connections. Network ACLs cut existing connections entering and exiting the subnet and affect the entire subnet. The sources disagree on whether Network Policies cut existing connections, and this article could not verify it. Amazon VPC CNI Network Policies cannot be applied to Fargate.
On EKS, the Kubelet Checkpoint API is available on Kubernetes 1.34 or later when CRIU is installed on the node. It writes the container's memory, file descriptors, sockets, and file system differences to the node's disk. During the capture process, processes are frozen. Because the archive contains secrets from memory, protect both the archives and the permissions for
nodes/checkpoint.The order of acquisition and isolation varies by source. The BPG puts isolation with Network Policies first, while the Detective post and the automation post put acquisition first. Any source that includes steps for Pod deletion or node termination places those steps after acquisition. The source statements are as of November 26, 2026.
12. References
- Amazon EKS Best Practices Guide: Incident response and forensics
- Amazon EKS Best Practices Guide: Karpenter
- Amazon EKS User Guide: Limit Pod traffic with Kubernetes network policies
- Amazon EKS User Guide: Update the Amazon VPC CNI (Amazon EKS add-on)
- Amazon EKS User Guide: Automatically repair nodes in EKS clusters
- Amazon EKS User Guide: Understand the Kubernetes version lifecycle on EKS
- Amazon EKS User Guide: Security considerations for Amazon EKS Auto Mode
- Amazon EKS User Guide: Learn about Amazon EKS Auto Mode Managed instances
- Amazon EKS User Guide: Cost optimization in EKS Auto Mode
- Amazon EKS User Guide: Retrieve node logs using kubectl and Amazon S3
- Amazon EKS User Guide: Configure add-ons for hybrid nodes
- Amazon EKS User Guide: Capture network traffic on an EKS Auto Mode node using kubectl and Amazon S3
- Amazon EKS User Guide: Assign security groups to individual Pods
- Amazon EKS User Guide: Configure CNI for hybrid nodes
- Amazon EKS User Guide: Configure Kubernetes Network Policies for hybrid nodes
- Security Overview of Amazon EKS Auto Mode: EKS Auto Mode data plane
- AWS re:Post Knowledge Center: How do I configure a security group for AWS Fargate Pods in my Amazon EKS cluster?
- Amazon EC2 User Guide: Amazon EC2 security group connection tracking
- Amazon EC2 User Guide: Change instance termination protection
- Amazon EC2 User Guide: Amazon EC2 managed instances
- Amazon EC2 User Guide: Preserve data when an instance is terminated
- Amazon VPC User Guide: Control subnet traffic with network access control lists
- Amazon EC2 Auto Scaling User Guide: Use instance scale-in protection to control instance termination
- Amazon GuardDuty User Guide: Remediating EKS Protection findings
- Amazon GuardDuty User Guide: Prerequisites for Amazon EKS cluster support
- IAM User Guide: Revoke IAM role temporary security credentials
- AWS Containers Blog: Forensic container checkpointing on Amazon Elastic Kubernetes Service (Amazon EKS)
- AWS Security Blog: How to investigate and take action on security issues in Amazon EKS clusters with Amazon Detective – Part 2
- AWS Security Blog: How to automate incident response for Amazon EKS on Amazon EC2
- Kubernetes Documentation: Kubelet Checkpoint API
- Kubernetes Documentation: Kubelet authentication/authorization
- Kubernetes Documentation: Feature Gates
- Kubernetes Documentation: Network Policies
- Kubernetes Documentation: Nodes
- Kubernetes Documentation: DaemonSet
- Kubernetes Documentation: Taints and Tolerations
- Kubernetes Documentation: Volumes
- Kubernetes Documentation: Logging Architecture
- Kubernetes Documentation: Pod Lifecycle
- Karpenter Documentation: Disruption
References:
Tech Blog with curated related content
Written by Hidekazu Konishi