From 0cddeff2158eda57fb2a35b59aa05eb59b44b2da Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Thu, 12 Nov 2020 06:01:29 +0100 Subject: [PATCH] #1633 Add tlp to observable flags component and use it in report observables import section --- .../common/observable-flags.component.js | 1 + .../app/scripts/directives/report-observables.js | 4 +++- .../alert/observable-list.component.html | 6 ++---- .../common/observable-flags.component.html | 16 ++++++++++++++++ .../app/views/directives/report-observables.html | 14 ++++++++++---- .../partials/observables/details/summary.html | 13 +++---------- .../partials/observables/list/observables.html | 2 +- 7 files changed, 36 insertions(+), 20 deletions(-) diff --git a/frontend/app/scripts/components/common/observable-flags.component.js b/frontend/app/scripts/components/common/observable-flags.component.js index 4c02c4941b..b8e90936cb 100644 --- a/frontend/app/scripts/components/common/observable-flags.component.js +++ b/frontend/app/scripts/components/common/observable-flags.component.js @@ -18,6 +18,7 @@ inline: '<', hideSimilarity: '<', hideSeen: '<', + hideTlp: '<', onFilter: '&' } }); diff --git a/frontend/app/scripts/directives/report-observables.js b/frontend/app/scripts/directives/report-observables.js index 4f7a73abd0..12c6cc9cf1 100644 --- a/frontend/app/scripts/directives/report-observables.js +++ b/frontend/app/scripts/directives/report-observables.js @@ -49,7 +49,8 @@ $scope.selectAll = function() { var type = $scope.pagination.filter; _.each(type === '' ? $scope.observables : $scope.groups[type], function(item) { - if(!item.id && !item.selected) { + //if(!item.id && !item.selected) { + if(!item.stats.observableId && !item.selected) { item.selected = true; $scope.selected++; } @@ -80,6 +81,7 @@ single: list.length === 1, ioc: false, sighted: false, + ignoreSimilarity: false, tlp: 2, message: message, tags: [{text: 'src:' + $scope.analyzer}] diff --git a/frontend/app/views/components/alert/observable-list.component.html b/frontend/app/views/components/alert/observable-list.component.html index c9776b6ee3..2f88854b66 100644 --- a/frontend/app/views/components/alert/observable-list.component.html +++ b/frontend/app/views/components/alert/observable-list.component.html @@ -22,8 +22,7 @@ - - + @@ -31,9 +30,8 @@ -
Flags Type Data Date Added
- + {{observable.dataType}} diff --git a/frontend/app/views/components/common/observable-flags.component.html b/frontend/app/views/components/common/observable-flags.component.html index 45d1c6a45a..5eca732365 100644 --- a/frontend/app/views/components/common/observable-flags.component.html +++ b/frontend/app/views/components/common/observable-flags.component.html @@ -1,4 +1,20 @@
+ +
+ +
+
diff --git a/frontend/app/views/directives/report-observables.html b/frontend/app/views/directives/report-observables.html index 53c6f4e103..7b3bf5754e 100644 --- a/frontend/app/views/directives/report-observables.html +++ b/frontend/app/views/directives/report-observables.html @@ -26,8 +26,9 @@ - - + + + @@ -37,9 +38,14 @@ - + +
FlagsImported Type Data
- + + + + + {{observable.dataType}} diff --git a/frontend/app/views/partials/observables/details/summary.html b/frontend/app/views/partials/observables/details/summary.html index ffaef9822b..741319e11a 100644 --- a/frontend/app/views/partials/observables/details/summary.html +++ b/frontend/app/views/partials/observables/details/summary.html @@ -127,22 +127,15 @@

Links

- - + - + -
IOCTLPFlags CaseDate addedDate added
- - - + diff --git a/frontend/app/views/partials/observables/list/observables.html b/frontend/app/views/partials/observables/list/observables.html index b13bbfa2d2..c649bea501 100644 --- a/frontend/app/views/partials/observables/list/observables.html +++ b/frontend/app/views/partials/observables/list/observables.html @@ -64,7 +64,7 @@

- +