forked from OISF/suricata-verify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Description | ||
|
||
Tests that alerts for the pgsql app-proto will include pgsql app-proto metadata. | ||
|
||
This shows what might be a bug - more investigation is needed: that we may be | ||
logging not the transaction that triggered the alert itself, but maybe the | ||
subsequent one - or none, if the alert was triggered with the last seen message | ||
for PGSQL. | ||
|
||
## PCAP | ||
|
||
Pcap file reused from pgsql-ssl-rejected-md5-auth-simple-query | ||
|
||
## Redmine ticket | ||
|
||
https://redmine.openinfosecfoundation.org/issues/6983 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
outputs: | ||
- eve-log: | ||
enabled: yes | ||
filetype: regular | ||
filename: eve.json | ||
types: | ||
- pgsql | ||
- alert | ||
|
||
app-layer: | ||
protocols: | ||
pgsql: | ||
enabled: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alert pgsql any any -> any any (msg:"PGSQL Test Rule"; pkt_data; content:"|58|"; sid:1; rev:1;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
requires: | ||
min-version: 7.0 | ||
|
||
pcap: ../pgsql-ssl-rejected-md5-auth-simple-query/input.pcap | ||
|
||
args: | ||
- -k none | ||
|
||
checks: | ||
- filter: | ||
count: 7 | ||
match: | ||
event_type: pgsql | ||
- filter: | ||
count: 2 | ||
match: | ||
event_type: alert | ||
alert.signature_id: 1 | ||
- filter: | ||
min-version: 8 | ||
count: 2 | ||
match: | ||
event_type: alert | ||
has-key: pgsql.request |