Skip to content

Commit

Permalink
#214 add risk Score and Risk Evidence Score serivces
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 8, 2018
1 parent a31de57 commit 5f4fa3d
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
30 changes: 30 additions & 0 deletions analyzers/DomainTools/DomainTools_RiskEvidenceScore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "DomainTools_RiskEvidenceScore",
"version": "2.0",
"author": "CERT-BDF",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Use DomainTools to get a list of domain names sharing the same IP address.",
"dataTypeList": ["domain"],
"command": "DomainTools/domaintools_analyzer.py",
"baseConfig": "DomainTools",
"config": {
"service": "risk_evidence_score"
},
"configurationItems": [
{
"name": "username",
"description": "DomainTools API credentials",
"type": "string",
"multi": false,
"required": true
},
{
"name": "key",
"description": "DomainTools API credentials",
"type": "string",
"multi": false,
"required": true
}
]
}
30 changes: 30 additions & 0 deletions analyzers/DomainTools/DomainTools_RiskScore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "DomainTools_RiskScore",
"version": "2.0",
"author": "CERT-BDF",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-V3",
"description": "Use DomainTools to get a list of domain names sharing the same IP address.",
"dataTypeList": ["domain"],
"command": "DomainTools/domaintools_analyzer.py",
"baseConfig": "DomainTools",
"config": {
"service": "risk_score"
},
"configurationItems": [
{
"name": "username",
"description": "DomainTools API credentials",
"type": "string",
"multi": false,
"required": true
},
{
"name": "key",
"description": "DomainTools API credentials",
"type": "string",
"multi": false,
"required": true
}
]
}
6 changes: 6 additions & 0 deletions analyzers/DomainTools/domaintools_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def domaintools(self, data):
elif self.service == 'whois/parsed' and self.data_type == 'domain':
response = api.parsed_whois(data).response()

elif self.service == 'risk_score' and self.data_type == 'domain':
response = api.risk(data).response()

elif self.service == 'risk_evidence_score' and self.data_type == 'domain':
response = api.risk_evidence(data).response()

elif self.service == 'reverse-whois':
response = api.reverse_whois(data, mode='purchase').response()

Expand Down

0 comments on commit 5f4fa3d

Please sign in to comment.