Skip to content

Commit

Permalink
Support different keys for DNS queries in alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Aug 7, 2024
1 parent e9f10c7 commit 3bd5b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suricata_/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def attach_network_connection(data: dict):

if not any(
query["rrname"] == network_part.dns_details.domain
for query in record["dns"].get("queries", [])
for query in record["dns"].get("queries", []) + record["dns"].get("query", [])
):
# This particular record isn't relevant to the alert
continue
Expand Down

0 comments on commit 3bd5b6c

Please sign in to comment.