Skip to content

Commit

Permalink
Merge pull request #150 from CybercentreCanada/ontology/smtp
Browse files Browse the repository at this point in the history
bugfix KeyError
  • Loading branch information
cccs-rs authored Aug 6, 2024
2 parents 016ac14 + 94c6e3c commit c5458c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion suricata_/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def attach_network_connection(data: dict):
continue

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

0 comments on commit c5458c4

Please sign in to comment.