You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RlJsonInfo module is the principal parser vor the `report.rl.json` data.
26
-
The primary focus is on extracting vulnerabilities (CVE) that occur on rl-json `components` and rl-json `dependencies`. All items without vulnerabilities are currently ignored.
27
26
28
-
All data is stored only once in the rl-json file and it uses references to map relevant related data:
27
+
### Field Mapping Details
29
28
30
-
Component -> Vulnerabilities
31
-
Component -> Dependencies -> Vulnerabilities
29
+
#### Title
32
30
33
-
During the parsing we follow the references and add each item to a individual `CveInfoNode` record that has the vulnerablity and the component and the dependency data.
34
-
35
-
The `CveInfoNode` basically maps almost directly to the `DefectDojo Finding`.
36
-
37
-
The `title` and `description` are build using the collected data.
38
-
39
-
### Title
40
-
41
-
#### Component
31
+
##### Component
42
32
43
33
For a Components, the title shows:
44
34
45
35
- the CVE.
46
36
- the type: `Component`.
47
37
- the `purl` of the `Component` if present, otherwise name and version.
48
-
- the component-name.
49
-
- the component-sha256.
50
38
51
-
The sha256 is added as sometimes a file scan my have multiple items with the same name and version but with a different hash.
52
-
Typically this happens with multi language windows installeres.
53
39
54
-
#### Dependency
40
+
#####Dependency
55
41
56
42
The title shows the:
57
43
58
44
- the CVE.
59
45
- the type: `Dependecy`.
60
46
- the `purl` of the `Dependency` if present, otherwise name and version.
61
47
62
-
### Description
48
+
#### Description
49
+
50
+
##### Component
51
+
52
+
For a component we repeat the title, but add the sha256.
63
53
64
-
#### Component
54
+
The sha256 is added as sometimes a file scan my have multiple items with the same name and version
55
+
but with a different hash.
56
+
Typically this happens with Windows intstall packages with multiple languages.
65
57
66
-
For a component we repeat the title.
67
58
68
-
#### Dependency
59
+
#####Dependency
69
60
70
-
For a dependency we repeat the title and then add the component_nameand component_hash.
61
+
For a dependency we repeat the title and then add the component_name, the component path and the component_hash.
71
62
For duplicates we add one additional line to the description for each duplicate, showing its title and component.
72
63
73
-
### Vulnerabilities
64
+
####Vulnerabilities
74
65
75
-
From the vulnerability we fetch:
66
+
From the vulnerability data in the rl-json file, we fetch:
76
67
77
68
- the CVE unique id
78
69
- cvss version
@@ -86,27 +77,22 @@ From the cvss.basescore we map the severity into:
86
77
- High
87
78
- Critical
88
79
89
-
### Other
90
-
91
-
We extract the scan date and the scanner version and set a static scanner-name.
92
-
93
-
## Field Mapping Details
94
-
80
+
##### Notes
95
81
96
82
- Currently no endpoints are created
97
-
98
-
- On detecting a duplicate `dependency` we increment the number of occurrences.
83
+
- Deduplication is done with the `unique-id-from-tool` field.
84
+
- for component: `<component sha256>:<cve>`
85
+
- for dependencies: `<component sha256>:<cve>:<dependency purl>`
86
+
- On detecting a duplicate `dependency` we increment the number of occurrences.<br/>
99
87
`Components` have no duplicates so the nr of occurrences is always 1.
100
-
101
-
- Deduplication is done only on Dependencies and we use the title (cve + dependency_name and version) + the `component-path` as the hash_key to detect duplicates.
102
-
103
88
- The default severity if no mapping is matched is `Info`.
89
+
- We extract the scan date and the scanner version and set a static scanner-name.
104
90
105
-
## Sample Scan Data or Unit Tests
91
+
###Sample Scan Data or Unit Tests
106
92
107
93
-[Sample Scan Data Folder](https://github.com/DefectDojo/django-DefectDojo/tree/master/unittests/scans/reversinglabs_spectraassure)
0 commit comments