ElementTree
Python's built-in library for reading and writing XML documents as a tree of elements.
In more detail
Windows event XML puts every element in a namespace, so ElementTree lookups must pass a namespace map, as in ev.find("e:System", namespaces). Forgetting it makes every find return nothing.
Related terms
- XML — A text format that stores structured data as nested elements marked with tags in angle brackets, readable by both people and programs.
- XML namespace — A URI attached to XML element names so that names from different vocabularies cannot clash.
- Windows event log — The logging system built into Windows, which stores structured events in channels such as Security, System and Sysmon.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)