-
Notifications
You must be signed in to change notification settings - Fork 11
/
vulntology-json-schema-1.0-draft.json
388 lines (388 loc) · 14 KB
/
vulntology-json-schema-1.0-draft.json
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://csrc.nist.gov/ns/vulntology/1.0",
"type": "object",
"title": "",
"description": "a vulnerability entry",
"definitions": {
"UUID": {
"description": "The unique identifier for my object. (A UUID specified by RFC4122).",
"type": "string",
"format": "uuid"
},
"SectorOfInterest": {
"type": "string",
"enum": [
"Industrial Control System",
"Health Care",
"Finance",
"Automotive",
"Public Administration"
]
},
"VulnerabilityIdentifier": {
"type": "object",
"required": [
"scheme",
"value"
],
"properties": {
"scheme": {"$ref": "#/definitions/SimpleScheme"},
"value": {"type": "string"}
}
},
"Product": {
"type": "object",
"anyOf": [
{
"required": ["hasEnumeration"]
},
{
"required": ["hasCPEApplicabilityStatement"]
}
],
"properties": {
"scheme": {"$ref": "#/definitions/SimpleScheme"},
"hasEnumeration": {"$ref": "#/definitions/ProductEnumeration"},
"hasCPEApplicabilityStatement": {
"type": "array",
"items": {
"$comment": "This is to reference the NVD configurations section, which requires much more complext JSON than simple strings. We could expand to other references or a broader structure to allow other schemas to be referenced in a generally applicable way.",
"$ref": "https://scap.nist.gov/schema/nvd/feed/1.1/nvd_cve_feed_json_1.1.schema#/definitions/def_node"
}
}
}
},
"ProductEnumeration": {
"properties": {
"scheme": {"$ref": "#/definitions/SimpleScheme"},
"values": {
"type": "array",
"items": {"type": "string"}
}
},
"required": [
"scheme",
"values"
]
},
"ExploitedWeakness": {
"type": "string",
"description": "CWE ID of the CWE that best describes the weakness used",
"minLength": 5,
"pattern": "^CWE-[0-9]+$"
},
"EngineeringMethod": {
"type": "string",
"enum": [
"Malicious Link",
"Malicious File",
"Malicious Website Content",
"Malicious Application"
]
},
"PrivilegeLevel": {
"type": "string",
"enum": [
"Anonymous",
"Generic Trust",
"User",
"Privileged",
"Administrator"
]
},
"Context": {
"type": "string",
"$comment": "Missing 'WebServer'",
"enum": [
"Hypervisor",
"Firmware",
"Host OS",
"Guest OS",
"Application",
"Application::Web Server",
"Application::Database",
"Application::Module",
"Application::Container",
"Channel",
"Physical Hardware"
]
},
"ImpactMethod": {
"type": "string",
"enum": [
"Authentication Bypass",
"Code Execution",
"Context Escape",
"Trust Failure",
"Trust Failure::Failure to Establish Trust",
"Trust Failure::Failure to Verify Content",
"Trust Failure::Failure to Verify Receiver",
"Trust Failure::Failure to Verify Transmitter"
]
},
"EntityRole": {
"type": "string",
"enum": [
"Security Authority::Primary",
"Security Authority::Secondary",
"Component::Vulnerable",
"Component::Impacted"
]
},
"Criticality": {
"type": "string",
"enum": [
"Low",
"High"
]
},
"Scope": {
"type": "string",
"enum": [
"Limited",
"Unlimited"
]
},
"LogicalImpact": {
"$comment": "Why is this not a standalone type definition?",
"type": "string",
"enum": [
"Logical Impact::Write-Direct",
"Logical Impact::Read-Direct",
"Logical Impact::Resource Removal",
"Logical Impact::Service Interrupt",
"Logical Impact::Service Interrupt::Shutdown",
"Logical Impact::Service Interrupt::Reboot",
"Logical Impact::Service Interrupt::Hang",
"Logical Impact::Service Interrupt::Panic",
"Logical Impact::Service Interrupt::Unrecoverable",
"Logical Impact::Indirect Discloure",
"Logical Impact::Privilege Escalation"
]
},
"PhysicalImpact": {
"type": "string",
"enum": [
"Physical Impact::Physical Resource Consumption",
"Physical Impact::Physical Resource Consumption::Electricity",
"Physical Impact::Physical Resource Consumption::Water",
"Physical Impact::Physical Resource Consumption::Assets",
"Physical Impact::Property Damage",
"Physical Impact::Human Injury",
"Physical Impact::Human Injury::Negligible",
"Physical Impact::Human Injury::Minor",
"Physical Impact::Human Injury::Serious",
"Physical Impact::Human Injury::Critical",
"Physical Impact::Human Injury::Catastrophic"
]
},
"Impact": {
"oneOf": [
{
"required": [
"id",
"hasLogicalImpact",
"hasScope",
"hasCriticality"
]
},
{
"required": [
"id",
"hasPhysicalImpact",
"hasCriticality",
"hasScope"
],
"not": {
"required": [
"hasLocation",
"gainedPrivileges"
]
}
}
],
"properties": {
"id": {"$ref": "#/definitions/UUID"},
"hasCriticality": {"$ref": "#/definitions/Criticality"},
"hasScope": {"$ref": "#/definitions/Scope"},
"hasLogicalImpact": {"$ref": "#/definitions/LogicalImpact"},
"hasPhysicalImpact": {"$ref": "#/definitions/PhysicalImpact"},
"hasLocation": {
"type": "string",
"enum": [
"File System",
"Memory",
"Network Traffic"
]
},
"gainedPrivileges": {"$ref": "#/definitions/PrivilegeLevel"}
}
},
"Barrier": {
"type": "object",
"required": [
"id",
"barrierType"
],
"properties": {
"id": {"$ref": "#/definitions/UUID"},
"barrierType": {
"type": "string",
"enum": [
"Obfuscation",
"Obfuscation::ASLR",
"Obfuscation::Dynamic Compilation",
"State",
"State::Race Condition",
"State::Race Condition::No Control",
"State::Race Condition::Partial Control",
"State::Race Condition::Full Control",
"State::Specialized Condition",
"State::Environmental Condition",
"State::Precondition Required",
"Boundary Protections",
"Boundary Protections::Sandbox",
"Boundary Protections::Container",
"Authentication/Authorization",
"Authentication/Authorization::Impersonation",
"Authentication/Authorization::Encryption",
"Authentication/Authorization::Privileges Required",
"Authentication/Authorization::Impersonation::Meddler-in-the-Middle",
"Authentication/Authorization::Impersonation::Social Engineering"
]
},
"hasEngineeringMethod": {
"type": "array",
"items": {"$ref": "#/definitions/EngineeringMethod"}
},
"neededPrivileges": {"$ref": "#/definitions/PrivilegeLevel"},
"relatesToContext": {"$ref": "#/definitions/Context"}
}
},
"Action": {
"type": "object",
"required": [
"id",
"hasImpactMethod",
"affectsContext",
"hasEntityRole",
"resultsInImpact"
],
"properties": {
"id": {"$ref": "#/definitions/UUID"},
"hasImpactMethod": {
"type": "array",
"items": {"$ref": "#/definitions/ImpactMethod"}
},
"hasEscapeContext": {"$ref": "#/definitions/Context"},
"affectsContext": {"$ref": "#/definitions/Context"},
"hasEntityRole": {"$ref": "#/definitions/EntityRole"},
"resultsInImpact": {
"type": "array",
"items": {"$ref": "#/definitions/Impact"}
},
"doesNotResultInImpact": {
"type": "array",
"items": {"$ref": "#/definitions/Impact"}
}
}
},
"Scenario": {
"type": "object",
"required": [
"id",
"requiresAttackTheatre",
"hasExploitedWeakness",
"evidencedBySource",
"hasAction"
],
"properties": {
"id": {"$ref": "#/definitions/UUID"},
"requiresAttackTheatre": {
"type": "string",
"enum": [
"Remote",
"Internet",
"Intranet",
"Local Network",
"Limited Remote",
"Bluetooth",
"Cellular",
"Infrared",
"Line of Sight",
"Satellite",
"Wireless",
"Local",
"Physical"
]
},
"hasExploitedWeakness": {
"type": "array",
"items": {"$ref": "#/definitions/ExploitedWeakness"}
},
"evidencedBySource": {
"type": "array",
"items": {"$ref": "#/definitions/ResourceReference"}
},
"affectsProduct": {"$ref": "#/definitions/Product"},
"blockedByBarrier": {
"type": "array",
"items": {"$ref": "#/definitions/Barrier"}
},
"hasAction": {
"type": "array",
"items": {"$ref": "#/definitions/Action"}
}
}
},
"VulnerabilityType": {
"type": "object",
"required": [
"hasIdentity",
"hasOriginatingProduct",
"hasScenario"
],
"properties": {
"hasSectorOfInterest": {
"type": "array",
"uniqueItems": true,
"items": {"$ref": "#/definitions/SectorOfInterest"}
},
"hasOriginatingProduct": {"$ref": "#/definitions/Product"},
"hasKnownChain": {
"type": "array",
"items": {"$ref": "#/definitions/VulnerabilityIdentifier"}
},
"hasIdentity": {
"type": "array",
"items": {"$ref": "#/definitions/VulnerabilityIdentifier"}
},
"hasScenario": {
"type": "array",
"items": {"$ref": "#/definitions/Scenario"}
}
},
"additionalProperties": false
},
"SimpleScheme": {
"type": "string",
"format": "uri",
"$comment": "Identifies the identification namespace, qualifying the values. For example, the if you are providing a CPE 2.3 identifer you would use 'https://csrc.nist.gov/ns/cpe/2.3' as the scheme.",
"examples": [
"https://csrc.nist.gov/ns/cpe/2.3",
"http://example.org/my-scheme",
"http://github.com/org/my-scheme"
]
},
"ResourceReference": {
"type": "string",
"format": "uri-reference",
"$comment": "A URL pointing to a resolvable resource."
}
},
"properties": {
"Vulnerability": {"$ref": "#/definitions/VulnerabilityType"}
},
"required": ["Vulnerability"]
}