Skip to content

Commit 08e715c

Browse files
committed
add preset and ruleset in management command
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 7f120f5 commit 08e715c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

vulnerabilities/triage/management/commands/create_triage_rulesets.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@
4444
"detail": "Vulnerability unaddressed beyond configured threshold. Escalated by triage.",
4545
"ruleset_name": "Stale Vulnerability",
4646
},
47+
{
48+
"name": "Flag - SSVC Decision",
49+
"description": (
50+
"Flag vulnerabilities whose SSVC decision tree recommends immediate attention."
51+
),
52+
"state": "in_triage",
53+
"detail": "SSVC decision recommends Attend or Act. Flagged for review by triage.",
54+
"ruleset_name": "SSVC Attend or Act",
55+
},
4756
]
4857

4958
REFERENCE_RULESETS = [
@@ -72,6 +81,18 @@
7281
"exploited_vulnerability": {"is_active": True},
7382
},
7483
},
84+
{
85+
"name": "SSVC Attend or Act",
86+
"description": (
87+
"Vulnerabilities whose SSVC decision tree recommends immediate attention"
88+
" (Attend or Act)."
89+
),
90+
"recommended_action": TriageAction.UPGRADE,
91+
"precedence": 550,
92+
"rules_config": {
93+
"ssvc_decision": {"is_active": True},
94+
},
95+
},
7596
{
7697
"name": "Reachable Vulnerability",
7798
"description": "Vulnerabilities confirmed as reachable within the product context.",

0 commit comments

Comments
 (0)