-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test about enip stats with _udp prefix
Ticket: 6304
- Loading branch information
1 parent
9a064c3
commit 6d9ead8
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Description | ||
|
||
Test ENIP stats always have `_udp` or `_tcp` prefix | ||
|
||
# Issue | ||
|
||
https://redmine.openinfosecfoundation.org/issues/6304 | ||
|
||
# PCAP | ||
|
||
The pcap is reused enip-alert test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
outputs: | ||
- eve-log: | ||
enabled: yes | ||
filetype: regular | ||
filename: eve.json | ||
types: | ||
- flow | ||
- stats | ||
|
||
app-layer: | ||
protocols: | ||
enip: | ||
enabled: detection-only | ||
detection-ports: | ||
dp: 44818 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
pcap: ../enip-alert/enip_test1.pcap | ||
|
||
# disables checksum verification | ||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: flow | ||
app_proto: enip | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
# not stats.app_layer.flow.enip | ||
stats.app_layer.flow.enip_tcp: 1 | ||
stats.app_layer.flow.enip_udp: 0 | ||
- filter: | ||
count: 0 | ||
match: | ||
event_type: stats | ||
# this key does not exist in eve output | ||
stats.app_layer.flow.enip: 0 |