A widely used open-source library you depend on appears to have a maintainer-injected backdoor, as in the xz case. How do you respond?
AdvancedScenarioSupply Chain Security
Answer
Situation read → First establish exposure: which versions, where deployed, whether the malicious path is reachable in your use.
What I'd do →
- Query SBOMs for affected versions across all services and base images.
- Follow the maintainers and CISA/vendor advisories; pin to a known-good version or roll back.
- Rebuild images from clean sources and redeploy; invalidate build caches.
- Hunt for indicators: unexpected processes, outbound connections, modified binaries (via Falco, EDR, file integrity).
- Rotate credentials accessible from affected hosts if compromise is plausible.
- Afterwards reduce blast radius: fewer SSH-reachable hosts, minimal images.
Why → Inventory plus rollback speed matter more than predicting the attack.
Interview tip → xz was caught by a performance anomaly; mention observability as a defence.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateYou signed images in CI. How do you make sure the cluster only runs signed images?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?Beginner