
Erkennt auf PowerShell basierende Malware-Artefakte aus Ereignisprotokollen und führt statische Analysen von PowerShell-Skripten durch, um bösartige Aktivitäten zu identifizieren.

Dieses Tool erkennt Artefakte von PowerShell-basierter Malware im Ereignisprotokoll der PowerShell-Protokollierung.
Online Demo
git clone https://github.com/Sh1n0g1/z9
cd z9
pip install -r requirements.txt
usage: z9.py [-h] [--output OUTPUT] [-s] [--no-viewer] [--utf8] input
positional arguments:
input Input file path
options:
-h, --help show this help message and exit
--output OUTPUT, -o OUTPUT
Output file path
-s, --static Enable Static Analysis mode
--no-viewer Disable opening the JSON viewer in a web browser
--utf8 Read scriptfile in utf-8 (deprecated)
python z9.py <input file> -o <output json>
python z9.py <input file> -o <output json> --no-viewer
| Arguments | Bedeutung |
|---|---|
input file | Aus dem Ereignisprotokoll exportierte XML-Datei |
-o output json | Dateiname des z9-Ergebnisses |
--no-viewer | Viewer nicht öffnen |
Beispiel)
python z9.py util\log\mwpsop.xml -o sample1.json
python z9.py <input file> -o <output json> -s
python z9.py <input file> -o <output json> -s --utf8
python z9.py <input file> -o <output json> -s --no-viewer
| Arguments | Bedeutung |
|---|---|
input file | Zu analysierende PowerShell-Datei |
-o output json | Dateiname des z9-Ergebnisses |
-s | führe statische Analyse durch |
--utf8 | geben Sie an, wenn die Eingabedatei UTF-8 ist |
--no-viewer | Viewer nicht öffnen |
Beispiel)
python z9.py malware.ps1 -o sample1.json -s
util/enable_powershell_logging.reg .util/collect_psevent.bat .util/log erstellt.util/collect_psevent.bat mit „Als Administrator ausführen“