Interview Prep/CI/CD/Supply Chain and Pipeline Security

What does `harden-runner` style runtime monitoring in CI do?

AdvancedProductionSupply Chain and Pipeline Security
Answer

It monitors or restricts outbound network connections and file/process activity of a job on the runner (for example StepSecurity harden-runner in audit then block mode, or egress-filtering proxies on self-hosted runners). In block mode a compromised dependency or action cannot exfiltrate secrets to an unknown domain, because only an allow-list of endpoints (github.com, your registry) is reachable. It would have flagged the unexpected network calls in several real supply chain compromises.

All CI/CD questions

More on Supply Chain and Pipeline Security