DevOps Interview DropExpert TierScenario+100 XP on read

An attacker steals a developer's Git credentials and pushes malicious code. How do you defend against this?

Core Summary

Assume one credential will eventually be stolen and design so that alone isn't enough to ship code. Layer identity, branch protection, review, signing, pipeline isolation and detection, and remember the attacker's real target is usually the CI workflow, not the application code itself.

Hints

Hint 1: No single control should be enough to ship code

Hint 2: The pipeline is the more valuable target

Hint 3: Detection matters as much as prevention

Reported in interviews at Google, Cloudflare, Chainguard