Finder Sync Plugin Registered and Enabled
Finder Sync plugins enable users to extend Finder’s functionality by modifying the user interface. Adversaries may abuse this feature by adding a rogue Finder Plugin to repeatedly execute malicious payloads for persistence.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/12/18"
3integration = ["endpoint"]
4maturity = "production"
5updated_date = "2024/11/07"
6
7[rule]
8author = ["Elastic"]
9description = """
10Finder Sync plugins enable users to extend Finder’s functionality by modifying the user interface. Adversaries may abuse
11this feature by adding a rogue Finder Plugin to repeatedly execute malicious payloads for persistence.
12"""
13false_positives = ["Trusted Finder Sync Plugins"]
14from = "now-9m"
15index = ["logs-endpoint.events.*"]
16language = "eql"
17license = "Elastic License v2"
18name = "Finder Sync Plugin Registered and Enabled"
19references = [
20 "https://github.com/specterops/presentations/raw/master/Leo%20Pitt/Hey_Im_Still_in_Here_Modern_macOS_Persistence_SO-CON2020.pdf",
21]
22risk_score = 47
23rule_id = "37f638ea-909d-4f94-9248-edd21e4a9906"
24setup = """## Setup
25
26This rule requires data coming in from Elastic Defend.
27
28### Elastic Defend Integration Setup
29Elastic Defend is integrated into the Elastic Agent using Fleet. Upon configuration, the integration allows the Elastic Agent to monitor events on your host and send data to the Elastic Security app.
30
31#### Prerequisite Requirements:
32- Fleet is required for Elastic Defend.
33- To configure Fleet Server refer to the [documentation](https://www.elastic.co/guide/en/fleet/current/fleet-server.html).
34
35#### The following steps should be executed in order to add the Elastic Defend integration on a macOS System:
36- Go to the Kibana home page and click "Add integrations".
37- In the query bar, search for "Elastic Defend" and select the integration to see more details about it.
38- Click "Add Elastic Defend".
39- Configure the integration name and optionally add a description.
40- Select the type of environment you want to protect, for MacOS it is recommended to select "Traditional Endpoints".
41- Select a configuration preset. Each preset comes with different default settings for Elastic Agent, you can further customize these later by configuring the Elastic Defend integration policy. [Helper guide](https://www.elastic.co/guide/en/security/current/configure-endpoint-integration-policy.html).
42- We suggest selecting "Complete EDR (Endpoint Detection and Response)" as a configuration setting, that provides "All events; all preventions"
43- Enter a name for the agent policy in "New agent policy name". If other agent policies already exist, you can click the "Existing hosts" tab and select an existing policy instead.
44For more details on Elastic Agent configuration settings, refer to the [helper guide](https://www.elastic.co/guide/en/fleet/current/agent-policy.html).
45- Click "Save and Continue".
46- To complete the integration, select "Add Elastic Agent to your hosts" and continue to the next section to install the Elastic Agent on your hosts.
47For more details on Elastic Defend refer to the [helper guide](https://www.elastic.co/guide/en/security/current/install-endpoint.html).
48"""
49severity = "medium"
50tags = [
51 "Domain: Endpoint",
52 "OS: macOS",
53 "Use Case: Threat Detection",
54 "Tactic: Persistence",
55 "Data Source: Elastic Defend",
56]
57timestamp_override = "event.ingested"
58type = "eql"
59
60query = '''
61process where host.os.type == "macos" and event.type in ("start", "process_started") and process.name : "pluginkit" and
62 process.args : "-e" and process.args : "use" and process.args : "-i" and
63 not process.args :
64 (
65 "com.google.GoogleDrive.FinderSyncAPIExtension",
66 "com.google.drivefs.findersync",
67 "com.boxcryptor.osx.Rednif",
68 "com.adobe.accmac.ACCFinderSync",
69 "com.microsoft.OneDrive.FinderSync",
70 "com.insynchq.Insync.Insync-Finder-Integration",
71 "com.box.desktop.findersyncext"
72 ) and
73 not process.parent.executable : ("/Library/Application Support/IDriveforMac/IDriveHelperTools/FinderPluginApp.app/Contents/MacOS/FinderPluginApp",
74 "/Applications/Google Drive.app/Contents/MacOS/Google Drive") and
75 not process.Ext.effective_parent.executable : ("/Applications/Google Drive.app/Contents/MacOS/Google Drive",
76 "/usr/local/jamf/bin/jamf",
77 "/Applications/Nextcloud.app/Contents/MacOS/Nextcloud",
78 "/Library/Application Support/Checkpoint/Endpoint Security/AMFinderExtensions.app/Contents/MacOS/AMFinderExtensions",
79 "/Applications/pCloud Drive.app/Contents/MacOS/pCloud Drive")
80'''
81
82
83[[rule.threat]]
84framework = "MITRE ATT&CK"
85[[rule.threat.technique]]
86id = "T1543"
87name = "Create or Modify System Process"
88reference = "https://attack.mitre.org/techniques/T1543/"
89
90
91[rule.threat.tactic]
92id = "TA0003"
93name = "Persistence"
94reference = "https://attack.mitre.org/tactics/TA0003/"
References
Related rules
- Suspicious Emond Child Process
- Sublime Plugin or Application Script Modification
- Attempt to Enable the Root Account
- Authorization Plugin Modification
- Bash Shell Profile Modification