mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Update tests
This commit is contained in:
@@ -65,11 +65,11 @@ def prepareResults(raw):
|
||||
vendor_data = parsed['vendor_intel']
|
||||
|
||||
# get summary
|
||||
if parsed['signature']:
|
||||
if 'signature' in parsed:
|
||||
summary = parsed['signature']
|
||||
elif parsed['tags']:
|
||||
elif 'tags' in parsed:
|
||||
summary = str(parsed['tags'][0])
|
||||
elif vendor_data['YOROI_YOMI']:
|
||||
elif 'YOROI_YOMI' in vendor_data:
|
||||
summary = vendor_data['YOROI_YOMI']['detection']
|
||||
|
||||
# gauge vendors to determine an approximation of status, normalized to a value out of 100
|
||||
@@ -92,7 +92,7 @@ def prepareResults(raw):
|
||||
score = max(score, 0)
|
||||
|
||||
# compute status
|
||||
if score >= 75 or isInJson(raw, 'MALICIOUS'.lower()):
|
||||
if score >= 75 or isInJson(raw, 'MALICIOUS'.lower(), 1001):
|
||||
# if score >= 75:
|
||||
status = 'threat'
|
||||
elif score >= 50:
|
||||
|
||||
Reference in New Issue
Block a user