Closed sevdog closed 7 years ago
With an alternative community rules download url used by pulledpork https://github.com/shirkdog/pulledpork/blob/a2c1b6772f7dfd178a54aa2f4e9f4f04a9072389/etc/pulledpork.conf#L21, this works for me with https://github.com/jasonish/py-idstools/releases/tag/0.6.0 (only with Python2, due to https://github.com/jasonish/py-idstools/issues/53)
idstools-rulecat --url "https://snort.org/downloads/community/community-rules.tar.gz" --merged community.rules
idstools-rulecat --url "https://www.snort.org/rules/snortrules-snapshot-2983.tar.gz?oinkcode=<oinkcode>" --merged snort.rules
I've updated git master to handle the case 1 - even though I still suggest linking directly to the full filename, I haven't seen that shorter URL before.
There are some other issues I think I need to deal with before adding proper support for the Snort URLs:
Pulled Pork is really the tool to use for Snort.
It's ok if you want to keep the two enviroment separeted.
Btw, the URL of case 1 is found on official snort site:
You can close the Issue if support for Snort/Talos Rules is not intended.
Thanks.
Ah, I believe there is example is wrong as well. That will download the file as just "community" (missing extension) so the second command will fail for cut and pasters. I've notified them.
Closing for now. Snort support is something thats always on my mind, so feel free to raise this again sometime in the near future if I haven't myself.
This request is divided in two step:
1. Snort community rules are not handled properly:
But if I manually download the file from my browser what I get is a
.tar
archive which contains acommunity.rules
with about 3500 rules.2. Add parameters like ET also for snort
With the latest version (master) also snort registered rules download is supperted via the
--url
parameter:What I propose is to add a couple of arguments to handle snort like ET:
The URLs for snort rules are: