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

A crypto-miner ran in a pod for two days and Falco raised no alert

AdvancedTroubleshootingDAST, runtime detection and compliance scans
Answer

Likely causes → The default ruleset has limited outbound-connection coverage, and miner detections may live in rules that are disabled by default or in the incubating/sandbox rulesets. Falco may also have been dropping events, or the pod ran on a node where Falco was not scheduled (taints without tolerations).

Diagnose →

kubectl get ds falco -n falco -o wide        # DESIRED vs READY vs node count
kubectl logs -n falco ds/falco | grep -i "syscall event drop"

Check the loaded rules for miner and stratum detections.

Fix → Add tolerations so Falco runs on every node. Enable rules for outbound connections to mining pools and for known miner binaries. Combine with NetworkPolicy default-deny egress and DNS logging, which catches miners even when rules miss them.

Prevent → Use layered detection (Falco, GuardDuty Runtime Monitoring or cloud DNS findings, and CPU anomaly alerts), and alert on Falco DaemonSet coverage below 100%.

All DevSecOps questions Roadmap: Policy as code

More on DAST, runtime detection and compliance scans