-
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 #1073 from SEKOIA-IO/feat/sekoia_analyzer_for_obse…
…rvables feat: Add analyzer looking into SEKOIA's observables
- Loading branch information
Showing
6 changed files
with
158 additions
and
11 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
analyzers/SEKOIAIntelligenceCenter/IntelligenceCenter_observables.json
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,50 @@ | ||
{ | ||
"name": "SEKOIAIntelligenceCenter_Observables", | ||
"version": "1.0", | ||
"author": "SEKOIA", | ||
"url": "https://github.com/TheHive-Project/Cortex-Analyzers", | ||
"license": "AGPL-V3", | ||
"description": "Query the Intelligence Center to retrieve known observables", | ||
"dataTypeList": [ | ||
"domain", | ||
"fqdn", | ||
"url", | ||
"hash", | ||
"ip" | ||
], | ||
"command": "SEKOIAIntelligenceCenter/sekoia_intelligence_center_analyzer.py", | ||
"baseConfig": "SEKOIAIntelligenceCenter", | ||
"config": { | ||
"service": "observables" | ||
}, | ||
"configurationItems": [ | ||
{ | ||
"name": "api_key", | ||
"description": "Intelligence center API key", | ||
"type": "string", | ||
"multi": false, | ||
"required": true | ||
}, | ||
{ | ||
"name": "url", | ||
"description": "Intelligence center URL", | ||
"type": "string", | ||
"multi": false, | ||
"required": false | ||
} | ||
], | ||
"registration_required": true, | ||
"subscription_required": true, | ||
"free_subscription": false, | ||
"service_homepage": "https://sekoia.io/", | ||
"service_logo": { | ||
"path": "assets/sekoia_logo.png", | ||
"caption": "logo" | ||
}, | ||
"screenshots": [ | ||
{ | ||
"path": "assets/SEKOIAIntelligenceCenter_Context_long.png", | ||
"caption": "SEKOIAIntelligenceCenter_Context long report sample" | ||
} | ||
] | ||
} |
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
Binary file added
BIN
+26.8 KB
...s/SEKOIAIntelligenceCenter/assets/SEKOIAIntelligenceCenter_Observables_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
75 changes: 75 additions & 0 deletions
75
thehive-templates/SEKOIAIntelligenceCenter_Observables_1_0/long.html
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,75 @@ | ||
<div class="sekoia-report" ng-if="success"> | ||
<div ng-if="content.results.length === 0"> | ||
No results found | ||
</div> | ||
<h2 ng-if="content.results.length > 0">{{content.results.length}} Observable(s)</h2> | ||
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="observable in content.results track by 'id'"> | ||
<div class="panel-heading"> | ||
<strong>{{observable.x_inthreat_short_display | fang}}</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<div> | ||
<dl class="dl-horizontal" ng-if="observable.value"> | ||
<dt>Value</dt> | ||
<dd class="wrap">{{observable.value | fang}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.hashes['MD5']"> | ||
<dt>MD5</dt> | ||
<dd class="wrap">{{observable.hashes.MD5}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.hashes['SHA-1']"> | ||
<dt>SHA-1</dt> | ||
<dd class="wrap">{{observable.hashes['SHA-1']}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.hashes['SHA-256']"> | ||
<dt>SHA-256</dt> | ||
<dd class="wrap">{{observable.hashes['SHA-256']}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.hashes['SHA-512']"> | ||
<dt>SHA-512</dt> | ||
<dd class="wrap">{{observable.hashes['SHA-512']}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.hashes['SSDEEP']"> | ||
<dt>SSDEEP</dt> | ||
<dd class="wrap">{{observable.hashes['SSDEEP']}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.x_inthreat_tags"> | ||
<dt>Tags</dt> | ||
<dd> | ||
<div ng-if="observable.x_inthreat_tags.length === 0">No tags defined</div> | ||
<div ng-if="observable.x_inthreat_tags.length > 0"> | ||
<span class="label label-info" style="margin: 2px;" ng-repeat="tag in observable.x_inthreat_tags">{{tag.name}}</span> | ||
</div> | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="observable.x_ic_indicated_threats && observable.x_ic_indicated_threats.length > 0"> | ||
<dt>Threats</dt> | ||
<dd> | ||
<span class="label label-danger" style="margin: 2px;" ng-repeat="threat in observable.x_ic_indicated_threats">{{threat.name}}</span> | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt>Created</dt> | ||
<dd class="wrap">{{observable.created}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt>Modified</dt> | ||
<dd class="wrap">{{observable.modified}}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- General error --> | ||
<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"> | ||
<dl class="dl-horizontal" ng-if="content.errorMessage"> | ||
<dt><i class="fa fa-warning"></i> SEKOIA: </dt> | ||
<dd class="wrap">{{content.errorMessage}}</dd> | ||
</dl> | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
thehive-templates/SEKOIAIntelligenceCenter_Observables_1_0/short.html
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> |