Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorporating new Suricata rules (and removing old ones) without restarting the Suricata containers #589

Open
mmguero opened this issue Feb 14, 2025 · 0 comments
Labels
enhancement New feature or request suricata Relating to Malcolm's use of Suricata
Milestone

Comments

@mmguero
Copy link
Collaborator

mmguero commented Feb 14, 2025

A user asked about the ability to pick up new custom suricata rules without stopping/starting the suricata container. Mainly, the ability to have rules files placed in ./suricata/rules/ get incorporated into the new suricata.yaml config file and rules deleted from there to be remove.

This documentation suggests a restart of the live-suricata process via supervisord, but I'm suspicious if that's actually correct because I don't see how that would regenerate the config file.

I gave this command:

docker compose exec -u 1000 suricata-live bash -c '/usr/local/bin/suricata_config_populate.py --suricata /usr/bin/suricata-offline -vv && kill -USR2 $(pidof suricata) && echo "Suricata reload signaled"'

as a temporary workaround, but it was reported that old rules were not removed.

So the task is:

  • figure out what needs to happen to (if necessary, which I think it is, as I think it enumerates the custom rules files and appends their paths to the yaml file), for a command for new suricata rules to be added to the file and now-missing suricata rules to be removed, and to reload the rules in suricata (probably with that USR2 signal)
  • fix the documentation
@mmguero mmguero added enhancement New feature or request suricata Relating to Malcolm's use of Suricata labels Feb 14, 2025
@mmguero mmguero added this to the v25.02.0 milestone Feb 14, 2025
@mmguero mmguero added this to Malcolm Feb 14, 2025
@mmguero mmguero moved this to Todo (develop) in Malcolm Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request suricata Relating to Malcolm's use of Suricata
Projects
Status: Todo (develop)
Development

No branches or pull requests

1 participant