SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfp_onyphe: Implement new VULNERABILITY_* reporting approach.
smicalleff13847f5b6b5
diff --git a/modules/sfp_onyphe.py b/modules/sfp_onyphe.pyindex 8739da72..a5c38cec 100644--- a/modules/sfp_onyphe.py+++ b/modules/sfp_onyphe.py@@ -90,7 +90,11 @@ class sfp_onyphe(SpiderFootPlugin):"GEOINFO","MALICIOUS_IPADDR","LEAKSITE_CONTENT",- "VULNERABILITY",+ "VULNERABILITY_CVE_CRITICAL",+ "VULNERABILITY_CVE_HIGH",+ "VULNERABILITY_CVE_MEDIUM",+ "VULNERABILITY_CVE_LOW",+ "VULNERABILITY_GENERAL","RAW_RIR_DATA","INTERNET_NAME","INTERNET_NAME_UNRESOLVED",@@ -390,27 +394,29 @@ class sfp_onyphe(SpiderFootPlugin):returnfor result in vulnerabilityData["results"]:+ if not self.isFreshEnough(result):+ continue+cves = result.get("cve")if cves is None:continue- cveData = ", ".join([cve for cve in cves if cve])+ for cve in cves:+ if not cve:+ continue- if cveData in sentData:- self.debug(f"Skipping {cveData}, already sent")- continue- sentData.add(cveData)-- if not self.isFreshEnough(result):- continue+ if cve in sentData:+ continue+ sentData.add(cve)- evt = SpiderFootEvent(- "VULNERABILITY",- cveData,- self.__name__,- event,- )- self.notifyListeners(evt)+ etype, cvetext = self.sf.cveInfo(cve)+ evt = SpiderFootEvent(+ etype,+ cvetext,+ self.__name__,+ event,+ )+ self.notifyListeners(evt)# End of sfp_onyphe class