Skip to content

Commit

Permalink
Merge pull request Neo23x0#211 from gr1xa/patch-1
Browse files Browse the repository at this point in the history
Fixed comparison issue
  • Loading branch information
Neo23x0 authored Mar 10, 2022
2 parents fb4182b + 1c96763 commit 77b0c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ def scan_processes(self, nopesieve, nolisten, excludeprocess, pesieveshellc):
for fioc in self.filename_iocs:
match = fioc['regex'].search(cmd)
if match:
if fioc['score'] > 70:
if int(fioc['score']) > 70:
logger.log("ALERT", "ProcessScan", "File Name IOC matched PATTERN: %s DESC: %s MATCH: %s" % (fioc['regex'].pattern, fioc['description'], cmd))
elif fioc['score'] > 40:
elif int(fioc['score']) > 40:
logger.log("WARNING", "ProcessScan", "File Name Suspicious IOC matched PATTERN: %s DESC: %s MATCH: %s" % (fioc['regex'].pattern, fioc['description'], cmd))

# Suspicious waitfor - possible backdoor https://twitter.com/subTee/status/872274262769500160
Expand Down

0 comments on commit 77b0c4b

Please sign in to comment.