Skip to content

tinkthemaker/detectsmith

Repository files navigation

Detectsmith

Python Tests Go License

Detection-as-code workbench for writing, testing, scoring, and documenting Sigma-style detections.

Project status

This repository is intentionally scope-locked by documentation first. Before adding code, read:

  1. docs/SCOPE.md — what v0.1 is and is not.
  2. docs/ARCHITECTURE.md — modules, commands, data flow, file layout.
  3. docs/QUALITY_MODEL.md — rule scoring and linter philosophy.
  4. docs/TESTING_STRATEGY.md — regression test approach and supported Sigma subset.
  5. docs/REPORT_SCHEMAS.md — JSON report and exit-code contracts for automation and future UI work.
  6. docs/TUI_ROADMAP.md — future Charm TUI direction, explicitly deferred until the CLI is stable.
  7. docs/plans/0001-detectsmith-v0.1.md — implementation plan.
  8. AGENTS.md — instructions for AI agents and future context resets.

Goal

Build a focused, portfolio-quality detection engineering project that demonstrates:

  • Detection-as-code discipline.
  • Sigma-style rule authoring.
  • Rule metadata quality checks.
  • Fixture-based detection regression testing.
  • MITRE ATT&CK coverage reporting.
  • Analyst-facing documentation generation.
  • GitHub Actions CI for detection content.

v0.1 commands

The first implementation target is a Python CLI with four commands:

detectsmith lint rules/
detectsmith test tests/expected.yml
detectsmith coverage rules/
detectsmith docs rules/ --out site/

Non-goals for v0.1

Detectsmith v0.1 is not a SIEM, EDR, scanner, offensive tool, live log collector, or full Sigma engine. It deliberately supports a small, documented subset of Sigma-like matching so the first version remains buildable and trustworthy.

Future TUI

Detectsmith should eventually have a Charm ecosystem TUI for interactive review and demos. That TUI is intentionally not part of v0.1. The planned architecture is:

Python CLI/core first → stable JSON reports → Go Charm TUI frontend

The TUI should invoke the CLI and read JSON reports rather than reimplementing detection logic. See docs/TUI_ROADMAP.md.

Portfolio positioning

The project should tell this story:

Threat behavior → detection rule → metadata quality → sample telemetry → regression test → ATT&CK coverage → analyst-facing docs → CI validation → eventual interactive TUI review.

That story is more important than broad platform support.

About

Detection-as-code workbench for Sigma-style rule linting, regression testing, ATT&CK coverage, and analyst docs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors