Skip to content
Threat Feed
medium advisory

Abuse of macOS Finder Sync Plugins for Persistence

Adversaries leverage the macOS Finder Sync plugin mechanism to maintain persistence by using the 'pluginkit' utility to register and enable malicious extensions.

Adversaries targeting macOS environments may abuse the Finder Sync plugin feature to achieve persistence. Finder Sync plugins are legitimate components designed to extend the Finder's functionality and modify the user interface. By registering a rogue plugin, an attacker can ensure their malicious code is executed repeatedly by the system. This activity is typically performed via the 'pluginkit' command-line utility, which is used to manage system extensions. Monitoring the invocation of 'pluginkit' with specific arguments, especially when triggered by unauthorized parent processes or processes lacking valid code signatures, is a key detection strategy for security teams. This technique allows attackers to persist across reboots and user logons by masquerading as legitimate UI extensions.

Impact

Successful exploitation allows for long-term persistence on macOS endpoints, facilitating ongoing command and control, data exfiltration, or the deployment of secondary malicious payloads. The impact is limited to the local system unless the plugin facilitates further lateral movement or privilege escalation.

Recommendation

  1. Deploy EDR-based detection to monitor the execution of the 'pluginkit' binary.
  2. Baseline authorized Finder Sync plugins in your environment to distinguish them from rogue registrations.
  3. Investigate parent process lineage for all 'pluginkit' executions, prioritizing alerts triggered by script interpreters like 'python', 'node', or 'osascript'.
  4. Perform periodic audits of registered plugins using the 'pluginkit -m' command to identify unauthorized or unexpected extensions.
  5. Enforce code signing policies for applications deployed to enterprise macOS endpoints.

Immediate actions

Deploy the provided Sigma rule to detect unauthorized plugin registration

Detection Engineering 48h

Threat Hunt

Review pluginkit process logs for registrations originating from non-standard directories

T1543 medium medium confidence hunt now

Data: process_creation

Mitigations

Implement strict code signing and notarization requirements for all managed macOS devices

medium IT Operations

T1543

Detection coverage 1

Detect Suspicious Finder Sync Plugin Registration

medium

Detects the use of pluginkit to register a Finder Sync plugin from a potentially malicious or unsigned parent process.

sigma tactics: persistence techniques: T1543 sources: process_creation, macos

Detection queries are available on the platform. Get full rules →