Untrusted Process Execution with Invalid Plist or Code Signature
Description
Detects when an untrusted process is executed and the code signature status indicates an invalid info.plist file and the code signature team id is empty. This is a unique pattern that has matched on a large number of different malware samples and has not been seen to match on anything other than malicious samples.
Query · eql
process where event.type == "start" and process.code_signature.status == "invalid Info.plist (plist or signature have been modified)" and
process.code_signature.exists == true and
length(process.code_signature.team_id) == 0 and
not process.executable like ("/opt/homebrew/*", "/usr/local/Cellar/*", "/Applications/AutoFirma.app/Contents/MacOS/AutoFirma") and
not (process.code_signature.subject_name == "Developer ID Application: salesforce.com (62J96EUJ9N)" and process.code_signature.trusted == true) and
not (process.parent.code_signature.team_id in ("2ZEFAR8TH3", "922YNK5MTB", "62J96EUJ9N") and
process.parent.code_signature.trusted == true) and
not process.parent.executable like ("/Library/Developer/CoreSimulator/*", "/Applications/AutoFirma.app/Contents/MacOS/AutoFirma", "/Applications/PCClient.app/Contents/MacOS/PCClient") and
not process.Ext.effective_parent.executable in ("/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/SimulatorTrampoline.xpc/Contents/MacOS/SimulatorTrampoline",
"/Applications/AutoFirma.app/Contents/MacOS/AutoFirma", "/Applications/PCClient.app/Contents/MacOS/PCClient")