matchers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package matchers verifies that the security alerts expected by a scenario were generated after a simulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertGeneratedMatcher

type AlertGeneratedMatcher interface {
	// HasExpectedAlert verifies on a third-party service whether an alert was properly generated for the given detonation UUID
	HasExpectedAlert(indicators []string, logger *logrus.Entry) (bool, error)

	// String returns the textual, user-friendly representation of the matcher
	String() string

	// Cleanup closes the generated alerts of a given detonation on a third-party service
	Cleanup(indicators []string, logger *logrus.Entry) error

	// MatcherName returns the name of the matcher
	MatcherName() string

	// AlertName returns the name of the alert being matched
	AlertName() string
}

AlertGeneratedMatcher is an interface that every integration should implement to verify whether an expected security alert was created

Directories

Path Synopsis
Package datadog matches expected Datadog security signals.
Package datadog matches expected Datadog security signals.
Package elastic matches expected Elastic Security detection alerts.
Package elastic matches expected Elastic Security detection alerts.

Jump to

Keyboard shortcuts

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