
Rileva artefatti malware basati su PowerShell dai log degli eventi ed esegue analisi statiche sugli script PowerShell per identificare attività malevola.

Questo strumento rileva gli artefatti del malware basato su PowerShell dal log eventi della registrazione di PowerShell.
Demo Online
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
| Argomenti | Significato |
|---|---|
input file | File XML esportato dal log eventi |
-o output json | Nome file del risultato di z9 |
--no-viewer | Non aprire il visualizzatore |
Esempio)
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
Esempio)
python z9.py malware.ps1 -o sample1.json -s
util/enable_powershell_logging.reg .util/collect_psevent.bat .util/log.util/collect_psevent.bat con "Esegui come amministratore"| Argomenti | Significato |
|---|
input file | File PowerShell da analizzare |
-o output json | Nome file del risultato di z9 |
-s | Esegue l'analisi statica |
--utf8 | Specificare quando il file di input è in UTF-8 |
--no-viewer | Non aprire il visualizzatore |