Expand description
Embedded rule exemplars under rsigma.exemplars.
Exemplars are machine-verifiable example events carried on a Sigma rule
as a custom attribute. Detection rules use a single event mapping;
correlation rules use a timestamped events sequence. The engine never
interprets these values at match time; they are documentation plus a
closed verification recipe for rule test.
Structs§
- Exemplar
- One extracted exemplar.
- Exemplar
Shape Error - A structural problem in an exemplar list or entry.
- Timed
Event - One timed event in a correlation exemplar sequence.
Enums§
- Exemplar
Error Kind - Classification of an exemplar shape error.
- Exemplar
Payload - The payload of one exemplar.
- Exemplar
Rule Kind - Which kind of Sigma document an exemplar list is attached to.
- Expect
- Whether the exemplar is expected to match the target rule.
Constants§
- EXEMPLARS_
KEY - The custom-attribute key that carries embedded exemplars.
Functions§
- correlation_
exemplars - Extract exemplars from a correlation rule.
- exemplars
- Extract exemplars from a detection rule.
- exemplars_
from_ attrs - Extract exemplars from a winning
custom_attributesmap. - filter_
exemplars - Extract exemplars from a filter rule (always empty or an error).
- match_
exemplar_ count - Count structurally valid
expect: matchexemplars on a parsed attribute map. - match_
exemplar_ count_ json - Count structurally valid
expect: matchexemplars on a JSON attribute map. - parse_
exemplars - Parse a raw exemplar YAML value with kind-specific payload rules.
- raw_
exemplar_ values - Every raw
rsigma.exemplarsvalue on a YAML mapping, from both the nestedcustom_attributes:map and a top-level dotted key, with its JSON-pointer. - raw_
match_ exemplar_ count - Count structurally valid
expect: matchexemplars on the winning raw value. - raw_
winning_ exemplars - The winning raw exemplar value, matching parser precedence (nested wins).