An org-wide secret scan finds 5,000 hits. How do you prioritise?
AdvancedScenarioPipeline Security Scanning
Answer
Situation read → Most hits are test fixtures and expired tokens. Treating all as equal burns the team out.
What I'd do →
- Re-run with verification:
trufflehog git file://. --only-verifiedto confirm which credentials are live. - Rank by blast radius: cloud admin keys, production DB credentials, signing keys, then SaaS tokens.
- Prioritise public and widely-accessible repos.
- Rotate first, clean history later.
- Assign owners through CODEOWNERS and track in tickets with SLAs.
- Add push protection to stop new ones.
Why → Verified live secrets are incidents; unverified ones are hygiene.
Interview tip → "Verified first, then by blast radius."
More on Pipeline Security Scanning
You are asked to add security to an existing CI pipeline. Where do SAST, SCA, secrets scanning and DAST each go?BeginnerGitleaks flags an AWS access key in a pull request. The developer says it is a test key. What do you do?BeginnerDevelopers fear security scans will slow the pipeline from 6 to 20 minutes. How do you roll them out?BeginnerA SAST tool reports 2,000 findings on a legacy repo the first time you run it. How do you introduce it without freezing delivery?IntermediateA developer insists a scanner finding is a false positive. What is your process?BeginnerSCA flags a critical CVE in a transitive dependency and no patched version exists. What are your options?Intermediate