-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated JSB analyzer #1022
Merged
Merged
Updated JSB analyzer #1022
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
209 changes: 209 additions & 0 deletions
209
analyzers/JoeSandbox/JoeSandbox_File_Analysis_Inet.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,209 @@ | ||
<div class="report-JoeSandbox" ng-if="success"> | ||
<style> | ||
.report-JoeSandbox dl { | ||
margin-bottom: 2px; | ||
} | ||
|
||
</style> | ||
|
||
|
||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<strong>General Information</strong> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
<h4>Joe Sandbox</h4> | ||
<br> | ||
<dl class="dl-horizontal" ng-if="content.version"> | ||
<dt>Version</dt> | ||
<dd>{{content.version}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" nf-if="content.arch"> | ||
<dt>Arch</dt> | ||
<dd>{{content.arch}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" nf-if="content.system"> | ||
<dt>System</dt> | ||
<dd>{{content.system}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="content.cookbook"> | ||
<dt>Cookbook</dt> | ||
<dd>{{content.cookbook}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="content.startdate"> | ||
<dt>Start date and time</dt> | ||
<dd>{{content.startdate}} {{content.starttime}} (Joe Sandbox time)</dd> | ||
</dl> | ||
<br> | ||
<h4>File information</h4> | ||
<br> | ||
<dl class="dl-horizontal"> | ||
<dt>FileType</dt> | ||
<dd>{{content.filetype}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-repeat="(k,v) in content.hashes"> | ||
<dt>{{k}}</dt> | ||
<dd >{{v}}</dd> | ||
</dl> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<strong>Analysis</strong> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
<div > | ||
<h4>Signatures</h4> | ||
<br> | ||
<dl ng-if="content.signatures.signare && content.signatures.signare.entries" class="dl-horizontal" ng-repeat="l in content.signatures.signare track by $index"> | ||
<dd>{{l}}<dd> | ||
</dl> | ||
<dl ng-if="content.signatures.signare && !content.signatures.signare.entries" class="dl-horizontal"> | ||
<dd>{{content.signatures.signare}}<dd> | ||
</dl> | ||
</div> | ||
<div ng-if="!content.signatures"> | ||
No suspicious signature reported | ||
</div> | ||
<hr> | ||
<div ng-if="content.contacted"> | ||
<h4>Remote connections</h4> | ||
<br> | ||
<div ng-repeat="(k,v) in content.contacted"> | ||
<div ng-if="k == 'domains'"> | ||
<h5>domains</h5> | ||
<dl class="dl-horizontal" ng-repeat="e in v.domain"> | ||
<dt ng-if="e.ip">{{e.ip}}</dt> | ||
<dd ng-if="e.name">{{e.name}}</dd> | ||
</dl> | ||
</div> | ||
|
||
<div ng-if="k === 'ips'"> | ||
<h5>IP addresses</h5> | ||
<dl class="dl-horizontal" ng-if="v.ip.substr"> | ||
<dd> | ||
{{v.ip}} | ||
</dd> | ||
</dl> | ||
<dl class="dl-horizontal" ng-if="!v.ip.substr" ng-repeat="ip in v.ip"> | ||
<dd ng-if="!ip.substr"> | ||
<span ng-if="ip['@malicious'] === 'true'" class="text-danger"><i class="fa fa-thumbs-down"></i> | ||
</span> | ||
<span ng-if="ip['@malicious'] === 'false'" class="text-success"><i class="fa fa-thumbs-up"></i> | ||
</span> | ||
{{ip.$}} | ||
</dd> | ||
<dd ng-if="ip.substr"> | ||
{{ip}} | ||
</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
<hr> | ||
</div> | ||
|
||
<div > | ||
<h4>Dropped files</h4> | ||
<br> | ||
<div ng-if="content.dropped.file" ng-repeat="f in content.dropped.file"> | ||
<h5>{{f.name}}</h5> | ||
<dl class="dl-horizontal" ng-repeat="(k,v) in f" ng-if="k !== 'name'"> | ||
<dt>{{k}}</dt> | ||
<dd>{{v}}</dd> | ||
</dl> | ||
</div> | ||
<div ng-if="!content.dropped.file"> | ||
No dropped file reported | ||
</div> | ||
</div> | ||
|
||
<hr> | ||
<div ng-if="content.confidence"> | ||
<h4>Confidence</h4> | ||
<br> | ||
<dl class="dl-horizontal"> | ||
<dt>Score</dt> | ||
<dd>{{content.confidence.score}}/{{content.confidence.maxscore}}</dd> | ||
</dl> | ||
</div> | ||
<hr> | ||
<br> | ||
|
||
<div ng-if="content.detection"> | ||
<h4>Maliciousness</h4> | ||
<br> | ||
<dl class="dl-horizontal"> | ||
<dt>Score</dt> | ||
<dd>{{content.detection.score}}/{{content.detection.maxscore}}</dd> | ||
<dd> | ||
<div ng-repeat="(k,v) in content.detection"> | ||
<span ng-switch="k"> | ||
<span ng-switch-when="clean" class="label label-success" ng-if="v === true"> | ||
Clean | ||
</span> | ||
<span ng-switch-when="malicious" class="label label-danger" ng-if="v === true"> | ||
Malicious | ||
</span> | ||
<span ng-switch-when="suspicious" class="label label-danger" ng-if="v === true"> | ||
Suspicious | ||
</span> | ||
</span> | ||
</div> | ||
</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-info " ng-if="content.images" > | ||
<div class="panel-heading"> | ||
<strong>Images</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<center> | ||
<h3> | ||
<a id="1" href ng-click="index = (index-1+content.images.length)%(content.images.length)">←</a> | ||
{{index||0}} | ||
<a id="2" href ng-click="index = (index+1)%(content.images.length)">→</a> | ||
</h3> | ||
<hr> | ||
<img data-ng-src="data:image/png;base64,{{content.images[index||0]}}" width="840" height="525"> | ||
</center> | ||
</dl> | ||
</div> | ||
</div> | ||
|
||
<div class="panel panel-info" ng-if="content.htmlreport || content.pdfreport"> | ||
<div class="panel-heading"> | ||
<strong>Reports</strong> | ||
</div> | ||
<div class="panel-body"> | ||
<dl class="dl-horizontal"> | ||
<dt>HTML report</dt> | ||
<dd>{{content.htmlreport}}</dd> | ||
</dl> | ||
<dl class="dl-horizontal"> | ||
<dt>PDF report</dt> | ||
<dd>{{content.pdfreport}}</dd> | ||
</dl> | ||
</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"> | ||
{{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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc for Analyzers and Responders is generated automatically, based upon json files,
readme.md
file and pictures. Can you update the analyzer with the missing content, please ?You can look at the documentation here: https://thehive-project.github.io/Cortex-Analyzers/dev_guides/analyzers_definition/.
You can also get inspired from one of existing analyzers like https://github.com/TheHive-Project/Cortex-Analyzers/tree/master/analyzers/EmlParser and see the result here: https://thehive-project.github.io/Cortex-Analyzers/analyzers/EmlParser/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I've updated my pull request with some documentation.
Let me know if I need to add or change anything else :-)