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

Adds test for enip #1275

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/enip-alert/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Description

Test ENIP alerts numbers

# PCAP

The pcap comes from https://redmine.openinfosecfoundation.org/issues/3886
Binary file added tests/enip-alert/enip_test1.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/enip-alert/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert enip any any -> any any (msg:"SURICATA enip test ";enip_command:99 ;sid:6450008; rev:1;)
13 changes: 13 additions & 0 deletions tests/enip-alert/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
requires:
min-version: 7

# disables checksum verification
args:
- -k none --set stream.midstream=true --set app-layer.protocols.enip.enabled=yes

checks:
- filter:
count: 2
match:
event_type: alert
alert.signature_id: 6450008