Interview Prep/DevSecOps/DAST, runtime detection and compliance scans

GuardDuty reports `CryptoCurrency:EC2/BitcoinTool.B!DNS` for an EKS worker node

IntermediateTroubleshootingDAST, runtime detection and compliance scans
Answer

Likely causes → A process on the node resolved a known mining pool domain. It is usually a compromised container (exposed dashboard, RCE in an app, or a malicious image), rarely the node itself.

Diagnose →

kubectl get pods -A -o wide --field-selector spec.nodeName=<node>
kubectl top pods -A --sort-by=cpu | head

Check Route 53 Resolver query logs or CoreDNS logs for the pool domain and the source pod IP.

Fix → Isolate the pod with a deny-all NetworkPolicy, scale its owner to zero, and capture the image digest and logs before deleting anything. Then find the entry point.

Prevent → Default-deny egress, Route 53 Resolver DNS Firewall blocklists, signed images from trusted registries, and Falco or GuardDuty runtime monitoring.

All DevSecOps questions Roadmap: Policy as code

More on DAST, runtime detection and compliance scans