π Dependency Scanning Strategy¶
π οΈ Herramientas¶
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β Tool β QuΓ© detecta β CuΓ‘ndo corre β β ββββββββββββββͺβββββββββββββββββββββββͺβββββββββββββββββββββ£ β Snyk β CVEs, licenses β PR + daily β β Dependabot β Outdated deps β Weekly β β npm audit β npm vulnerabilities β Pre-commit β β OWASP Dep β Java/.NET CVEs β CI build β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π― Severity Thresholds¶
Critical: Block merge, fix < 24h High: Block merge, fix < 1 week Medium: Warning, fix < 1 month Low: Info, fix when convenient
π Response Process¶
- Alert triggered
- Automated notification sent to security channel
-
Create tracking ticket automatically
-
Review vulnerability details
- Check CVE database for details
- Assess actual impact on our codebase
-
Determine exploitability in our context
-
If false positive β Document exemption
- Add to EXEMPTIONS.md
- Update scanner config to ignore
-
Require security lead approval
-
If real β Patch or mitigate
- Update dependency if patch available
- Apply workaround if no patch exists
-
Remove dependency if not critical
-
Verify fix
- Re-run scanner
- Test application functionality
-
Review for side effects
-
Close ticket
- Document resolution
- Update runbooks if needed
- Schedule follow-up review
π Continuous Monitoring¶
Daily Scans¶
- Run Snyk on main branch
- Alert on new Critical/High findings
- Auto-create tickets for new issues
Weekly Scans¶
- Dependabot checks for updates
- License compliance scan
- Generate weekly report
Monthly Review¶
- Review all open vulnerabilities
- Re-assess exemptions
- Update scanning policies
- Review false positive rate
π Metrics to Track¶
- Mean time to remediate (MTTR) by severity
- Number of vulnerabilities introduced
- False positive rate
- Dependency freshness score
- License compliance violations
π« Blocking Criteria¶
Block CI/CD if:¶
- Critical vulnerability with known exploit
- High vulnerability in production dependency
- GPL/AGPL license in proprietary code
- Dependency with no security updates in 2+ years
Warning only if:¶
- Medium/Low vulnerabilities
- DevDependency issues
- Pre-release version issues