From ff5e93337257d836ab96a4d77bd10b4f291d1937 Mon Sep 17 00:00:00 2001 From: Michael Bradford Date: Fri, 19 Apr 2024 11:39:42 -0700 Subject: [PATCH] allow scoring of urls --- lib/cuckoo/common/scoring.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/cuckoo/common/scoring.py b/lib/cuckoo/common/scoring.py index 00f18926abd..94cf31972f5 100644 --- a/lib/cuckoo/common/scoring.py +++ b/lib/cuckoo/common/scoring.py @@ -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)