Files
Abdelghafour BouhdydandMike Cohen fa9a5b4cd1 Feature/carve evtx, (#5063)
Problem: When Windows event logs are cleared or deleted,
Windows.EventLogs.Cleared can show that a log was cleared, but the
events themselves are lost because parse_evtx() only reads intact log
files. The old data usually stays on disk, in unallocated space, the
pagefile or memory, until it is overwritten.

Solution: 
This PR adds a new carve_evtx() VQL plugin. It scans any file or device
for EVTX chunk signatures at any offset and parses each 64KB chunk on
its own.
- Rows have the same structure as parse_evtx(), plus ChunkOffset,
ChunkHeaderValid, ChunkDataValid, ChunkTruncated and ChunkCompressed.
- NTFS-compressed chunks (the Windows default for event logs) are
decompressed.
- Damaged chunks are flagged, not dropped.
- With output=, the recovered events are also written to a new .evtx
file that Event Viewer can open.

Example:
SELECT * FROM carve_evtx(filename='''\\.\C:''', accessor="raw_file")
WHERE System.Channel = "Application"

Known limitation
Old records in chunk slack are not recovered yet. This could be a
follow-up.

---------

Co-authored-by: Mike Cohen <[email protected]>
2026-10-07 21:34:46 +10:00
..
2024-02-20 01:29:57 +10:00
2025-09-16 14:11:14 +10:00
2026-02-12 14:50:47 +10:00
2026-02-04 16:53:06 +10:00
2025-07-27 17:16:22 +10:00
2026-06-01 13:36:44 +10:00
2026-05-27 15:55:50 +10:00
2026-09-24 14:54:41 +10:00
2022-05-10 18:36:58 +10:00
2026-02-04 16:53:06 +10:00
2026-09-25 21:28:17 +10:00
2026-10-07 21:34:46 +10:00
2025-06-30 02:17:53 +10:00
2025-03-24 19:06:57 +10:00
2026-09-25 21:28:17 +10:00