Skip to main content

pySigma Logpoint backend

Project description

pySigma Logpoint Backend

Tests Coverage Badge Status

Overview

This is the Logpoint backend for pySigma. It provides the package sigma.backends.logpoint with the Logpoint class. Further, it contains the processing pipieline sigma.pipelines.logpoint, which performs field mapping and error handling.

The sigma.pipelines.logpoint module includes the following processing pipelines:

  • logpoint_windows: This pipeline is designed to convert Sigma rules into queries specifically tailored for the Windows event logging format used by Logpoint.
  • logpoint_azure: This pipeline is designed to convert Sigma rules into queries specifically tailored for the Azure event logging format used by Logpoint
  • logpoint_o365: This pipeline is designed to convert Sigma rules into queries specifically tailored for the Office 365 event logging format used by Logpoint
  • logpoint_defer_contains: This pipeline defer the Sigma contains keyword into eval expression. Useful when default query can't fetch the events and results in search timeout due to large number of wildcard searches. This optional pipeline can be used with in addition to other logpoint pipelines.

Rule Support

The Logpoint backend supports the following log sources/rule types:

  • Windows Sysmon
  • Windows
  • Azure
  • M365

Usage example

SigConverter (Sigma Rule Converter)

  1. Head to sigconverter website: sigconverter.io
  2. Choose logpoint backend.
  3. Choose logpoint related required pipeline.
  4. Copy sigma rule in rule.yml
  5. Result appears in query.

Sigma CLI

Requirements

  1. To use Sigma CLI (the Sigma Rule Converter) and its underlying library, ensure you have Python version 3.10 or higher installed.
  2. Install dependent pysigma.
pip3 install pysigma
  1. Install sigma-cli, command line tool for sigma rule conversion
pip3 install sigma-cli
  1. After installing Sigma CLI, you need to add the Logpoint backend plugin. Choose one of the following methods:
sigma plugin install logpoint

OR

pip3 install pysigma-backend-logpoint

Converting Sigma Rules

Once the packages are successfully installed, you can convert Sigma rules into Logpoint queries using the command below. For example, to convert the Suspicious Process Masquerading As SvcHost.EXE

sigma convert -t logpoint -p logpoint_windows rules/windows/process_creation/proc_creation_win_svchost_masqueraded_execution.yml

Output

╭─ubuntu@ubuntu
╰─$ sigma convert -t logpoint -p logpoint_windows rules/windows/process_creation/proc_creation_win_svchost_masqueraded_execution.yml
Parsing Sigma rules  [####################################]  100%
label="Create" label="Process" "process"="*\svchost.exe" - ("process" IN ["C:\Windows\System32\svchost.exe", "C:\Windows\SysWOW64\svchost.exe"] OR file="svchost.exe")

Limitations and Constraints

This backend is in its preliminary stage, which means there may be issues with query conversion from uncommon log types and it does not yet support conversion from all log sources covered by Sigma. Attempting to convert such rule types may result in an error.

This backend is currently maintained by Logpoint, with contributions from the following individuals:

Report Issues

If you encounter any issues, please don't hesitate to open a new issue.

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

pysigma_backend_logpoint-1.0.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

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

pysigma_backend_logpoint-1.0.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

Details for the file pysigma_backend_logpoint-1.0.0.tar.gz.

File metadata

File hashes

Hashes for pysigma_backend_logpoint-1.0.0.tar.gz
Algorithm Hash digest
SHA256 89c7e15b1c8866da4dba3373816c02406cec5586a8d0e081f2211d9861a10eb0
MD5 eb04c3b33605c2ddced4267471072969
BLAKE2b-256 f277a6fc13b5f6d5486bc748ae98833764cc9c90a24b8edbdb24d26fdc87b3b3

See more details on using hashes here.

File details

Details for the file pysigma_backend_logpoint-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pysigma_backend_logpoint-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b325a77df60c14fa26aae33f5dcf4dce8fdfb3294ae149b6da38bb6eb92f7067
MD5 44d2a5dba6d7412cf85a3288b7a36fb1
BLAKE2b-256 8fb0f121f7be1a35e206cb10910909b874711368b972e9c1bd1be3bdd7db17d7

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