Skip to content

Commit

Permalink
Merge pull request #11 from polyswarm/fix/cape_url
Browse files Browse the repository at this point in the history
fix: allow cape scoring of urls
  • Loading branch information
mjbradford89 authored Apr 19, 2024
2 parents c955b35 + ff5e933 commit 1105012
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/cuckoo/common/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ def calc_scoring(results: dict, matched: list):
status = None
fileType = results.get("target", {}).get("file", {}).get("type")

if not fileType:
return finalMalscore, status

if "executable" in fileType:
if fileType and "executable" in fileType:
# We have 5 methodologies
# 1. The file is Malicious-Known (The sample is detected by YARA)
## score 10/10 (Malicious)
Expand Down

0 comments on commit 1105012

Please sign in to comment.