rules

package
v0.0.0-...-6840375 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListRulesFiles

func ListRulesFiles() []string

func RulesChanges

func RulesChanges(signals chan os.Signal)

func Update

func Update(updateReady chan bool)

Types

type AllOf

type AllOf struct {
	Field    string `yaml:"field"`
	Operator string `yaml:"operator"`
	Value    string `yaml:"value"`
}

type Cache

type Cache struct {
	AllOf     []AllOf      `yaml:"allOf"`
	OneOf     []OneOf      `yaml:"oneOf"`
	TimeLapse int64        `yaml:"timeLapse"`
	MinCount  int          `yaml:"minCount"`
	Save      []SavedField `yaml:"save"`
}

type OneOf

type OneOf struct {
	Field    string `yaml:"field"`
	Operator string `yaml:"operator"`
	Value    string `yaml:"value"`
}

type Rule

type Rule struct {
	Name        string   `yaml:"name"`
	Severity    string   `yaml:"severity"`
	Description string   `yaml:"description"`
	Solution    string   `yaml:"solution"`
	Category    string   `yaml:"category"`
	Tactic      string   `yaml:"tactic"`
	DataTypes   []string `yaml:"dataTypes"`
	Reference   []string `yaml:"reference"`
	Frequency   int64    `yaml:"frequency"`
	Cache       []Cache  `yaml:"cache"`
	Search      []Search `yaml:"search"`
}

func GetRules

func GetRules() []Rule

type SavedField

type SavedField struct {
	Field string `yaml:"field"`
	Alias string `yaml:"alias"`
}
type Search struct {
	Query    string       `yaml:"query"`
	MinCount int          `yaml:"minCount"`
	Save     []SavedField `yaml:"save"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL