-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMRay and dynamic improvements #2537
base: master
Are you sure you want to change the base?
Changes from all commits
893378c
55720dd
06f0012
1f34795
51d606b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,7 +276,7 @@ class ElfFileHeader(BaseModel): | |
|
||
class ElfFile(BaseModel): | ||
# file_header: ElfFileHeader | ||
sections: list[ElfFileSection] | ||
sections: list[ElfFileSection] = [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. incidentally, is this the correct way to set the default value, particularly as a list? i see this pattern used throughout the file. my worry is that the default value in the past, i've used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, great question, this is how mypy accepted the change and I saw the pattern throughout. Other files use |
||
|
||
|
||
class StaticData(BaseModel): | ||
|
@@ -314,10 +314,11 @@ class Process(BaseModel): | |
# is_ioc: bool | ||
monitor_id: int | ||
# monitor_reason: str | ||
origin_monitor_id: int # VMRay ID of parent process | ||
os_pid: int | ||
filename: SanitizedString | ||
filename: Optional[SanitizedString] = "" | ||
image_name: str | ||
cmd_line: SanitizedString | ||
cmd_line: Optional[SanitizedString] = "" | ||
ref_parent_process: Optional[GenericReference] = None | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts on being even more lenient here and not asserting this but just reporting it?
I'm encountering more inconsistencies between the two files, e.g., the
monitor_id
not being setThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we could do the check and just log it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant to be lenient here because we rely on sane process and thread monitor IDs for indexing. I'd consider differences between SummaryV2.json and flog.xml to be VMRay bugs and, if true, can we trust capa's results at that point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, let's leave as is until we find more samples that fail.