Skip to content

Commit

Permalink
Merge pull request #220 from CybercentreCanada/hotfix/score_adj
Browse files Browse the repository at this point in the history
Make small adjustments to the scores
  • Loading branch information
cccs-sgaron authored Jul 13, 2021
2 parents 5cd6337 + 50ca48a commit d97f9e0
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 @@ -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']]
Expand Down

0 comments on commit d97f9e0

Please sign in to comment.