Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEventType = errors.New("invalid event type") ErrInvalidNodeType = errors.New("invalid node type") ErrRootNodeWithoutEventSrc = errors.New("root node has no event src") ErrInvalidWindow = errors.New("invalid window") ErrMissingOrigin = errors.New("missing origin event") ErrInvalidAnchor = errors.New("invalid anchor") )
View Source
var ( ErrUnknownField = errors.New("unknown source field") ErrUnknownSrc = errors.New("unknown source") ErrSeqPosConditions = errors.New("sequences require two or more positive conditions") ErrMissingScalar = errors.New("missing string, jq, or regex condition") ErrMissingPositiveOrderCondition = errors.New("missing one or more positive condition under an order statement") ErrMissingPositiveMatchCondition = errors.New("missing one or more positive condition under a match statement") )
View Source
var (
ErrInvalidDescriptor = errors.New("invalid descriptor")
)
Functions ¶
Types ¶
type AstDescriptorT ¶
type AstDescriptorT struct {
Type AstNodeTypeT
MatchId uint32
Depth int
NegateOpts *AstNegateOptsT
}
type AstLogMatcherT ¶
type AstMatchIdT ¶
type AstMatchIdT uint
type AstMetadataT ¶
type AstMetadataT struct {
Scope string
Type AstNodeTypeT
RuleId string
RuleHash string
MatchId uint32
ParentMatchId uint32
Depth int
NegateOpts *AstNegateOptsT
}
type AstNegateOptsT ¶
type AstNodePairT ¶
Each matcher node requires a corresponding descriptor node (except for the root, which is a detection)
type AstNodeT ¶
type AstNodeT struct {
Metadata AstMetadataT
Object any
Children []*AstNodeT
NegIdx int
}
type AstNodeTypeT ¶
type AstNodeTypeT string
const ( NodeTypeUnk AstNodeTypeT = "Unknown" NodeTypeSeq AstNodeTypeT = "machine_seq" NodeTypeSet AstNodeTypeT = "machine_set" NodeTypeLogSeq AstNodeTypeT = "log_seq" NodeTypeLogSet AstNodeTypeT = "log_set" NodeTypeDesc AstNodeTypeT = "desc" )
func (AstNodeTypeT) String ¶
func (t AstNodeTypeT) String() string
type AstSeqMatcherT ¶
type AstSeqMatcherT struct {
Order []*AstDescriptorT
Negate []*AstDescriptorT
Correlations []string
Window time.Duration
}
type AstSetMatcherT ¶
type AstSetMatcherT struct {
Match []*AstDescriptorT
Negate []*AstDescriptorT
Correlations []string
Window time.Duration
}
Click to show internal directories.
Click to hide internal directories.