Skip to content

Commit

Permalink
Merge pull request #221 from CybercentreCanada/hotfix/score_adj
Browse files Browse the repository at this point in the history
Hotfix/score adj
  • Loading branch information
cccs-sgaron authored Jul 13, 2021
2 parents 185f9f6 + 50ca48a commit e52a3fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assemblyline_ui/api/v4/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion assemblyline_ui/api/v4/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -825,6 +825,7 @@ def recurse_get_names(data):
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']]

attack_matrix = summary['attack_matrix']
heuristics = summary['heuristics']
submission['classification'] = Classification.max_classification(submission['classification'],
Expand Down

0 comments on commit e52a3fb

Please sign in to comment.