Hi all,
I was writing a YARA-L detection rule in the Chronicle editor and I need to match the string "C:\\Program Files" with a regex. So I wrote:
re.regex($selection.src.process.file.full_path, `C:\\Program Files `)
But the editor rise this error:
parsing: invalid regex pattern: C:\\Program Files: error parsing regexp: invalid character class range: `\\Pr`
The error disappear if I escape the backslash character.
Someone knows the reason? Since I'm using back quotes shouldn't I be able to not escape the backslash as said in the reference at this link:
https://cloud.google.com/chronicle/docs/detection/yara-l-2-0-syntax#string_and_regex_literals
Got this error when writing a YARA-L detection rule in the Chronicle editor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
