Skip to content

detect: add test for email.received keyword - v2 #2443

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

Closed

Conversation

AkakiAlice
Copy link
Contributor

@AkakiAlice AkakiAlice commented Apr 14, 2025

Ticket: #7599

Description:

  • Add S-V test for MIME email.received keyword

Changes:

  • Rebase

Redmine ticket: https://redmine.openinfosecfoundation.org/issues/7599

Suricata PR: OISF/suricata#13019

filename: eve.json
types:
- alert:
tagged-packets: yes
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this ?

flows: all # start or all: 'start' logs only a single drop
- stats
- flow
- stats:
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do not need stats

filename: stats.log
append: yes

action-order:
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do not need this, do we ?

count: 1
match:
event_type: smtp
email.received[0]: "from client.local (client.local [10.0.0.1]) by smtp.relay1.com with ESMTP id relay1abc; Thu, 10 Apr 2025 12:00:00 -0000"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can tou have only one filter for the smtp event with all 3 received ?

@victorjulien
Copy link
Member

Merged in #2449, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires suricata pr Depends on a PR in Suricata
Development

Successfully merging this pull request may close these issues.

3 participants