// module 09 · Running the program
Incident playbooks: leaked secret, malicious dependency
The gate, push protection and Dependabot lower the odds of a bad day; they don't remove it. This lesson gives the security team two written playbooks for the incidents this course is closest to: a credential pushed to a repo, and a dependency that turns out to be malicious. Each one puts the steps in the order that limits damage: revoke before you clean up, find every affected repo before you fix one, work out what an install script could have reached. A script finds every repo that has a given npm package and version from the dependency graph SBOMs, and a tabletop runs it on the lab fleet.
Learning Objectives
- Put the leaked-secret response in the right order: revoke and rotate first, scope second, history cleanup last and optional
- Explain why deleting a commit, branch or PR doesn't take a secret back, and what GitHub Support can remove
- Find every repo that uses a package version across the org with the dependency graph SBOM API
- Work out whether a malicious package ran in CI and which secrets those jobs could reach
- Contain a bad dependency with pins, npm overrides and Dependabot ignores, and close the alerts with an honest reason
This lesson is for enrolled learners
Log in, then enroll to read the full lesson, run its lab and take the quiz.
