Sigma to Kibana Conversion Script
What it does
Downloads the latest Sigma detection rules from GitHub and converts them to Kibana-compatible format. The script handles Windows, macOS, and Linux rules, then optionally uploads them directly to your Kibana instance.
Prerequisites
- Python 3, pip, curl, jq, and unzip
How to use it
cd ~/LME/scripts/sigma/
chmod +x convert_sigma_to_kibana.sh
./convert_sigma_to_kibana.sh
What happens
- Downloads latest Sigma rules from official repository
- Converts rules for all three platforms (Windows/macOS/Linux)
- Creates NDJSON files in
output/
directory - Prompts to upload directly to Kibana or do it manually
Manual upload (if needed)
- Open Kibana at
https://localhost:5601
- Go to Security → Rules → Import Rules
- Upload the files from
output/
directory
Important notes
- All rules are disabled by default for security
- Review and enable rules individually based on your environment
- Script downloads fresh rules each time it runs