diff --git a/canarytokens/channel_dns.py b/canarytokens/channel_dns.py index 79dc62dc2..44e1e8f21 100644 --- a/canarytokens/channel_dns.py +++ b/canarytokens/channel_dns.py @@ -252,9 +252,7 @@ def query(self, query: Query, src_ip: str): # noqa C901 return defer.succeed(self._do_dynamic_response(name=query.name.name)) if canarydrop.type == TokenTypes.WINDOWS_FAKE_FS: - invocation_id = src_data.get("src_data", {}).get( - "windows_fake_fs_invocation_id" - ) + invocation_id = src_data["src_data"].get("windows_fake_fs_invocation_id") if (invocation_id is not None) and any( hit.src_data.get("windows_fake_fs_invocation_id") == invocation_id for hit in canarydrop.triggered_details.hits