Related to https://github.com/elastic/detection-rules/pull/2692, it appears the original query passed validation from KQLValidator class methods when the rule was loaded. It should have failed because one of the logic operators was missing a space which is invalid for KQL.
We should take the rule as it was before the fix locally and set a breakpoint in KQLValidator.validate within rule_validators.py. This should allow us to trace the parsing and validation to determine why it did not explicitly raise an error.
Describe the bug
Related to https://github.com/elastic/detection-rules/pull/2692, it appears the original query passed validation from
KQLValidator
class methods when the rule was loaded. It should have failed because one of the logic operators was missing a space which is invalid for KQL.Testing
We should take the rule as it was before the fix locally and set a breakpoint in
KQLValidator.validate
withinrule_validators.py
. This should allow us to trace the parsing and validation to determine why it did not explicitly raise an error.