Skip to the content.

How-to guides

These guides are goal-oriented. They assume you already understand SenseGNAT basics and want to accomplish a specific task.


Guides

Add a behavioral detector

Write a new stateless detector class, place it in sensegnat/detection/, wire it into SenseGNATService, and cover it with pytest tests — including a complete worked example: HighByteVolumeDetector.

Configure policies

Write a YAML policy file to seed behavioral baselines with known-good destinations, ports, and protocols before telemetry arrives, so legitimate traffic never fires as “rare”; covers group inheritance, subject-level exceptions, and common allow-listing patterns.

Integrate with GNAT

Push findings and narratives into a running GNAT instance as STIX 2.1 Indicators and Notes over TAXII 2.1; covers connector configuration, loading credentials from YAML, a full example STIX payload, error handling, and record-only mode for local development.

Use persistent storage

Switch from the default in-memory stores to JsonProfileStore and JsonFindingStore so behavioral profiles and findings survive process restarts; covers configuration paths, the JSON file format on disk, how profile merge accumulates baselines across runs, and when to prefer each store type.