Skip to content

Commit

Permalink
Merge pull request #706 from TheHive-Project/URLhaus
Browse files Browse the repository at this point in the history
fqdn  support for Url haus
  • Loading branch information
garanews authored Mar 3, 2020
2 parents d5cd95f + 8cda4f0 commit 4c6106d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analyzers/URLhaus/URLhaus.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "2.0",
"baseConfig": "URLhaus",
"description": "Search domains, IPs, URLs or hashes on URLhaus.",
"dataTypeList": ["domain", "url", "hash", "ip"],
"dataTypeList": ["domain", "fqdn", "url", "hash", "ip"],
"command": "URLhaus/URLhaus_analyzer.py",
"configurationItems": [
]
Expand Down
4 changes: 2 additions & 2 deletions analyzers/URLhaus/URLhaus_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def run(self):
results = {}
if self.data_type == 'url':
results = URLhausClient.search_url(data)
elif self.data_type in ['domain', 'ip']:
elif self.data_type in ['domain', 'fqdn', 'ip']:
results = URLhausClient.search_host(data)
elif self.data_type == 'hash':
if len(data) in [32, 64]:
Expand Down Expand Up @@ -50,7 +50,7 @@ def summary(self, raw):
'Threat',
raw['threat']
))
elif self.data_type in ['domain', 'ip']:
elif self.data_type in ['domain', 'fqdn', 'ip']:
threat_types = []
for url in raw['urls']:
if url['threat'] not in threat_types:
Expand Down

0 comments on commit 4c6106d

Please sign in to comment.