Skip to content

Commit

Permalink
sanitize strings in model
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Dec 2, 2024
1 parent 5b737c8 commit c37eaca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions capa/features/extractors/vmray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def _compute_monitor_processes(self):
ppid,
process.monitor_id,
process.image_name,
sanitize_string(process.filename),
sanitize_string(process.cmd_line),
process.filename,
process.cmd_line,
)

# not all processes are recorded in SummaryV2.json, get missing data from flog.xml, see #2394
Expand Down
4 changes: 2 additions & 2 deletions capa/features/extractors/vmray/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ class Process(BaseModel):
monitor_id: int
# monitor_reason: str
os_pid: int
filename: str
filename: SanitizedString
image_name: str
cmd_line: str
cmd_line: SanitizedString
ref_parent_process: Optional[GenericReference] = None


Expand Down

0 comments on commit c37eaca

Please sign in to comment.