Skip to content

Commit

Permalink
Merge pull request #31 from CybercentreCanada/update/sig-fp
Browse files Browse the repository at this point in the history
Update/sig fp [dev]
  • Loading branch information
cccs-kevin authored Jul 25, 2022
2 parents 4bf5e4b + 65eb183 commit d81d21c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cape/cape_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from assemblyline_v4_service.common.safelist_helper import is_tag_safelisted
from assemblyline_v4_service.common.tag_helper import add_tag

from cape.signatures import get_category_id
from cape.signatures import get_category_id, CAPE_DROPPED_SIGNATURES
from cape.safe_process_tree_leaf_hashes import SAFE_PROCESS_TREE_LEAF_HASHES
from assemblyline_v4_service.common.dynamic_service_helper import (
extract_iocs_from_text_blob,
Expand Down Expand Up @@ -385,6 +385,9 @@ def process_signatures(
for sig in sigs:
sig_name = sig["name"]

if sig_name in CAPE_DROPPED_SIGNATURES:
continue

if not is_process_martian and sig_name == "process_martian":
is_process_martian = True

Expand Down
2 changes: 1 addition & 1 deletion cape/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@
"Virus": {"id": 54, "description": "Malicious software program."},
}

CAPE_DROPPED_SIGNATURES = []
CAPE_DROPPED_SIGNATURES = ["powershell_scriptblock_logging"]


def get_category_id(sig: str) -> int:
Expand Down

0 comments on commit d81d21c

Please sign in to comment.