diff --git a/modules/processing/CAPE.py b/modules/processing/CAPE.py index 1ae1ba8b302..7f791a38a41 100644 --- a/modules/processing/CAPE.py +++ b/modules/processing/CAPE.py @@ -256,14 +256,6 @@ def process_file(self, file_path, append_file, metadata: dict, *, category: str, file_info["options_hash"] = options_hash - # GravityRAT is infector so it will produce a lot of files. we don't need them - if category == "dropped" and any("GravityRAT" in i.get("name", "") for i in file_info.get("cape_yara", [])): - # delete file and continue - log.info("GravityRAT detected, removing file: %s", file_path) - with suppress(OSError): - os.remove(file_path) - return - if category in ("static", "file"): file_info["name"] = Path(self.task["target"]).name