I want to have a server that manage all the yara q...
# general
j
I want to have a server that manage all the yara queries. the problem is that I don't want to add every time new rule to the conf file like at the example at the osquery site. because it means I will need to deploy the new file evry time at all the agents. example: "yara": { "signature_urls": { "sig_url_1": "https://raw.githubusercontent.com/Yara-Rules/rules/master/cve_rules/CVE-2010-0805.yar", "sig_url_2": "https://raw.githubusercontent.com/Yara-Rules/rules/master/crypto/crypto_signatures.yar", "sig_url_3": "https://raw.githubusercontent.com/Yara-Rules/rules/master/malware/APT_APT3102.yar" } } I wanted to know if there is any way that I will have yara server that manage all the queries without modifying the conf file every time I add the server new query.
s
I thought those supported wildcards? Try adding a
*
and seeing if it works
Checking the source code, this should be a regex. So you might need
.*
you probably need to play around and see what works.
Doc updates are welcome!
j
@seph I'm sorry I didn't understand what do you mean. do you mean that is 100% possible with regex?
k
That will actually help me greatly, so I will pay it forward and submit a PR once I confirm 👍
Hmm I'm not able to load any rules from URL at all keep getting
yara_utils.cpp:429] YARA rule compile error: YARA load error 3
nvm I am a fool, I was still using signatures instead of signatures_url 😒
i
You should be able to use the regex like this:
Copy code
"yara": {
    "signature_urls": [
"<https://raw.githubusercontent.com/Yara-Rules/rules/master/.+>"
    ]
}
j
thanks @Ignacio