struct

PassiveScan

Inherits Struct < Value < Object

Constants

ALLOWED_MATCHERS_CONDITIONS = {"and", "or"}

Constructors

new(yaml : YAML::Any)
Source

Instance methods

category
Source
category=(category : String)
Source
id=(id : String)
Source
info
Source
info=(info : Info)
Source
load_warnings

Non-fatal load problems: a broken matcher the rule can still fire without (an or rule with one good matcher left). Reported so the rule's reduced coverage is visible instead of silent.

Source
matchers
Source
matchers=(matchers : Array(Matcher))
Source
matchers_condition
Source
matchers_condition=(matchers_condition : String)
Source
techs
Source
techs=(techs : Array(YAML::Any))
Source
valid?

A rule is usable when it has an id, a non-empty info name, at least one matcher, all matchers are valid (allowed type, condition, non-empty patterns), valid severity, matchers_condition is 'and' or 'or', and at least one matcher can actually fire.

Source
validation_errors
Source

Nested types