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

The Falco rule `Read sensitive file untrusted` fires constantly for your log-shipping DaemonSet reading `/etc/shadow` on the host

IntermediateTroubleshootingDAST, runtime detection and compliance scans
Answer

Likely causes → The shipper mounts the host filesystem and reads broadly (a glob on /host/etc/*), so it really does read sensitive files.

Diagnose → Check proc.name, fd.name and the container image in the alert, then look at the shipper's input config.

Fix → First fix the shipper. Narrow its input paths to /var/log/** and mount only what it needs, read-only. Only if the read is truly required, add an exception for that image and file in the rule.

Prevent → Review the hostPath mounts of every DaemonSet. A Kyverno policy can allowlist which hostPaths each namespace may mount.

All DevSecOps questions Roadmap: Policy as code

More on DAST, runtime detection and compliance scans