Keychain Credential Files Collected via Archive Utility
Description
Adversaries may collect the keychain storage data from a system to acquire credentials. Keychains are the built-in way for macOS to keep track of users' passwords and credentials for many services and features such as WiFi passwords, websites, secure notes and certificates.
Query · eql
process where event.action == "exec" and process.name in ("zip", "tar") and
process.command_line like~
(
"*/Users/*/Library/Keychains/*",
"*/Library/Keychains/*",
"*/Network/Library/Keychains/*",
"*System.keychain*",
"*login.keychain-db*",
"*login.keychain*"
) and
not process.args like~
("find-certificate",
"add-trusted-cert",
"set-keychain-settings",
"delete-certificate",
"/Users/*/Library/Keychains/openvpn.keychain-db",
"show-keychain-info",
"lock-keychain",
"set-key-partition-list",
"import",
"find-identity") and
not process.parent.executable like
(
"/Applications/OpenVPN Connect/OpenVPN Connect.app/Contents/MacOS/OpenVPN Connect",
"/Applications/Microsoft Defender.app/Contents/MacOS/wdavdaemon_enterprise.app/Contents/MacOS/wdavdaemon_enterprise",
"/opt/jc/bin/jumpcloud-agent"
) and
not process.executable == "/opt/jc/bin/jumpcloud-agent"