Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/processing/network_etw.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,12 @@ def _parse_sysmon_evtx(self):
pid_to_image = {}
dns_queries = []
evtx_path = os.path.join(self.analysis_path, "evtx", "evtx.zip")
if not HAVE_EVTX or not os.path.exists(evtx_path):
# Either parser can read the snapshot; _iter_sysmon_records prefers
# evtx-rs and only falls back to python-evtx. Gating solely on
# HAVE_EVTX (python-evtx) silently returned empty on images that ship
# only evtx-rs, zeroing out the pid->image map and leaving every
# network flow without a process name.
if not (HAVE_EVTX or HAVE_EVTX_RS) or not os.path.exists(evtx_path):
return connections, pid_to_image, dns_queries

tmpdir = tempfile.mkdtemp()
Expand Down
Loading