You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to do everything by instruction (QuickStart in documents).
Everything works fine, except Yara rules. Base Yara repo not working OOTB with following error "compiling_error_syntax_/etc/strelka/yara/rules/malware/MALW_Torte_ELF.yar(31): undefined identifier "is__elf""
Even turning off this rule pack not making it working.
Screenshot
The text was updated successfully, but these errors were encountered:
This is because of the default settings in configs/python/backend/backend.yaml. Under 'ScanYara', the location should be set to the rules.yara file. This should prevent Strelka from attempting to recursively compile all Yara files individually without their required imports. Example below. After making this change, just bounce your docker container for it to take effect.
Alternatively, you can delete the rules.yara file and just opt for the significantly faster compiled rules.
# create an empty for for Docker bind mount (required!)
sudo touch configs/python/backend/yara/rules.compiled
# give strelka container user (run `id` command from w/in container to get uid) permission to generate rules.compiled
sudo chown 1001:docker configs/python/backend/yara/rules.compiled
# modify whichever docker-compose.yaml you are using and add the compiled.rules file as a bind point
nano build/docker-compose.yaml
Finally, just bounce your containers and then once the backend container is up, exec into it and compile your rules using the container to ensure there are no complications.
Trying to do everything by instruction (QuickStart in documents).
Everything works fine, except Yara rules. Base Yara repo not working OOTB with following error "compiling_error_syntax_/etc/strelka/yara/rules/malware/MALW_Torte_ELF.yar(31): undefined identifier "is__elf""
Even turning off this rule pack not making it working.
Screenshot
The text was updated successfully, but these errors were encountered: