Skip to content

Commit 0c64bd4

Browse files
authored
Merge pull request #2521 from mandiant/fix/2466-cape-model
make Process model flexible and procmemory optional
2 parents ed86e5f + 959a234 commit 0c64bd4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- binja: support loading raw x86/x86_64 shellcode #2489 @xusheng6
3434
- binja: fix crash when the IL of certain functions are not available. #2249 @xusheng6
3535
- binja: major performance improvement on the binja extractor. #1414 @xusheng6
36+
- cape: make Process model flexible and procmemory optional to load newest reports #2466 @mr-tz
3637

3738
### capa Explorer Web
3839

capa/features/extractors/cape/models.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ class Call(ExactModel):
297297
id: int
298298

299299

300-
class Process(ExactModel):
300+
# FlexibleModel to account for extended fields
301+
# refs: https://github.com/mandiant/capa/issues/2466
302+
# https://github.com/kevoreilly/CAPEv2/pull/2199
303+
class Process(FlexibleModel):
301304
process_id: int
302305
process_name: str
303306
parent_id: int
@@ -400,7 +403,7 @@ class CapeReport(FlexibleModel):
400403
CAPE: Optional[Union[Cape, list]] = None
401404
dropped: Optional[list[File]] = None
402405
procdump: Optional[list[ProcessFile]] = None
403-
procmemory: ListTODO
406+
procmemory: Optional[ListTODO] = None
404407

405408
# =========================================================================
406409
# information we won't use in capa

0 commit comments

Comments
 (0)