droid
droid enables Detection as Code using Sigma. Keep your detection rules as Sigma in a Git repository, and droid validates them, converts them for each of your platforms, searches your logs with them and deploys them to your SIEM and EDR, from your laptop or your CI/CD pipeline.
Built on pySigma, droid also handles rules written directly in a platform's query language (raw rules).
Features
- Validate the syntax and the quality of your Sigma rules with the pySigma validators
- Convert them for each platform, with the pipelines you set per log source
- Search your logs with them, and report the hits before going live
- Export them to your platforms: create, update, disable and remove detection rules
- Check the integrity of what runs on a platform against your repository
- Correlate with Sigma correlation rules
- Serve one log source from several telemetry sources, each converted with its own pipelines
- Manage several tenants (MSSP) with per customer filters
- Update your rules from upstream sources such as SigmaHQ
Supported platforms
| Platform | --platform |
Search | Export | Integrity | Rule actions | MSSP |
|---|---|---|---|---|---|---|
| Splunk | splunk |
✅ | ✅ | ✅ | Email, webhook | |
| Microsoft Sentinel | microsoft_sentinel |
✅ | ✅ | ✅ | ✅ | |
| Microsoft Defender XDR | microsoft_xdr |
✅ | ✅ | ✅ | Response actions on users, files and devices | ✅ |
| Elastic Security (ES|QL) | esql |
✅ | ✅ | ✅ | Index, server log, email, webhook | |
| Elastic Security (EQL) | eql |
✅ | ✅ | ✅ | Index, server log, email, webhook |
Each platform needs its pySigma backend, see Getting started. The documentation details what each platform supports.
Getting started
1. Install droid and your backends
Python 3.11.8 or later is required.
python3 -m venv .venv && . .venv/bin/activate
pip install detect-droid
Then install the pySigma backend of each platform you target:
| Platform | Backend |
|---|---|
| Splunk | pip install pysigma-backend-splunk==2.1.0 |
| Microsoft Sentinel and Defender XDR | pip install pysigma-backend-kusto==1.0.1 |
| Elastic Security | pip install pysigma-backend-elasticsearch==2.1.1 |
Keep these versions: they support the pySigma version droid relies on. The latest releases of some backends require a newer pySigma and upgrade it, which breaks the other backends.
2. Lay out your rules
detection-rules/
├── droid_config.toml
├── sigma-rules/ # your Sigma rules
├── raw-rules/ # optional, rules in a platform query language
└── pipelines/ # your pySigma processing pipelines
To start from a ready-made layout, clone droid-init.
3. Configure droid
droid_config.toml tells droid where your rules are and how to reach each platform. Each log source gets the pipelines that map it to your data:
[base]
sigma_rules_directory = "sigma-rules"
raw_rules_directory = "raw-rules"
[platforms.splunk]
url = "splunk.example.org"
port = "8089"
# ...
[platforms.splunk.pipelines.windows_process_creation]
pipelines = ["splunk_windows", "pipelines/splunk_process_creation.yml"]
product = "windows"
category = "process_creation"
Credentials come from environment variables, e.g. DROID_SPLUNK_USER and DROID_SPLUNK_PASSWORD, never from the configuration file. See Configuration and the page of your platform.
4. Run it
# Check your rules
droid rules validate -r sigma-rules/ -c droid_config.toml
# See the query each rule becomes
droid rules convert -r sigma-rules/ -p splunk -c droid_config.toml
# Search your logs with them, before deploying
droid rules search -r sigma-rules/ -p splunk -c droid_config.toml
# Deploy them
droid rules export -r sigma-rules/ -p splunk -c droid_config.toml
# Check that the platform still runs what the repository holds
droid rules integrity -r sigma-rules/ -p splunk -c droid_config.toml
Add --debug for details, or --json for a JSON log, handy in CI/CD. droid --help lists every command and option.
5. Automate it
Run these commands in your CI/CD pipeline: validate and search on every merge request, export and check the integrity once merged. Your detection rules then follow the same review, history and rollback as code.
Documentation
The full documentation lives at certeu.github.io/droid-docs.
Resources
- Sigma Unleashed: A Realistic Implementation, FIRST 2024
Contributing
See CONTRIBUTE.md, including how to add a platform.
License
Licensed under the EUPL.
Metadata
Release files for detect-droid 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| detect_droid-0.5.1.tar.gz | 127.6 kB | With provenance | Details for detect_droid-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| detect_droid-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for detect_droid-0.5.1-py3-none-any.whl |
Total release size: 221.2 kB
Release files / detect_droid-0.5.1.tar.gz
| Download URL | detect_droid-0.5.1.tar.gz |
|---|---|
| Size | 127.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a63b9e1cb8d3718b56e6c8e7144259465e8ec93cdcffce675408f700ccfb8552
|
|
BLAKE2b-256 checksum How to use checksums |
3db43abeba305bca38f04c80b96979012ce95b4bed3292bc78b1221e08d659f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / detect_droid-0.5.1-py3-none-any.whl
| Download URL | detect_droid-0.5.1-py3-none-any.whl |
|---|---|
| Size | 93.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbc8b4613c1246d7b41696a8e575247fb08d96c4f1d0a0ecacb6a50516c881f1
|
|
BLAKE2b-256 checksum How to use checksums |
f7af7efc32fdc6030ce99f027201364ffb1e9535e185e44929308d051835fcee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for detect-droid 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for detect_droid-0.5.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.