From bd3b6559c103049be3d57ff7a65912154b7b8929 Mon Sep 17 00:00:00 2001 From: Steve Garon Date: Tue, 13 Jul 2021 17:17:31 +0000 Subject: [PATCH 1/2] Make small adjustments to the scores --- assemblyline_ui/api/v4/file.py | 2 +- assemblyline_ui/api/v4/submission.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assemblyline_ui/api/v4/file.py b/assemblyline_ui/api/v4/file.py index ef7266b6..2f1f1e66 100644 --- a/assemblyline_ui/api/v4/file.py +++ b/assemblyline_ui/api/v4/file.py @@ -493,7 +493,7 @@ def get_file_results(sha256, **kwargs): # Get the heuristics data if sec['heuristic']['score'] < 0: h_type = "safe" - elif sec['heuristic']['score'] < 100: + elif sec['heuristic']['score'] < 300: h_type = "info" elif sec['heuristic']['score'] < 1000: h_type = "suspicious" diff --git a/assemblyline_ui/api/v4/submission.py b/assemblyline_ui/api/v4/submission.py index 3491ae43..59cb34b2 100644 --- a/assemblyline_ui/api/v4/submission.py +++ b/assemblyline_ui/api/v4/submission.py @@ -151,7 +151,7 @@ def get_file_submission_results(sid, sha256, **kwargs): # Get the heuristics data if sec['heuristic']['score'] < 0: h_type = "safe" - elif sec['heuristic']['score'] < 100: + elif sec['heuristic']['score'] < 300: h_type = "info" elif sec['heuristic']['score'] < 1000: h_type = "suspicious" From 50ca48a34a4ef8151622f984336d6f31b80f4f8c Mon Sep 17 00:00:00 2001 From: Steve Garon Date: Tue, 13 Jul 2021 17:25:03 +0000 Subject: [PATCH 2/2] Spacing --- assemblyline_ui/api/v4/submission.py | 1 + 1 file changed, 1 insertion(+) diff --git a/assemblyline_ui/api/v4/submission.py b/assemblyline_ui/api/v4/submission.py index 59cb34b2..0b00f392 100644 --- a/assemblyline_ui/api/v4/submission.py +++ b/assemblyline_ui/api/v4/submission.py @@ -821,6 +821,7 @@ def recurse_get_names(data): return output name_map = recurse_get_names(tree['tree']) + summary = get_or_create_summary(submission_id, submission.pop('results', []), user['classification'], submission['state'] == "completed") tags = [t for t in summary['tags'] if not t['safelisted']]