Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/smb-inspection-7863/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Test Description

Test that inspection of SMB is performed on completion of every request/response
irrespective of the stream chunk size setting.

## PCAP

https://forum.suricata.io/t/applayer-and-flowbits-issues/5912

## Related issues

https://redmine.openinfosecfoundation.org/issues/7863
Binary file added tests/smb-inspection-7863/input.pcap
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/smb-inspection-7863/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alert dcerpc any any -> any any (msg:"dcerpc uuid [lsarpc]"; flow:established, to_server; dcerpc.iface:12345778-1234-abcd-ef00-0123456789ab; flowbits:set,lsarpc; sid:1; rev:1;)

alert smb any any -> any any (msg:"smb uuid [lsarpc]"; flow:established, to_server; content:"SMB"; content:"|05 00 0b|"; distance:0; content:"|78 57 34 12 34 12 cd ab ef 00 01 23 45 67 89 ab|"; distance:29; flowbits:set,lsarpc; sid:2; rev:1;)

alert smb any any -> any any (msg:"DPAPI Backup Key Extraction"; flow:established, to_server; content:"B|00|C|00|K|00|U|00|P|00|K|00|E|00|Y"; flowbits:isset,lsarpc; sid:3; rev:1;)
21 changes: 21 additions & 0 deletions tests/smb-inspection-7863/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
requires:
min-version: 9

args:
- -k none
- --set stream.reassembly.toserver-chunk-size=15560

checks:
- filter:
count: 7
match:
alert.signature_id: 1
- filter:
count: 2
match:
alert.signature_id: 2
- filter:
count: 3
match:
alert.signature_id: 3

Loading