Sigma Command Line Interface (conversion, check etc.) based on pySigma
Project description
Sigma Command Line Interface
This is the Sigma command line interface using the pySigma library to manage, list and convert Sigma rules into query languages.
Getting Started
Installation
The easiest way to install the Sigma CLI is via pipx or pip. For this purpose run one of the following:
python -m pipx install sigma-cli
python -m pip install sigma-cli
Another way is to run this from source in a virtual environment managed by Poetry:
git clone https://github.com/SigmaHQ/sigma-cli.git
cd sigma-cli
poetry install
poetry shell
Usage
The CLI is available as sigma command. A typical invocation is:
sigma convert -t <backend> -p <processing pipeline 1> -p <processing pipeline 2> [...] <directory or file>
E.g. to convert process creation Sigma rules from a directory into Splunk queries for Sysmon logs run:
sigma convert -t splunk -p sysmon sigma/rules/windows/process_creation
Available conversion backends and processing pipelines can be listed with sigma list.
Backends can support different output formats, e.g. plain queries and a file that can be imported into the target
system. These formats can be listed with sigma list formats <backend> and specified for conversion with the -f
option.
In addition, an output file can be specified with -o.
Example for output formats and files:
sigma convert -t splunk -f savedsearches -p sysmon -o savedsearches.conf sigma/rules/windows/process_creation
Outputs a Splunk savedsearches.conf containing the converted searches.
Maintainers
The project is currently maintained by:
- Thomas Patzke thomas@patzke.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sigma-cli-0.4.2.tar.gz.
File metadata
- Download URL: sigma-cli-0.4.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0 CPython/3.8.12 Linux/5.13.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdb74f971c049fe541e8ab709ba1de8da5811fe8c25c0c7ddf3583425e026d0
|
|
| MD5 |
c8816f15bbda50838f907655997f74f1
|
|
| BLAKE2b-256 |
008a91bf4ee8a895584ce7ef85eafc9384f973f90a745c8ccf3637b74fd12bbc
|
File details
Details for the file sigma_cli-0.4.2-py3-none-any.whl.
File metadata
- Download URL: sigma_cli-0.4.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.0 CPython/3.8.12 Linux/5.13.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1810c3ebf74de38667b37097058915a63a1c3cbce48d399e6238c27c25dec4c
|
|
| MD5 |
cd5913d4898498010bd87a54324f1124
|
|
| BLAKE2b-256 |
33c582085659af961d7796412c38f6d59570716f2c6c6d5f9463dfcfbc41eda9
|