Files
hayabusa/tools/sigmac/README-en.md
2021-11-08 18:24:40 +09:00

1.4 KiB

hayabusaGenerator

python version version version

Japanese

hayabusaGenerater.py allows to convert SIGMA rules to Hayabusa ruleset.

sigma

https://github.com/SigmaHQ/sigma

Settings

hayabusaGenerator needs sigmac from the SIGMA repository. Before using hayabusaGenerator, clone the repository.

git clone https://github.com/SigmaHQ/sigma.git

Quickstart

Regist haybausa for SIGMA's backend.

export sigma_path=/path/to/sigma_repository
cp hayabusaGenerater.py $sigma_path/tools/sigma/backends

Convert Single Rule

python3 $sigma_path/tools/sigmac <Target Rule> --config <config Name> --target hayabusa

Sample

python3 $sigma_path/tools/sigmac $sigma/rules/windows/create_remote_thread/sysmon_cactustorch.yml --config $sigma_path/tools/config/generic/sysmon.yml --target hayabusa > sysmon_cactustorch.yml

Convert Multiple Rules

This is a command sample that creates a rule file from the specified directory in the current directory.

find $sigma/rules/windows/* | grep yml | xargs -I{} sh -c 'python $sigma/tools/sigmac {} --config $sigma/tools/config/generic/sysmon.yml --target hayabusa > "$(basename {})"'