Skip to content

Commit

Permalink
bypass: adds a test with a UDP flow
Browse files Browse the repository at this point in the history
Ticket: 7053
  • Loading branch information
catenacyber committed Jun 11, 2024
1 parent e8a1d72 commit cf4062b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/detect-bypass-udp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Tests the bypass keyword with a UDP flow

Pcap shared from creator of https://forum.suricata.io/t/bypass-does-this-only-work-with-tcp/4660/2

https://redmine.openinfosecfoundation.org/issues/7053
Binary file added tests/detect-bypass-udp/input.pcap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/detect-bypass-udp/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#this looks for 0x2e, 20 bytes into the UDP payload
pass udp 192.168.0.2 4500 -> any any (msg:"Bypass packet 3 and 4";content:"|00 00 00 00|"; offset:0; depth:4; content:"|2e|"; offset:20; depth:1; bypass; sid:1003068;)
12 changes: 12 additions & 0 deletions tests/detect-bypass-udp/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
requires:
min-version: 8

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: flow
flow.state: bypassed

0 comments on commit cf4062b

Please sign in to comment.