Skip to content

Commit

Permalink
test: add test for vlan.id
Browse files Browse the repository at this point in the history
Ticket: #1065
  • Loading branch information
AkakiAlice committed Oct 31, 2024
1 parent 760b402 commit 6dc0c5c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/detect-vlan-id/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PCAP
====

Pcap created with scapy
Binary file added tests/detect-vlan-id/input.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/detect-vlan-id/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert ip any any -> any any (msg:"Vlan ID is equal to 300"; vlan.id:300; sid:1;)
12 changes: 12 additions & 0 deletions tests/detect-vlan-id/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
requires:
min-version: 7

args:
- -k none

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1

0 comments on commit 6dc0c5c

Please sign in to comment.