Skip to content

Commit f8eaf95

Browse files
inashivbvictorjulien
authored andcommitted
add test for base64_data w fast_pattern
Bug 6859
1 parent 84f285f commit f8eaf95

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

tests/bug-6859/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Test Description
2+
This test demonstrates that fast_pattern along with base64_data
3+
should lead to an Info message about it being an ineffective operation.
4+
5+
## PCAP
6+
None
7+
8+
## Related issues
9+
https://redmine.openinfosecfoundation.org/issues/6859

tests/bug-6859/test.rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alert http $HOME_NET any -> $EXTERNAL_NET any (flow:established,to_server; http.method; content:"POST"; http.request_body; base64_decode:bytes 28; base64_data; content:"something"; fast_pattern; classtype:bad-unknown; sid:123; rev:1;)

tests/bug-6859/test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
requires:
2+
pcap: false
3+
version: 7
4+
5+
args:
6+
- --engine-analysis
7+
8+
checks:
9+
- shell:
10+
args: grep "fast_pattern is ineffective with base64_data" suricata.log | grep "Info" | wc -l
11+
expect: 1

0 commit comments

Comments
 (0)