-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathgroups.py
More file actions
253 lines (234 loc) · 9.91 KB
/
groups.py
File metadata and controls
253 lines (234 loc) · 9.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#!/usr/bin/env python
"""
Provides a set of outcome groups for use in SSVC.
"""
# Copyright (c) 2023-2025 Carnegie Mellon University.
# NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE
# ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS.
# CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT
# NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR
# MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE
# OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE
# ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM
# PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
# Licensed under a MIT (SEI)-style license, please see LICENSE or contact
# permission@sei.cmu.edu for full terms.
# [DISTRIBUTION STATEMENT A] This material has been approved for
# public release and unlimited distribution. Please see Copyright notice
# for non-US Government use and distribution.
# This Software includes and/or makes use of Third-Party Software each
# subject to its own license.
# DM24-0278
from ssvc.outcomes.base import OutcomeGroup, OutcomeValue
# Note: Outcome Groups must be defined in ascending order.
DSOI = OutcomeGroup(
name="Defer, Scheduled, Out-of-Cycle, Immediate",
description="The original SSVC outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Defer", key="D", description="Defer"),
OutcomeValue(name="Scheduled", key="S", description="Scheduled"),
OutcomeValue(name="Out-of-Cycle", key="O", description="Out-of-Cycle"),
OutcomeValue(name="Immediate", key="I", description="Immediate"),
),
)
"""
The original SSVC outcome group.
"""
PUBLISH = OutcomeGroup(
name="Publish, Do Not Publish",
description="The publish outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Do Not Publish", key="N", description="Do Not Publish"),
OutcomeValue(name="Publish", key="P", description="Publish"),
),
)
"""
The publish outcome group.
"""
COORDINATE = OutcomeGroup(
name="Decline, Track, Coordinate",
description="The coordinate outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Decline", key="D", description="Decline"),
OutcomeValue(name="Track", key="T", description="Track"),
OutcomeValue(name="Coordinate", key="C", description="Coordinate"),
),
)
"""
The coordinate outcome group.
"""
MOSCOW = OutcomeGroup(
name="Must, Should, Could, Won't",
description="The Moscow outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Won't", key="W", description="Won't"),
OutcomeValue(name="Could", key="C", description="Could"),
OutcomeValue(name="Should", key="S", description="Should"),
OutcomeValue(name="Must", key="M", description="Must"),
),
)
"""
The MoSCoW outcome group.
"""
EISENHOWER = OutcomeGroup(
name="Do, Schedule, Delegate, Delete",
description="The Eisenhower outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Delete", key="D", description="Delete"),
OutcomeValue(name="Delegate", key="G", description="Delegate"),
OutcomeValue(name="Schedule", key="S", description="Schedule"),
OutcomeValue(name="Do", key="O", description="Do"),
),
)
"""
The Eisenhower outcome group.
"""
CVSS = OutcomeGroup(
name="CVSS Levels",
description="The CVSS outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Low", key="L", description="Low"),
OutcomeValue(name="Medium", key="M", description="Medium"),
OutcomeValue(name="High", key="H", description="High"),
OutcomeValue(name="Critical", key="C", description="Critical"),
),
)
"""
The CVSS outcome group.
"""
CISA_1 = OutcomeGroup(
name="CISA Levels",
description="The CISA outcome group. "
"CISA uses its own SSVC decision tree model to prioritize relevant vulnerabilities into four possible decisions: Track, Track*, Attend, and Act.",
version="1.0.0",
outcomes=(
OutcomeValue(
name="Track",
key="T",
description="The vulnerability does not require action at this time. "
"The organization would continue to track the vulnerability and reassess it if new information becomes available. "
"CISA recommends remediating Track vulnerabilities within standard update timelines.",
),
OutcomeValue(
name="Track*",
key="R",
description="The vulnerability contains specific characteristics that may require closer monitoring for changes. "
"CISA recommends remediating Track* vulnerabilities within standard update timelines.",
),
OutcomeValue(
name="Attend",
key="A",
description="The vulnerability requires attention from the organization's internal, supervisory-level individuals. "
"Necessary actions may include requesting assistance or information about the vulnerability and may involve publishing a notification, either internally and/or externally, about the vulnerability. "
"CISA recommends remediating Attend vulnerabilities sooner than standard update timelines.",
),
OutcomeValue(
name="Act",
key="C",
description="The vulnerability requires attention from the organization's internal, supervisory-level and leadership-level individuals. "
"Necessary actions include requesting assistance or information about the vulnerability, as well as publishing a notification either internally and/or externally. "
"Typically, internal groups would meet to determine the overall response and then execute agreed upon actions. "
"CISA recommends remediating Act vulnerabilities as soon as possible.",
),
),
)
"""
The CISA outcome group. Based on CISA's customizations of the SSVC model.
See https://www.cisa.gov/stakeholder-specific-vulnerability-categorization-ssvc
"""
CISA = OutcomeGroup(
name="CISA Levels",
description="The CISA outcome group. "
"CISA uses its own SSVC decision tree model to prioritize relevant vulnerabilities into four possible decisions: Track, Monitor, Attend, and Act.",
version="1.1.0",
outcomes=(
OutcomeValue(
name="Track",
key="T",
description="The vulnerability does not require action at this time. "
"The organization would continue to track the vulnerability and reassess it if new information becomes available. "
"CISA recommends remediating Track vulnerabilities within standard update timelines.",
),
OutcomeValue(
name="Monitor",
key="M",
description="The vulnerability contains specific characteristics that may require closer monitoring for changes. "
"CISA recommends remediating Monitor vulnerabilities within standard update timelines.",
),
OutcomeValue(
name="Attend",
key="A",
description="The vulnerability requires attention from the organization's internal, supervisory-level individuals. "
"Necessary actions may include requesting assistance or information about the vulnerability and may involve publishing a notification, either internally and/or externally, about the vulnerability. "
"CISA recommends remediating Attend vulnerabilities sooner than standard update timelines.",
),
OutcomeValue(
name="Act",
key="C",
description="The vulnerability requires attention from the organization's internal, supervisory-level and leadership-level individuals. "
"Necessary actions include requesting assistance or information about the vulnerability, as well as publishing a notification either internally and/or externally. "
"Typically, internal groups would meet to determine the overall response and then execute agreed upon actions. "
"CISA recommends remediating Act vulnerabilities as soon as possible.",
),
),
)
"""
The CISA outcome group. Based on CISA's customizations of the SSVC model.
See https://www.cisa.gov/stakeholder-specific-vulnerability-categorization-ssvc
"""
YES_NO = OutcomeGroup(
name="Yes, No",
description="The Yes/No outcome group.",
version="1.0.0",
outcomes=(
OutcomeValue(name="No", key="N", description="No"),
OutcomeValue(name="Yes", key="Y", description="Yes"),
),
)
"""
The Yes/No outcome group.
"""
VALUE_COMPLEXITY = OutcomeGroup(
name="Value, Complexity",
description="The Value/Complexity outcome group.",
version="1.0.0",
outcomes=(
# drop, reconsider later, easy win, do first
OutcomeValue(name="Drop", key="D", description="Drop"),
OutcomeValue(name="Reconsider Later", key="R", description="Reconsider Later"),
OutcomeValue(name="Easy Win", key="E", description="Easy Win"),
OutcomeValue(name="Do First", key="F", description="Do First"),
),
)
"""
The Value/Complexity outcome group.
"""
THE_PARANOIDS = OutcomeGroup(
name="theParanoids",
description="PrioritizedRiskRemediation outcome group based on TheParanoids.",
version="1.0.0",
outcomes=(
OutcomeValue(name="Track 5", key="5", description="Track"),
OutcomeValue(name="Track Closely 4", key="4", description="Track Closely"),
OutcomeValue(name="Attend 3", key="3", description="Attend"),
OutcomeValue(name="Attend 2", key="2", description="Attend"),
OutcomeValue(name="Act 1", key="1", description="Act"),
OutcomeValue(name="Act ASAP 0", key="0", description="Act ASAP"),
),
)
"""
Outcome group based on TheParanoids' PrioritizedRiskRemediation.
Their model is a 6-point scale, with 0 being the most urgent and 5 being the least.
See https://github.com/theparanoids/PrioritizedRiskRemediation
"""
def main():
pass
if __name__ == "__main__":
main()