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))
Raw source Suspicious Browser Preference File Modification · Elastic TOML
Esc
Published by elastic/protections-artifacts ↗, licensed under Elastic License 2.0 ↗. Reproduced here unmodified.
[rule]
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.
"""
id = "4515e310-7af8-4c5e-8f73-54497d051c75"
license = "Elastic License v2"
name = "Suspicious Browser Preference File Modification"
os_list = ["macos"]
reference = [
    "https://securityscorecard.com/wp-content/uploads/2025/02/Operation-Marstech-Mayhem-Report_021025_03.pdf",
]
version = "1.0.4"

query = '''
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))
'''

min_endpoint_version = "8.11.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[actions]]
action = "kill_process"
field = "process.parent.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1176"
name = "Software Extensions"
reference = "https://attack.mitre.org/techniques/T1176/"
[[threat.technique.subtechnique]]
id = "T1176.001"
name = "Browser Extensions"
reference = "https://attack.mitre.org/techniques/T1176/001/"



[threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"

[internal]
min_endpoint_version = "8.11.0"

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.