Unsigned DLL Loaded by an Elastic Signed Binary
Description
Identifies the load of an unsigned or untrusted DLL by an Elastic signed binary. This may indicate a potential DLL sideloading attempt.
Query · eql
library where
process.code_signature.subject_name == "Elasticsearch, Inc." and
(dll.code_signature.exists == false or
(dll.code_signature.trusted == false and not dll.code_signature.status : ("trusted", "errorExpired", "errorCode_endpoint*"))) and
/* loaded from current dir */
endswith~(substring(dll.path, 0, length(dll.path) - (length(dll.name) + 1)), substring(process.executable, 0, length(process.executable) - (length(process.name) + 1))) and
not startswith~(dll.name, process.name)