Runtime detection check · Kubernetes runtime

ptrace attach or memory write in a container

A process in a container attached to another process, or wrote its memory or registers, with ptrace.

Why it matters

ptrace injection runs code inside another process: with host PID and CAP_SYS_PTRACE, inside a process on the node.

How to fix it

Unless a debugger was knowingly attached, treat the workload as compromised. Remove CAP_SYS_PTRACE and hostPID from the pod spec.

What TrustIvan reads

The Falco rule "TrustIvan Process injection with ptrace in container" (MITRE ATT&CK defense_evasion, T1055.008), installed on every node by the trustivan-runtime Helm chart. Only where the chart is installed. Every rule validated with falco -V and fired against Falco 0.45.2 under Docker; the chart installed and three rules fired in a single-node k3d cluster.

References

Terms: Runtime threat detection, KSPM (Kubernetes security posture management), Code to cloud

All runtime detection checks · The whole catalogue · How this works in TrustIvan · Documentation

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.