Skip to content

Commit

Permalink
Fix for the Abuse_Finder and Fortiguard (#541)
Browse files Browse the repository at this point in the history
* Fix for issue #493

* Adding FQDN support to Abuse Finder #350

* Addition of FQDN to C1fApp
  • Loading branch information
phpsystems authored and nadouani committed Dec 25, 2019
1 parent 9ff4f1f commit 9b35265
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analyzers/Abuse_Finder/Abuse_Finder.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Find abuse contacts associated with domain names, URLs, IPs and email addresses.",
"dataTypeList": ["ip", "domain", "url", "mail"],
"dataTypeList": ["ip", "domain", "fqdn", "url", "mail"],
"baseConfig": "Abuse_Finder",
"command": "Abuse_Finder/abusefinder.py"
}
2 changes: 2 additions & 0 deletions analyzers/Abuse_Finder/abusefinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def abuse(self):
return ip_abuse(self.get_data())
elif self.data_type == "domain":
return domain_abuse(self.get_data())
elif self.data_type == "fqdn":
return domain_abuse(self.get_data())
elif self.data_type == "mail":
return email_abuse(self.get_data())
elif self.data_type == "url":
Expand Down
2 changes: 1 addition & 1 deletion analyzers/C1fApp/C1fApp_osint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Query C1fApp OSINT Aggregator for IPs, domains and URLs",
"dataTypeList": ["url", "domain", "ip"],
"dataTypeList": ["url", "domain", "fqdn", "ip"],
"baseConfig": "C1fApp",
"command": "C1fApp/cifquery.py",
"configurationItems": [
Expand Down
1 change: 1 addition & 0 deletions analyzers/C1fApp/cifquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def cleanup(return_data):
asn_descs.append(entry.get('asn_desc'))
countries.append(entry.get('country'))
domains.append(entry.get('domain'))
domains.append(entry.get('fqdn'))
dga_indication = entry.get('dga')

if len(list(entry.get('ip_address'))) > 0:
Expand Down

0 comments on commit 9b35265

Please sign in to comment.