struct PassiveScan

Defined in:

models/passive_scan.cr

Constant Summary

ALLOWED_MATCHERS_CONDITIONS = {"and", "or"}

Constructors

Instance Method Summary

Constructor Detail

def self.new(yaml : YAML::Any) #

[View source]

Instance Method Detail

def category : String #

[View source]
def category=(category : String) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def info : Info #

[View source]
def info=(info : Info) #

[View source]
def load_warnings : Array(String) #

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.


[View source]
def matchers : Array(Matcher) #

[View source]
def matchers=(matchers : Array(Matcher)) #

[View source]
def matchers_condition : String #

[View source]
def matchers_condition=(matchers_condition : String) #

[View source]
def techs : Array(YAML::Any) #

[View source]
def techs=(techs : Array(YAML::Any)) #

[View source]
def valid? : Bool #

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.


[View source]
def validation_errors : Array(String) #

[View source]