Skip to content

Commit 303c2da

Browse files
catenacybervictorjulien
authored andcommitted
detect: add a test for protocol mismatch detection
Ticket: #4921
1 parent d82584a commit 303c2da

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Test Purpose
2+
3+
Test `app-layer-protocol` keyword with protocol mismatch
4+
5+
## PCAP
6+
7+
PCAP reused from proto-mismatch-http-ssh
8+
9+
## Redmine ticket
10+
11+
https://redmine.openinfosecfoundation.org/issues/4921
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alert tcp any any -> any any (msg:"HTTP client to SSH server"; flow:to_client; app-layer-protocol:http1,to_server; app-layer-protocol:ssh,to_client; sid:1; )
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pcap: ../output-eve-anomaly-02/input.pcap
2+
3+
requires:
4+
min-version: 8
5+
6+
checks:
7+
- filter:
8+
count: 1
9+
match:
10+
event_type: alert
11+
alert.signature_id: 1

0 commit comments

Comments
 (0)