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

Suricata: Add support for all available EVE types #8442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0xThiebaut
Copy link
Contributor

Add support for all available Suricata EVE types.

This PR avoids migrations for existing types (e.g., http, tls, alert, ssh, ...) and hence does not offer the best UX. A migration will be proposed at a later stage.

@0xThiebaut 0xThiebaut marked this pull request as ready for review March 15, 2025 23:11
#- netflow
extended: yes
{% elif opt == 'mqtt' and opt in eveLog_types_extended %}
passwords: yes # enable output of passwords
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feels like a possible security concern...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it is a security concern but due to the fact it transits in plaintext over the wire, not due to its logging. A similar already existing risk is the logging of HTTP headers which might contain bearer tokens and/or cookies.

If you nonetheless object to this specific logging, I can remove it from the fields supporting extended logging.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xThiebaut that's true, let me think about this, adding an extra warning in the help text might be enough and more generic anyway.

@@ -942,7 +895,7 @@ app-layer:
#encryption-handling: default

pgsql:
enabled: no
enabled: {{ 'yes' if 'pgsql' in eveLog_types_enabled else 'no' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this also move into the loop? I expect it duplicates the item now, or am I mistaken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the engine's application layer configuration (i.e., used for detections), not related to the EVE logging configuration.

I don't think this (and following) causes duplicated logging entries.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xThiebaut ok, thanks, I'll need to try this on my end before merging. these yaml files can be sensitive in my experience.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I really appreciate the time and care you're taking for community contributions!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xThiebaut you're welcome, we can't pull-in everything, but do make an effort when possible.

# Configure inspected-tracker for file_data keyword
inspected-tracker:
content-limit: 100000
content-inspect-min-size: 32768
content-inspect-window: 4096
imap:
enabled: detection-only
enabled: {{ 'yes' if 'imap' in eveLog_types_enabled else 'detection-only' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -1171,7 +1124,7 @@ app-layer:

# DNP3
dnp3:
enabled: no
enabled: {{ 'yes' if 'dnp3' in eveLog_types_enabled else 'no' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -1192,7 +1145,7 @@ app-layer:
enabled: yes

sip:
#enabled: yes
enabled: {{ 'yes' if 'sip' in eveLog_types_enabled else 'no' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

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

Successfully merging this pull request may close these issues.

None yet

2 participants