Shield Score
The Shield Score provides a single metric to understand your project's security posture. Scores range from 0-100 and are calculated based on vulnerability findings.
Overview
The Shield Score is designed to give developers and security teams a quick understanding of their codebase's security health. Higher scores indicate fewer vulnerabilities and better security practices.
0-100
Score Range
A-F
Grade Scale
100
Perfect Score
Score Calculation
The score starts at 100 and decreases based on vulnerability findings. Each severity level has a different impact on your score.
shield-score.ts
TypeScript
Grade Thresholds
Scores are converted to letter grades for easy communication with stakeholders.
A
90-100 points
Excellent - No critical issues, minimal high-severity findings
B
80-89 points
Good - Few security issues, well-maintained codebase
C
70-79 points
Fair - Some security issues need attention
D
60-69 points
Poor - Multiple security issues require immediate action
F
0-59 points
Critical - Severe security vulnerabilities present
Bonuses & Penalties
Penalties
Critical finding-25
High finding-15
Medium finding-8
Low finding-3
Info finding-1
Bonuses
No critical findings+10
No critical or high+5
AI verified (each)+2
Pro Tip
Enable AI verification to get bonus points for confirmed findings. This also helps reduce false positives.
Interactive Calculator
Use this calculator to understand how different vulnerability counts affect your Shield Score.
Shield Score Calculator
100
Grade: A
Excellent
Excellent Security
Calculation Formula
Score = 100
+ (Critical × -25)
+ (High × -15)
+ (Medium × -8)
+ (Low × -3)
+ (Info × -1)
+ (Verified × +2)
+ (No Critical? +10)
+ (No Critical & No High? +5)
Current Breakdown
Base Score:
100
High Penalty:
-15
Medium Penalty:
-16
Low Penalty:
-9
No Critical Bonus:
+10
Programmatic Access
Access the Shield Score programmatically through the CLI or API.
Terminal
Bash