Skip to content

Commit

Permalink
Merge pull request #868 from LaZyDK/patch-1
Browse files Browse the repository at this point in the history
Add fqdn to Umbrella analyzer
  • Loading branch information
dadokkio authored Sep 30, 2020
2 parents d950d84 + c1fa5a1 commit 43a9821
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion analyzers/Umbrella/Umbrella.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,17 @@ def summary(self, raw):


def run(self):
# Map The Hive observable types to Umbrella observable types
observable_mapping = {
"domain": "domain",
"fqdn": "domain",
}

if self.service == 'get':
if self.data_type == 'domain':
dataType = self.get_param("dataType")

# Validate the supplied observable type is supported
if dataType in observable_mapping.keys():
data = self.get_param('data', None, 'Data is missing')
r = self.umbrella_runreport(data)
self.report(r)
Expand Down
2 changes: 1 addition & 1 deletion analyzers/Umbrella/Umbrella_Report.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/arnydo/thehive/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Query the Umbrella Reporting API for recent DNS queries and their status.",
"dataTypeList": ["domain"],
"dataTypeList": ["domain", "fqdn"],
"command": "Umbrella/Umbrella.py",
"baseConfig": "Umbrella",
"config": {
Expand Down

0 comments on commit 43a9821

Please sign in to comment.