Skip to main content

Sigma Command Line Interface (conversion, check etc.) based on pySigma

Project description

Sigma Command Line Interface

Tests Coverage Badge Status

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sigma-cli-0.4.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sigma_cli-0.4.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for sigma-cli-0.4.2.tar.gz
Algorithm Hash digest
SHA256 5fdb74f971c049fe541e8ab709ba1de8da5811fe8c25c0c7ddf3583425e026d0
MD5 c8816f15bbda50838f907655997f74f1
BLAKE2b-256 008a91bf4ee8a895584ce7ef85eafc9384f973f90a745c8ccf3637b74fd12bbc

See more details on using hashes here.

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

Hashes for sigma_cli-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1810c3ebf74de38667b37097058915a63a1c3cbce48d399e6238c27c25dec4c
MD5 cd5913d4898498010bd87a54324f1124
BLAKE2b-256 33c582085659af961d7796412c38f6d59570716f2c6c6d5f9463dfcfbc41eda9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page