Suspicious Browser Preference File Modification
Description
Detects modification of browser preference files by suspicious processes like scripts or untrusted binaries. Threat actors modify these files to establish persistence and control browser extensions.
Query · eql
file where event.action == "modification" and file.path like~ ("/Users/*/Library/Application Support/Google/Chrome/*/Preferences",
"/Users/*/Library/Application Support/Microsoft Edge/*/Preferences",
"/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/Preferences",
"/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/prefs.js") and
(process.name like~ ("python*", "node", "osascript", "ruby", "bash", "sh", "zsh") or
(process.code_signature.trusted == false or process.code_signature.exists == false))