
Detecta artefatos de malware baseados em PowerShell a partir de logs de eventos e realiza análise estática em scripts PowerShell para identificar atividades maliciosas.

Esta ferramenta detecta artefatos de malware baseado em PowerShell a partir do log de eventos do registro do PowerShell.
Demonstração 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
| Argumentos | Significado |
|---|---|
input file | Arquivo XML exportado do log de eventos |
-o output json | nome do arquivo de resultado do z9 |
--no-viewer | não abrir o visualizador |
Exemplo)
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
| Argumentos | Significado |
|---|---|
input file | Arquivo PowerShell a ser analisado |
-o output json | nome do arquivo de resultado do z9 |
-s | realizar análise estática |
--utf8 | especificar quando o arquivo de entrada está em UTF-8 |
--no-viewer | não abrir o visualizador |
Exemplo)
python z9.py malware.ps1 -o sample1.json -s
util/enable_powershell_logging.reg .util/collect_psevent.bat .util/log.util/collect_psevent.bat como "Executar como Administrador"