Skip to content

Commit

Permalink
Merge pull request #1196 from TonioRyo/fix/sekoia-io-analyzer-template
Browse files Browse the repository at this point in the history
Fix analyzer and long report templates
  • Loading branch information
jeromeleonard authored Aug 4, 2023
2 parents c56af7a + dedb39a commit d7cf2aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def summary(self, raw):
has_threats = any(res.get("x_ic_indicated_threats") for res in raw["results"])
if has_threats:
taxonomies.append(self.build_taxonomy("malicious", "SEKOIA", self.service, value))
else;
taxonomies.append(self.build_taxonomy("safe", "SEKOIA", self.service, value))
else:
taxonomies.append(self.build_taxonomy("malicious", "SEKOIA", self.service, value))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
No results found
</div>
<h2 ng-if="content.results.length > 0">{{content.results.length}} Context(s)</h2>
<div ng-repeat="bundle in content.results track by 'id'">
<div ng-repeat="bundle in content.results track by bundle.id">
<h4>{{bundle.id}}</h4>
<div ng-if="bundle.objects.length > 0" ng-repeat="item in bundle.objects">
<div class="panel panel-info" ng-if="item.type !== 'relationship' && item.type !== 'marking-definition'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
No results found
</div>
<h2 ng-if="content.results.length > 0">{{content.results.length}} Indicator(s)</h2>
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="indicator in content.results track by 'id'">
<div class="panel panel-info" ng-if="content.results.length > 0" ng-repeat="indicator in content.results track by indicator.id">
<div class="panel-heading">
<strong>{{indicator.name | fang}}</strong>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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 panel-info" ng-if="content.results.length > 0" ng-repeat="observable in content.results track by observable.id">
<div class="panel-heading">
<strong>{{observable.x_inthreat_short_display | fang}}</strong>
</div>
Expand Down

0 comments on commit d7cf2aa

Please sign in to comment.