any where host.os.type == "windows" and event.category : ("library", "process") and
event.type : ("start", "change") and event.action : ("load", "Image loaded*") and
process.executable : "?:\\windows\\system32\\dns.exe" and
not ?dll.code_signature.trusted == true and
not file.code_signature.status == "Valid"
Install detection rules in Elastic Security
Detect Unsigned DLL loaded by DNS Service in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).