Skip to content

Commit

Permalink
update conflicting imports naming
Browse files Browse the repository at this point in the history
  • Loading branch information
yelhamer committed Jul 25, 2024
1 parent 95e6cba commit 1659417
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def dynamic_capa_analysis(
analysis_dir: Path,
rules: RuleSet,
malware_pids: Optional[List[int]] = None,
) -> Tuple[Path, crd.MatchResults]:
) -> Tuple[Path, ResultDocumentMatchResults]:

# save all api calls and native calls into one list which gets sorted by capa later on.
calls = []
Expand Down Expand Up @@ -178,7 +178,7 @@ def get_process_memory_dumps(analysis_dir: Path, pid: int) -> Iterator[str]:

def static_capa_analysis(
dump_path: Path, rules: RuleSet
) -> Tuple[Path, crd.MatchResults]:
) -> Tuple[Path, ResultDocumentMatchResults]:

"""get the input file's capa format"""
try:
Expand Down Expand Up @@ -214,7 +214,7 @@ def static_capa_analysis(

def static_memory_dumps_capa_analysis(
analysis_dir: Path, rules: RuleSet, malware_pids: List[int] = []
) -> Iterator[Tuple[Path, crd.MatchResults]]:
) -> Iterator[Tuple[Path, ResultDocumentMatchResults]]:
malware_dumps = list(
itertools.chain(
*(get_process_memory_dumps(analysis_dir, pid) for pid in malware_pids)
Expand Down Expand Up @@ -290,7 +290,7 @@ def construct_ttp_block(

def construct_ttp_blocks(
rules: RuleSet,
capabilities_per_file: List[Tuple[Path, ce.MatchResults]],
capabilities_per_file: List[Tuple[Path, EngineMatchResults]],
filter_function=None,
) -> Iterator[Dict[str, Any]]:
"""construct a ttp block for each extracted capability"""
Expand Down

0 comments on commit 1659417

Please sign in to comment.