vrt 0.11.0 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/1.11/deprecated-node-mapping.json +236 -0
  3. data/lib/data/1.11/mappings/cvss_v3/cvss_v3.json +1250 -0
  4. data/lib/data/1.11/mappings/cvss_v3/cvss_v3.schema.json +59 -0
  5. data/lib/data/1.11/mappings/cwe/cwe.json +664 -0
  6. data/lib/data/1.11/mappings/cwe/cwe.schema.json +63 -0
  7. data/lib/data/1.11/mappings/remediation_advice/remediation_advice.json +1811 -0
  8. data/lib/data/1.11/mappings/remediation_advice/remediation_advice.schema.json +75 -0
  9. data/lib/data/1.11/third-party-mappings/remediation_training/secure-code-warrior-links.json +392 -0
  10. data/lib/data/1.11/vrt.schema.json +63 -0
  11. data/lib/data/1.11/vulnerability-rating-taxonomy.json +2442 -0
  12. data/lib/data/1.12/deprecated-node-mapping.json +236 -0
  13. data/lib/data/1.12/mappings/cvss_v3/cvss_v3.json +1280 -0
  14. data/lib/data/1.12/mappings/cvss_v3/cvss_v3.schema.json +59 -0
  15. data/lib/data/1.12/mappings/cwe/cwe.json +668 -0
  16. data/lib/data/1.12/mappings/cwe/cwe.schema.json +63 -0
  17. data/lib/data/1.12/mappings/remediation_advice/remediation_advice.json +1850 -0
  18. data/lib/data/1.12/mappings/remediation_advice/remediation_advice.schema.json +75 -0
  19. data/lib/data/1.12/third-party-mappings/remediation_training/secure-code-warrior-links.json +400 -0
  20. data/lib/data/1.12/vrt.schema.json +63 -0
  21. data/lib/data/1.12/vulnerability-rating-taxonomy.json +2493 -0
  22. data/lib/vrt/mapping.rb +12 -6
  23. data/lib/vrt/node.rb +4 -0
  24. data/lib/vrt/third_party_links.rb +33 -0
  25. data/lib/vrt/version.rb +1 -1
  26. data/lib/vrt.rb +8 -0
  27. metadata +28 -7
@@ -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
+ }