A EVTX log analyzer that uses Sigma rules to scan Kaspersky logs, extracting security detections, IOCs, and generating reports in Hayabusa-compatible CSV format.
- Sigma Rule Support: Parses
.ymlrules with conditions, multiple blocks, and advanced operators. - IOC Extraction: Extracts hashes, IPs, URLs, domains, executables, and document names.
- VirusTotal/OpenTIP Integration: Optional live VT/OpenTIP lookup for matched hashes via API key.
- Hayabusa-Compatible CSV Output: Clean, structured, and easily parsable.
- Python 3.7 or higher
pyyamlrequestspython_evtxtqdmtabulate
Install dependencies via pip:
pip3 install -r requirements.txt
git clone https://github.com/cristianzsh/k-evtrace.git
cd k-evtrace
pip3 install -r requirements.txt
python3 k-evtrace.py --rules ./rules/ --logs ./evtx_logs/ --csv output.csv --levels crit,high,med --vt --ioc-dump iocs.json
| Flag | Description |
|---|---|
--rule |
Path to a single Sigma rule file |
--rules |
Directory containing multiple .yml Sigma rules |
--log |
Single .evtx file |
--logs |
Directory containing .evtx logs |
--csv |
Output CSV path |
--levels |
Comma-separated severity filter: emerg, crit, high, med, low, info |
--opentip |
Enable OpenTIP lookups (requires OPENTIP_API_KEY env variable) |
--vt |
Enable VirusTotal lookups (requires VT_API_KEY env variable) |
--ioc-dump |
Save extracted IOCs (JSON format) |
Scan a single log with one rule:
python3 k-evtrace.py --rule rules/rule1.yml --log logs/event.evtx --csv result.csv
Bulk scan with severity filter and IOC output:
python3 k-evtrace.py --rules rules/ --logs logs/ --levels high,crit --csv result.csv --ioc-dump iocs.json
VT_API_KEY: Your VirusTotal API key used for file hash lookups.OPENTIP_API_KEY: Your Kaspersky OpenTIP API key used for file hash lookups.
This project provides scripts to generate standalone binaries using Nuitka (pip3 install nuitka) for both Linux and Windows.
To build a Linux executable:
chmod +x build_linux.sh
./build_linux.sh
On Windows, simply double-click the build_win.bat file.
This project is licensed under the MIT License. See LICENSE for details.