Open bryaend opened 1 year ago
Upon checking the documentation, this is how describe.one
is expected to work in the case that no check meets the criteria to pass the check, however, it creates a lot of clutter for what is essentially only one failure.
Also, as a final note, the failures are still present despite the check passing:
-A INPUT -i lo -j ACCEPT
is expected to match /(?=.*-A INPUT)(?=.*-i lo)(?=.*-j ACCEPT)/
https://github.com/dev-sec/cis-dil-benchmark/blob/e1dc70a80b65d2cbe10874af4bf01071e3979fbe/controls/3_5_firewall_configuration.rb#L52-L78
When this section is run, I am getting hundreds of failures, one for every rule that doesn't match the filter:
This should be checking to see if the rule exists in the list, not checking every rule in the list against the matcher.