Runtime detection check · Kubernetes runtime

Netcat started with command execution

nc, ncat or netcat was started in a container with an option that runs a program on the connection (-e, -c, --exec, --sh-exec, --lua-exec).

Why it matters

That option exists to serve a shell over the network; an application has no use for it.

How to fix it

Treat the workload as compromised: isolate it (a TrustIvan response action can network-isolate or stop it), find how it got there (image, exec, vulnerable application), rebuild from a clean image and rotate any credentials the pod could read.

What TrustIvan reads

The Falco rule "TrustIvan Netcat with command execution in container" (MITRE ATT&CK execution, T1059.004), 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.