--- /dev/null
+# Description
+
+Tests that alerts for the pgsql app-proto will include pgsql app-proto metadata.
+
+## PCAP
+
+Pcap file reused from pgsql-ssl-rejected-md5-auth-simple-query
+
+## Redmine ticket
+
+https://redmine.openinfosecfoundation.org/issues/6983
+https://redmine.openinfosecfoundation.org/issues/7000
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular
+ filename: eve.json
+ types:
+ - pgsql:
+ enabled: yes
+ passwords: yes
+ - alert
+
+app-layer:
+ protocols:
+ pgsql:
+ enabled: yes
--- /dev/null
+alert pgsql any any -> any any (msg:"PGSQL Test Rule"; content:"select * from"; sid:1; rev:1;)
--- /dev/null
+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: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+- filter:
+ min-version: 8
+ count: 1
+ match:
+ event_type: alert
+ flow.pkts_toserver: 10
+ flow.pkts_toclient: 10
--- /dev/null
+# Description
+
+Tests that alerts for the pgsql app-proto will include pgsql app-proto metadata,
+in IPS mode.
+
+As this test uses a stream rule, in IPS mode the engine generating two alerts is
+expected.
+
+## PCAP
+
+Pcap file reused from pgsql-ssl-rejected-md5-auth-simple-query
+
+## Redmine ticket
+
+https://redmine.openinfosecfoundation.org/issues/6983
+https://redmine.openinfosecfoundation.org/issues/7000
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular
+ filename: eve.json
+ types:
+ - pgsql:
+ enabled: yes
+ passwords: yes
+ - alert
+
+app-layer:
+ protocols:
+ pgsql:
+ enabled: yes
--- /dev/null
+alert pgsql any any -> any any (msg:"PGSQL Test Rule"; content:"select * from"; sid:1; rev:1;)
--- /dev/null
+requires:
+ min-version: 7.0
+
+pcap: ../pgsql-ssl-rejected-md5-auth-simple-query/input.pcap
+
+args:
+- -k none
+- --simulate-ips
+
+checks:
+- filter:
+ count: 7
+ match:
+ event_type: pgsql
+- filter:
+ count: 2
+ match:
+ event_type: alert
+ alert.signature_id: 1