@@ -6,6 +6,75 @@ class AcunetixParser:
66
77 """Parser for Acunetix XML files and Acunetix 360 JSON files."""
88
9+ def get_fields (self ) -> list [str ]:
10+ """
11+ Return the list of fields used in the Acunetix XML Parser.
12+
13+ Fields:
14+ - title: Set to the name outputted by the Acunetix XML Scanner.
15+ - severity: Set to severity from Acunetix XML Scanner converted into Defect Dojo format.
16+ - description: Set to description, Details, and TechnivalDetails variables outputted from Acunetix XML Scanner.
17+ - false_p: Set to True/False based on Defect Dojo standards.
18+ - static_finding: Set to True by default and updated to False if requests are present.
19+ - dynamic_finding: Set to False by default and updated to True if requests are present.
20+ - nb_occurences: Set to 1 and increased based on presence of occurences.
21+ - impact: Set to impact outputted from Acunetix XML Scanner if it is present.
22+ - mitigation: Set to Recommendation outputted from Acunetix XML Scanner if it is present.
23+ - date: Set to StartTime outputted from Acunetix XML Scanner if it is present.
24+ - cwe: Set to converted cwe outputted from Acunetix XML Scanner if it is present.
25+ - cvssv3: Set to converted cvssv3 values outputted from Acunetix XML Scanner if it is present.
26+
27+ Return the list of fields used in the Acunetix 360 Parser.
28+
29+ Fields:
30+ - title: Set to the name outputted by the Acunetix 360 Scanner.
31+ - description: Set to Description variable outputted from Acunetix 360 Scanner.
32+ - severity: Set to severity from Acunetix 360 Scanner converted into Defect Dojo format.
33+ - mitigation: Set to RemedialProcedure variable outputted from Acunetix 360 Scanner if it is present.
34+ - impact: Set to Impact variable outputted from Acunetix 360 Scanner if it is present.
35+ - date: Set to FirstSeenDate variable outputted from Acunetix 360 Scanner if present. If not, it is set to Generated variable from output.
36+ - cwe: Set to converted cwe in Classification variable outputted from Acunetix 360 Scanner if it is present.
37+ - static_finding: Set to True.
38+ - cvssv3: Set to converted cvssv3 in Classification variable outputted from Acunetix 360 Scanner if it is present.
39+ - risk_accepted: Set to True if AcceptedRisk is present in State variable outputted from Acunetix 360 Scanner. No value if variable is not present.
40+ - active: Set to false.
41+ """
42+ return [
43+ "title" ,
44+ "severity" ,
45+ "description" ,
46+ "false_p" ,
47+ "static_finding" ,
48+ "dynamic_finding" ,
49+ "nb_occurences" ,
50+ "impact" ,
51+ "mitigation" ,
52+ "date" ,
53+ "cwe" ,
54+ "cvssv3" ,
55+ "risk_accepted" ,
56+ "active" ,
57+ ]
58+
59+ def get_dedupe_fields (self ) -> list [str ]:
60+ """
61+ Return the list of fields used for deduplication in the Acunetix XML Parser.
62+
63+ Fields:
64+ - title: Set to the name outputted by the Acunetix XML Scanner.
65+ - description: Set to description, Details, and TechnivalDetails variables outputted from Acunetix XML Scanner.
66+
67+ Return the list of fields used for deduplication in the Acunetix 360 Parser.
68+
69+ Fields:
70+ - title: Set to the name outputted by the Acunetix 360 Scanner.
71+ - description: Set to Description variable outputted from Acunetix 360 Scanner.
72+ """
73+ return [
74+ "title" ,
75+ "description" ,
76+ ]
77+
978 def get_scan_types (self ):
1079 return ["Acunetix Scan" ]
1180
0 commit comments