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

Buffer Dump Configuration option causing Snort to exit with unrecognized option error #227

Open
da667 opened this issue Nov 18, 2024 · 1 comment

Comments

@da667
Copy link

da667 commented Nov 18, 2024

Hey Hey people,

I've been doing little bit of testing recently, and I noticed that the option --buffer-dump-alert is enabled, even if the buffer dump checkbox on the web interface is unchecked, and even in the case for old versions of snort that do not support dumping buffers.

This causes older versions of snort (prior to 2.9.9.0 in my testing) to fail with an unrecognized option error that is visible on the IDS Engine tab of the results page.

2.9.8.3:
image

2.9.7.5:
image

2.9.5:
image

I'm sure you get the pattern from here.

I think the root of this problem is in how the command for snort is formed. Take a look at line 920 in dalton-agent.py:

https://github.com/secureworks/dalton/blob/master/dalton-agent/dalton-agent.py#L920C5-L920C19

Is there a way to map the buffer dump output option on the Dalton Controller and have it map to the snort_command? e.g. if the checkbox isn't checked (or if its snort /2\.9\.[0-8]\.\d+/) then don't allow the option to be present in the snort_command pushed to the agent?

Here is an attached job zip file, if you would like to test on your own.
6bcce887f10d5699.zip

Other thoughts: None of these versions of snort are technically supported anymore, so this is a bug that is REALLY low on the priority scale, but it still exists so I thought it should be documented somewhere.

@da667 da667 changed the title Buffer Dump Configuration option causing Snort to exist with unrecognized option error Buffer Dump Configuration option causing Snort to exit with unrecognized option error Nov 18, 2024
@rkoumis
Copy link
Collaborator

rkoumis commented Nov 19, 2024

Thank you for the bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants