Skip to main content

Module ast

Module ast 

Source
Expand description

AST types for all Sigma constructs: rules, detections, conditions, correlations, and filters.

Reference: Sigma specification V2.0.0 (2024-08-08) Reference: pySigma types, conditions, correlations, rule modules

Structs§

CorrelationRule
A Sigma correlation rule.
DetectionItem
A single detection item: a field (with modifiers) mapped to one or more values.
Detections
The complete detection section of a Sigma rule.
FieldAlias
Field alias mapping in a correlation rule.
FieldSpec
A field name with optional modifiers, parsed from detection keys like TargetObject|endswith or Destination|contains|all.
FilterRule
A Sigma filter rule that modifies the detection logic of referenced rules.
LogSource
Log source specification.
Related
A reference to a related Sigma rule.
SigmaCollection
A collection of parsed Sigma documents from one or more YAML files.
SigmaRule
A complete Sigma detection rule.

Enums§

ConditionExpr
Parsed condition expression AST.
ConditionOperator
Comparison operator in a correlation condition.
CorrelationCondition
Condition for a correlation rule.
CorrelationType
Correlation rule type.
Detection
A detection definition: a group of detection items or nested detections.
Level
Severity level of a triggered rule.
Modifier
All supported Sigma field modifiers.
Quantifier
Quantifier in a selector expression.
RelationType
Relationship type for the related field.
SelectorPattern
Target pattern in a selector expression.
SigmaDocument
A single parsed document from a Sigma YAML file.
Status
Rule maturity status.