Skip to content

Commit 3819379

Browse files
committed
update
1 parent 5d161af commit 3819379

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

dojo/settings/settings.dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ def saml2_attrib_map_format(din):
13451345
"Red Hat Satellite": ["description", "severity"],
13461346
"Qualys Hacker Guardian Scan": ["title", "severity", "description"],
13471347
"Cyberwatch scan (Galeax)": ["title", "description", "severity"],
1348-
"Cycognito Scan": ["description"],
1348+
"Cycognito Scan": ["title", "severity"],
13491349
}
13501350

13511351
# Override the hardcoded settings here via the env var

dojo/tools/cycognito/parser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def get_findings(self, file, test):
2020
for vulnerability in data:
2121
description = ""
2222
mitigation = ""
23+
impact = ""
2324
confidence = vulnerability.get("confidence", None)
2425
affected_asset = vulnerability.get("affected_asset", None)
2526
package = vulnerability.get("package", None)
@@ -82,7 +83,7 @@ def get_findings(self, file, test):
8283
description += "**tech_owners:** " + str(tech_owners) + "\n"
8384
if teams and teams is not None:
8485
description += "**teams:** " + str(teams) + "\n"
85-
if potential_threat and potential_impact is not None:
86+
if potential_threat and potential_threat is not None:
8687
description += "**potential_threat:** " + str(potential_threat) + "\n"
8788
if attacker_interest is not None and not "None":
8889
description += "**attacker_interest:** " + str(attacker_interest) + "\n"
@@ -147,7 +148,7 @@ def get_findings(self, file, test):
147148
if remediation_steps is not None:
148149
mitigation += "**remediation_steps:** " + str("\n ".join(remediation_steps)) + "\n"
149150
if potential_impact and potential_impact is not None:
150-
description += "**potential_impact:** " + str(", ".join(potential_impact)) + "\n"
151+
impact = "**potential_impact:** " + str(", ".join(potential_impact)) + "\n"
151152
finding = Finding(
152153
title=title,
153154
test=test,
@@ -157,6 +158,7 @@ def get_findings(self, file, test):
157158
date=datetime.strptime(first_detected, "%Y-%m-%dT%H:%M:%S.%fZ").strftime("%Y-%m-%d"),
158159
dynamic_finding=True,
159160
mitigation=mitigation,
161+
impact=impact,
160162
)
161163
if cve_ids and cve_ids is not None:
162164
finding.unsaved_vulnerability_ids = []

0 commit comments

Comments
 (0)