-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from 9b/pt-only
PassiveTotal Analyzer: Added support for additional data sets
- Loading branch information
Showing
15 changed files
with
370 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "PassiveTotal_Components", | ||
"version": "2.0", | ||
"author": "Brandon Dixon (9bplus)", | ||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "PassiveTotal Components Lookup.", | ||
"dataTypeList": ["domain", "fqdn", "ip"], | ||
"command": "PassiveTotal/passivetotal_analyzer.py", | ||
"baseConfig": "PassiveTotal", | ||
"config": { | ||
"service": "components", | ||
"auto_extract": true | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"name": "username", | ||
"description": "Define the username of the account used to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
}, | ||
{ | ||
"name": "key", | ||
"description": "Define the API key to use to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "PassiveTotal_Host_Pairs", | ||
"version": "2.0", | ||
"author": "Brandon Dixon (9bplus)", | ||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "PassiveTotal Host Pairs Lookup.", | ||
"dataTypeList": ["domain", "fqdn", "ip"], | ||
"command": "PassiveTotal/passivetotal_analyzer.py", | ||
"baseConfig": "PassiveTotal", | ||
"config": { | ||
"service": "host_pairs", | ||
"auto_extract": true | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"name": "username", | ||
"description": "Define the username of the account used to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
}, | ||
{ | ||
"name": "key", | ||
"description": "Define the API key to use to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "PassiveTotal_Trackers", | ||
"version": "2.0", | ||
"author": "Brandon Dixon (9bplus)", | ||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "PassiveTotal Trackers Lookup.", | ||
"dataTypeList": ["domain", "fqdn", "ip"], | ||
"command": "PassiveTotal/passivetotal_analyzer.py", | ||
"baseConfig": "PassiveTotal", | ||
"config": { | ||
"service": "trackers", | ||
"auto_extract": true | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"name": "username", | ||
"description": "Define the username of the account used to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
}, | ||
{ | ||
"name": "key", | ||
"description": "Define the API key to use to connect the service", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<div class="report-PT" ng-if="success"> | ||
<style> | ||
.report-PT dl { | ||
margin-bottom: 2px; | ||
} | ||
</style> | ||
|
||
|
||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<strong>PassiveTotal Components Report</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<div ng-if="content.result.length === 0"> | ||
No records found | ||
</div> | ||
<div ng-if="content.result.length !== 0" class="panel panel-default"> | ||
<div class="panel-heading"> | ||
Summary Information | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt>Total Records:</dt> | ||
<dd>{{content.totalRecords}}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
<div ng-if="content.result.length !== 0" class="panel panel-default"> | ||
<div class="panel-heading"> | ||
Records | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-hover" ng-if="content.results.length > 0"> | ||
<tr> | ||
<th>Source</th> | ||
<th>Category</th> | ||
<th>Label</th> | ||
<th>Version</th> | ||
<th>First seen</th> | ||
<th>Last seen</th> | ||
</tr> | ||
<tr ng-repeat="c in content.results | orderBy:'-firstSeen'"> | ||
<td>{{c.hostname || 'None'}}</td> | ||
<td>{{c.category || 'None'}}</td> | ||
<td>{{c.label || 'None'}}</td> | ||
<td>{{c.version || 'None'}}</td> | ||
<td>{{c.firstSeen || 'None'}}</td> | ||
<td>{{c.lastSeen || 'None'}}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="panel panel-danger" ng-if="!success"> | ||
<div class="panel-heading"> | ||
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
{{content.errorMessage}} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<div class="report-PT" ng-if="success"> | ||
<style> | ||
.report-PT dl { | ||
margin-bottom: 2px; | ||
} | ||
</style> | ||
|
||
|
||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<strong>PassiveTotal Host Pairs Report</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<div ng-if="content.result.length === 0"> | ||
No records found | ||
</div> | ||
<div ng-if="content.result.length !== 0" class="panel panel-default"> | ||
<div class="panel-heading"> | ||
Summary Information | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt>Total Records:</dt> | ||
<dd>{{content.totalRecords}}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
<div ng-if="content.result.length !== 0" class="panel panel-default"> | ||
<div class="panel-heading"> | ||
Records | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-hover" ng-if="content.results.length > 0"> | ||
<tr> | ||
<th>Parent</th> | ||
<th>Child</th> | ||
<th>Cause</th> | ||
<th>First seen</th> | ||
<th>Last seen</th> | ||
</tr> | ||
<tr ng-repeat="c in content.results | orderBy:'-firstSeen'"> | ||
<td>{{c.parent || 'None'}}</td> | ||
<td>{{c.child || 'None'}}</td> | ||
<td>{{c.cause || 'None'}}</td> | ||
<td>{{c.firstSeen || 'None'}}</td> | ||
<td>{{c.lastSeen || 'None'}}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="panel panel-danger" ng-if="!success"> | ||
<div class="panel-heading"> | ||
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
{{content.errorMessage}} | ||
</div> | ||
</div> |
Oops, something went wrong.