file where event.action == "open" and host.os.type == "macos" and process.executable != null and
file.name like~ ("cookies.sqlite",
"key?.db",
"logins.json",
"Cookies",
"Cookies.binarycookies",
"Login Data") and
((process.code_signature.trusted == false or process.code_signature.exists == false) or process.name == "osascript") and
not process.code_signature.signing_id == "org.mozilla.firefox" and
not Effective_process.executable like "/Library/Elastic/Endpoint/elastic-endpoint.app/Contents/MacOS/elastic-endpoint"
Install detection rules in Elastic Security
Detect Suspicious Web Browser Sensitive File Access in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).