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 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, and matchers_condition is 'and' or 'or'.


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

[View source]