-
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.
- Loading branch information
Nicolas Grorod
committed
Aug 1, 2018
1 parent
a71774b
commit ba892b4
Showing
8 changed files
with
239 additions
and
1 deletion.
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,23 @@ | ||
{ | ||
"name": "Onyphe_Datascan", | ||
"version": "1.0", | ||
"author": "Pierre Baudry, Adrien Barchapt", | ||
"url": "https://github.com/cybernardo/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "Retrieve datascan information Onyphe has for the given IPv{4,6} address with history of changes or search a string.", | ||
"dataTypeList": ["ip","other"], | ||
"command": "Onyphe/onyphe_analyzer.py", | ||
"baseConfig": "Onyphe", | ||
"config": { | ||
"service": "datascan" | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "Onyphe_Inetnum", | ||
"version": "1.0", | ||
"author": "Pierre Baudry, Adrien Barchapt", | ||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "Retrieve Onyphe Inetnum information on an IPv{4,6} address with history.", | ||
"dataTypeList": ["ip"], | ||
"command": "Onyphe/onyphe_analyzer.py", | ||
"baseConfig": "Onyphe", | ||
"config": { | ||
"service": "inetnum" | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"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,78 @@ | ||
<div class="panel panel-info" ng-if="success"> | ||
<div class="panel-heading"> | ||
Onyphe Datascan - <strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
My IP | ||
</dt> | ||
<dd> | ||
{{content.datascan.myip}} | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
Number of results | ||
</dt> | ||
<dd> | ||
{{content.datascan.count}} | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
Error(s) | ||
</dt> | ||
<dd> | ||
{{content.datascan.error}} | ||
</dd> | ||
</dl> | ||
|
||
<table class="table" ng-if="content.datascan.results.length !== 0 "> | ||
<thead> | ||
<th>Category</th> | ||
<th>Type</th> | ||
<th>ASN</th> | ||
<th>Country</th> | ||
<th>IPv4</th> | ||
<th>Organisation</th> | ||
<th>Location</th> | ||
<th>Port</th> | ||
<th>Protocol</th> | ||
<th>OS</th> | ||
<th>Product</th> | ||
<th>Product Version</th> | ||
<th>Seen Date</th> | ||
<th>Data MD5</th> | ||
</thead> | ||
<tbody ng-repeat="r in content.datascan.results | orderBy:'-seen_date'"> | ||
<tr> | ||
<td>{{r["@category"]}}</td> | ||
<td>{{r["@type"]}}</td> | ||
<td>{{r.asn}}</td> | ||
<td>{{r.country}}</td> | ||
<td>{{r.ip}}</td> | ||
<td>{{r.organization}}</td> | ||
<td>{{r.location}}</td> | ||
<td>{{r.port}}</td> | ||
<td>{{r.protocol}}</td> | ||
<td>{{r.os}}</td> | ||
<td>{{r.product}}</td> | ||
<td>{{r.productversion}}</td> | ||
<td>{{r.seen_date}}</td> | ||
<td>{{r.datamd5}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<!-- General error --> | ||
<div class="panel panel-danger" ng-if="!success"> | ||
<div class="panel-heading"> | ||
<strong>{{artifact.data | 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,3 @@ | ||
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]"> | ||
{{t.namespace}}:{{t.predicate}}="{{t.value}}" | ||
</span> |
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,70 @@ | ||
<div class="panel panel-info" ng-if="success"> | ||
<div class="panel-heading"> | ||
Onyphe Datascan - <strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
My IP | ||
</dt> | ||
<dd> | ||
{{content.inetnum.myip}} | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
Number of results | ||
</dt> | ||
<dd> | ||
{{content.inetnum.count}} | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt> | ||
Error(s) | ||
</dt> | ||
<dd> | ||
{{content.inetnum.error}} | ||
</dd> | ||
</dl> | ||
|
||
<table class="table" ng-if="content.inetnum.results.length !== 0 "> | ||
<thead> | ||
<th>Category</th> | ||
<th>Type</th> | ||
<th>ASN</th> | ||
<th>Country</th> | ||
<th>Subnet</th> | ||
<th>Organisation</th> | ||
<th>Location</th> | ||
<th>Netname</th> | ||
<th>Seen Date</th> | ||
<th>Source</th> | ||
</thead> | ||
<tbody ng-repeat="r in content.inetnum.results | orderBy:'-seen_date'"> | ||
<tr> | ||
<td>{{r["@category"]}}</td> | ||
<td>{{r["@type"]}}</td> | ||
<td>{{r.asn}}</td> | ||
<td>{{r.country}}</td> | ||
<td>{{r.subnet}}</td> | ||
<td>{{r.organization}}</td> | ||
<td>{{r.location}}</td> | ||
<td>{{r.netname}}</td> | ||
<td>{{r.seen_date}}</td> | ||
<td>{{r.source}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
<!-- General error --> | ||
<div class="panel panel-danger" ng-if="!success"> | ||
<div class="panel-heading"> | ||
<strong>{{artifact.data | 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,3 @@ | ||
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]"> | ||
{{t.namespace}}:{{t.predicate}}="{{t.value}}" | ||
</span> |
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