Skip to content

Conversation

@Aboussejra
Copy link

@Aboussejra Aboussejra commented Jan 23, 2026

…oad dump by classtype if needed

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/8245

Describe changes:

Add a new configuration option to filter payload extraction in EVE JSON alerts based on the rule's classtype.

Currently, when payload: yes is enabled in the alert output, payloads are extracted for all alerts. In some environments we want payloads to be extracted only for specific rules (and we use classtypes for that).

I envision adding an optional payload-only-classtypes configuration parameter under the alert output type that accepts a list of classtype names.

When configured:

  • Payloads are only extracted for alerts whose classtype matches one in the list
  • If the list is empty or not configured, the default behavior is preserved (payloads extracted for all alerts when payload: yes)

Suricata-verify MR: OISF/suricata-verify#2885

Provide values to any of the below to override the defaults.

  • To use a Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=

@Aboussejra Aboussejra requested review from a team and victorjulien as code owners January 23, 2026 09:34
@Aboussejra Aboussejra force-pushed the payload-classtype-filter-feature-8245-v1 branch from 6601c45 to 7981bf4 Compare January 23, 2026 09:40
Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

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

Thanks for the work.

I think this feature needs

  • a ticket
  • some SV test
  • some documentation addition

@Aboussejra
Copy link
Author

Thanks for the work.

I think this feature needs

* a ticket

* some SV test

* some documentation addition

Sure ! I am working on it ! ticket is here https://redmine.openinfosecfoundation.org/issues/8245

I am currently looking at SV to add a test and will link it as soon as I did it.

Understood for the documentation part, I will look into it !

@Aboussejra
Copy link
Author

Suricata-verify MR is at OISF/suricata-verify#2885

@Aboussejra Aboussejra force-pushed the payload-classtype-filter-feature-8245-v1 branch from 7981bf4 to 8e345a2 Compare January 23, 2026 14:28
@catenacyber
Copy link
Contributor

@Aboussejra
Copy link
Author

Indeed, opened here:
#14682

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.

2 participants