Skip to content

Commit

Permalink
Report safe status
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Aug 30, 2021
1 parent 9d7a9fc commit 23a68fb
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -516,7 +516,7 @@ def get_file_results(sha256, **kwargs):

# Process Signatures
for signature in sec['heuristic'].get('signature', []):
sig = (signature['name'], h_type)
sig = (signature['name'], h_type, signature.get('safe', False))
if sig not in output['signatures']:
output['signatures'].add(sig)

Expand Down
2 changes: 1 addition & 1 deletion assemblyline_ui/api/v4/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_file_submission_results(sid, sha256, **kwargs):

# Process Signatures
for signature in sec['heuristic'].get('signature', []):
sig = (signature['name'], h_type)
sig = (signature['name'], h_type, signature.get('safe', False))
if sig not in output['signatures']:
output['signatures'].add(sig)

Expand Down

0 comments on commit 23a68fb

Please sign in to comment.