Keychain Dump via Native Security Tool
Description
Detects the dumping of the Apple keychain using the native "security" binary by a suspicious parent process. Dumping the keychain file using these binaries should not be commonplace and should be considered highly abnormal, possibly indicating malicious activity. The Apple keychain contains sensitive and valuable data an attacker could utilize to escalate privileges, move laterally and further compromise a system or account.
Query · eql
process where event.action == "exec" and process.name == "security" and
((process.args like~ "dump-keychain" and process.args == "-d") or (process.args like~ "dump")) and
process.Ext.effective_parent.executable != null and
not process.Ext.effective_parent.executable like ("/Library/Application Support/JAMF/Jamf.app/Contents/MacOS/JamfDaemon.app/Contents/MacOS/JamfDaemon",
"/usr/local/jamf/bin/jamf",
"/Library/Application Support/JAMF/Jamf.app/Contents/MacOS/JamfManagementService.app/Contents/MacOS/JamfManagementService",
"/Library/Application Support/DARE/Bin/dareupdate",
"/usr/libexec/xpcproxy",
"/Library/Application Support/DARE/Zappl/Bin/zappl")