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
- Deploy EDR-based detection to monitor the execution of the 'pluginkit' binary.
- Baseline authorized Finder Sync plugins in your environment to distinguish them from rogue registrations.
- Investigate parent process lineage for all 'pluginkit' executions, prioritizing alerts triggered by script interpreters like 'python', 'node', or 'osascript'.
- Perform periodic audits of registered plugins using the 'pluginkit -m' command to identify unauthorized or unexpected extensions.
- Enforce code signing policies for applications deployed to enterprise macOS endpoints.
Immediate actions
Deploy the provided Sigma rule to detect unauthorized plugin registration
Threat Hunt
Review pluginkit process logs for registrations originating from non-standard directories
Data: process_creation
Mitigations
Implement strict code signing and notarization requirements for all managed macOS devices
T1543
Detection coverage 1
Detect Suspicious Finder Sync Plugin Registration
mediumDetects the use of pluginkit to register a Finder Sync plugin from a potentially malicious or unsigned parent process.
Detection queries are available on the platform. Get full rules →