Hi All,
Good morning ,
I am trying to convert Splunk rules which uses complex functions and thier equivalent YARA L or other way for approach.
Splunk Syntax
| rex max_match=0 "(\\s+)foreach\\s*\\((?<foreach_clause>.*?)\\)\\s*\\{(?<foreach_loop>.*?\\\\\\r\\\\\\n\\1)\\}"
| rex field=foreach_loop max_match=0 "(\\s+)foreach\\s*\\((?<foreach_clause>.*?)\\)\\s*\\{(?<foreach_loop>.*?)\\\\\\r\\\\\\n\\1\\}"
| search foreach_loop=""*Add-content*""
I think max_match cannot be achieved in Chronicle as of now. How to approach this?



