Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions modules/processing/CAPE.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading