vrt 0.10.0 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data/1.10/deprecated-node-mapping.json +200 -0
- data/lib/data/1.10/mappings/cvss_v3/cvss_v3.json +1074 -0
- data/lib/data/1.10/mappings/cvss_v3/cvss_v3.schema.json +59 -0
- data/lib/data/1.10/mappings/cwe/cwe.json +477 -0
- data/lib/data/1.10/mappings/cwe/cwe.schema.json +63 -0
- data/lib/data/1.10/mappings/remediation_advice/remediation_advice.json +1543 -0
- data/lib/data/1.10/mappings/remediation_advice/remediation_advice.schema.json +75 -0
- data/lib/data/1.10/third-party-mappings/remediation_training/secure-code-warriors-links.json +348 -0
- data/lib/data/1.10/vrt.schema.json +63 -0
- data/lib/data/1.10/vulnerability-rating-taxonomy.json +2171 -0
- data/lib/data/1.10.1/deprecated-node-mapping.json +200 -0
- data/lib/data/1.10.1/mappings/cvss_v3/cvss_v3.json +1074 -0
- data/lib/data/1.10.1/mappings/cvss_v3/cvss_v3.schema.json +59 -0
- data/lib/data/1.10.1/mappings/cwe/cwe.json +477 -0
- data/lib/data/1.10.1/mappings/cwe/cwe.schema.json +63 -0
- data/lib/data/1.10.1/mappings/remediation_advice/remediation_advice.json +1543 -0
- data/lib/data/1.10.1/mappings/remediation_advice/remediation_advice.schema.json +75 -0
- data/lib/data/1.10.1/third-party-mappings/remediation_training/secure-code-warrior-links.json +348 -0
- data/lib/data/1.10.1/vrt.schema.json +63 -0
- data/lib/data/1.10.1/vulnerability-rating-taxonomy.json +2171 -0
- data/lib/data/1.11/deprecated-node-mapping.json +236 -0
- data/lib/data/1.11/mappings/cvss_v3/cvss_v3.json +1250 -0
- data/lib/data/1.11/mappings/cvss_v3/cvss_v3.schema.json +59 -0
- data/lib/data/1.11/mappings/cwe/cwe.json +664 -0
- data/lib/data/1.11/mappings/cwe/cwe.schema.json +63 -0
- data/lib/data/1.11/mappings/remediation_advice/remediation_advice.json +1811 -0
- data/lib/data/1.11/mappings/remediation_advice/remediation_advice.schema.json +75 -0
- data/lib/data/1.11/third-party-mappings/remediation_training/secure-code-warrior-links.json +392 -0
- data/lib/data/1.11/vrt.schema.json +63 -0
- data/lib/data/1.11/vulnerability-rating-taxonomy.json +2442 -0
- data/lib/vrt/mapping.rb +12 -6
- data/lib/vrt/node.rb +4 -0
- data/lib/vrt/third_party_links.rb +33 -0
- data/lib/vrt/version.rb +1 -1
- data/lib/vrt.rb +8 -0
- metadata +39 -4
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"title": "VRT to CWE Mapping",
|
4
|
+
"description": "Mapping from the Vulnerability Rating Taxonomy to CWE",
|
5
|
+
"definitions": {
|
6
|
+
"MappingMetadata": {
|
7
|
+
"type": "object",
|
8
|
+
"properties": {
|
9
|
+
"default": { "type": "null" }
|
10
|
+
},
|
11
|
+
"required": ["default"]
|
12
|
+
},
|
13
|
+
"VRTid": { "type": "string", "pattern": "^[a-z_]*$" },
|
14
|
+
"CWE": { "type" : [ "array", "null" ],
|
15
|
+
"items" : { "type": "string", "pattern": "^CWE-[0-9]*$" },
|
16
|
+
"minItems": 1,
|
17
|
+
"uniqueItems": true
|
18
|
+
},
|
19
|
+
"Mapping": {
|
20
|
+
"type": "object",
|
21
|
+
"properties": {
|
22
|
+
"id": { "$ref": "#/definitions/VRTid" },
|
23
|
+
"cwe" : { "$ref": "#/definitions/CWE" }
|
24
|
+
},
|
25
|
+
"required": ["id", "cwe"],
|
26
|
+
"additionalProperties": false
|
27
|
+
},
|
28
|
+
"MappingParent": {
|
29
|
+
"type": "object",
|
30
|
+
"properties": {
|
31
|
+
"id": { "$ref": "#/definitions/VRTid" },
|
32
|
+
"children": {
|
33
|
+
"type": "array",
|
34
|
+
"items" : {
|
35
|
+
"anyOf": [
|
36
|
+
{ "$ref": "#/definitions/MappingParent" },
|
37
|
+
{ "$ref": "#/definitions/Mapping" }
|
38
|
+
]
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"cwe" : { "$ref": "#/definitions/CWE" }
|
42
|
+
},
|
43
|
+
"required": ["id", "children"],
|
44
|
+
"additionalProperties": false
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"type": "object",
|
48
|
+
"required": ["metadata", "content"],
|
49
|
+
"properties": {
|
50
|
+
"metadata": {
|
51
|
+
"$ref": "#/definitions/MappingMetadata"
|
52
|
+
},
|
53
|
+
"content": {
|
54
|
+
"type": "array",
|
55
|
+
"items" : {
|
56
|
+
"anyOf": [
|
57
|
+
{ "$ref": "#/definitions/MappingParent" },
|
58
|
+
{ "$ref": "#/definitions/Mapping" }
|
59
|
+
]
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|