Known Desktop Application DLL Search Order Hijack
Description
Identifies attempts to load an unsigned DLL file to a known desktop application dependencies folder such as Slack, Teams or OneDrive. This may indicate an attempt to load a malicious module via DLL search order hijacking.
Query · eql
library where
(dll.Ext.relative_file_creation_time <= 500 or dll.Ext.relative_file_name_modify_time <= 500) and
(dll.code_signature.trusted == false or dll.code_signature.exists == false) and
not dll.code_signature.status like "errorCode_endpoint*" and
dll.path :
("?:\\Users\\*\\AppData\\*\\Microsoft\\OneDrive\\*.dll",
"?:\\Users\\*\\AppData\\*\\Microsoft OneDrive\\*.dll",
"?:\\Users\\*\\AppData\\*\\Microsoft\\Teams\\*.dll",
"?:\\Users\\*\\AppData\\Local\\slack\\app-*\\*.dll",
"?:\\Users\\*\\AppData\\Local\\Programs\\Microsoft VS Code\\*.dll",
"?:\\Users\\*\\AppData\\Local\\*\\Well Known Domains\\*\\well_known_domains.dll",
"?:\\Users\\*\\AppData\\Local\\*\\Domain Actions\\*\\domain_actions.dll") and
not dll.path : ("?:\\Users\\*\\AppData\\Local\\Microsoft\\OneDrive\\*\\*.dll",
"?:\\Users\\*\\AppData\\Local\\Microsoft\\Teams\\current\\resources\\meeting-addin\\*",
"?:\\Users\\*\\Teams\\current\\*")