# Generated checks below.
- filter:
+ min-version: 8
+ count: 1
+ match:
+ alert.action: allowed
+ alert.category: Generic Protocol Command Decode
+ alert.gid: 1
+ alert.rev: 1
+ alert.severity: 3
+ alert.signature: SURICATA DNS Invalid opcode
+ alert.signature_id: 2240007
+ app_proto: dns
+ dest_ip: 2.2.2.2
+ dest_port: 53
+ direction: to_server
+ dns.id: 1
+ dns.opcode: 9
+ dns.queries[0].rrname: suricata.io
+ dns.queries[0].rrtype: A
+ dns.tx_id: 0
+ dns.type: request
+ event_type: alert
+ flow.bytes_toclient: 0
+ flow.bytes_toserver: 71
+ flow.dest_ip: 2.2.2.2
+ flow.dest_port: 53
+ flow.pkts_toclient: 0
+ flow.pkts_toserver: 1
+ flow.src_ip: 1.1.1.1
+ flow.src_port: 5333
+ pcap_cnt: 1
+ pkt_src: wire/pcap
+ proto: UDP
+ src_ip: 1.1.1.1
+ src_port: 5333
+ tx_id: 0
+
+- filter:
+ lt-version: 8
count: 1
match:
alert.action: allowed
src_ip: 1.1.1.1
src_port: 5333
- filter:
+ requires:
+ min-version: 8
+ count: 1
+ match:
+ alert.action: allowed
+ alert.category: Generic Protocol Command Decode
+ alert.gid: 1
+ alert.rev: 1
+ alert.severity: 3
+ alert.signature: SURICATA DNS Invalid opcode
+ alert.signature_id: 2240007
+ app_proto: dns
+ dest_ip: 1.1.1.1
+ dest_port: 5333
+ direction: to_client
+ dns.flags: c800
+ dns.id: 1
+ dns.opcode: 9
+ dns.qr: true
+ dns.rcode: NOERROR
+ dns.answers[0].rrname: suricata.io
+ dns.answers[0].rrtype: A
+ dns.type: response
+ dns.version: 3
+ event_type: alert
+ flow.bytes_toclient: 98
+ flow.bytes_toserver: 71
+ flow.dest_ip: 2.2.2.2
+ flow.dest_port: 53
+ flow.pkts_toclient: 1
+ flow.pkts_toserver: 1
+ flow.src_ip: 1.1.1.1
+ flow.src_port: 5333
+ pcap_cnt: 2
+ pkt_src: wire/pcap
+ proto: UDP
+ src_ip: 2.2.2.2
+ src_port: 53
+ tx_id: 1
+- filter:
+ requires:
+ lt-version: 8
count: 1
match:
alert.action: allowed
The PCAP here was reused from ./tests/dns/dns-eve-empty-format/input.pcap
-Redmine ticket: https://redmine.openinfosecfoundation.org/issues/6666
\ No newline at end of file
+Redmine ticket: https://redmine.openinfosecfoundation.org/issues/6666
checks:
- filter:
+ requires:
+ min-version: 8
+ count: 1
+ match:
+ alert.signature_id: 1
+ dest_ip: 10.16.1.1
+ dest_port: 53
+ direction: to_server
+ app_proto: dns
+ event_type: alert
+ dns.queries[0].rrtype: A
+ src_ip: 10.16.1.11
+ src_port: 57634
+ - filter:
+ requires:
+ lt-version: 8
count: 1
match:
alert.signature_id: 1
direction: to_client
app_proto: dns
event_type: alert
- dns.answer.rrtype: A
+ dns.answers[0].rrtype: A
src_ip: 10.16.1.1
src_port: 53
- filter:
direction: to_client
app_proto: dns
event_type: alert
- dns.answer.rrtype: A
+ dns.answers[0].rrtype: A
src_ip: 10.16.1.1
src_port: 53