Skip to main content
Mallory
Malware

OSX.FruitFly

Tracked since Dec 11, 2025 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK8Techniques
IOCs0Tracked
Type
Backdoor
Capabilities
ExfiltrationPost exploitationDefense evasionSpoofing
Platforms
macOS

OSX.FruitFly is a macOS backdoor and long-running espionage malware family discovered in 2017 but assessed to have operated on victim systems for years before public identification. It is notable for its unusual implementation, relying heavily on Perl-based components with helper modules including native and Java elements. The malware communicates with a command-and-control server, executes attacker-supplied commands, captures screenshots, and exfiltrates data from compromised Macs.

FruitFly is associated with covert surveillance activity against large numbers of victims, including infections identified in institutional environments. Its functionality supports persistent remote access and post-compromise monitoring rather than overt disruption. Reported behavior includes use of synthetic mouse and keyboard events on macOS to interact with the user interface and dismiss security prompts, enabling unauthorized access to protected resources and facilitating stealthy operator control.

The malware targets macOS systems and has been characterized as an all-purpose backdoor oriented toward spying and remote administration. Public reporting tied the campaign to Phillip Roman Durachinsky following a U.S. criminal investigation that identified thousands of victims. FruitFly is significant both for its longevity on macOS and for demonstrating how attackers could abuse native automation and input-simulation mechanisms to bypass user-facing security controls.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

8 distinct techniques documented for this family, organized by ATT&CK tactic.

Execution

1 technique
T1059.006PythonEvidence1

OSX.FruitFly • Perl script, containing "helpers": • Mach-O binary • Java class • Another Perl script

Collection

4 techniques
T1005Data from Local SystemEvidence1

First-stage Perl • ... Exfiltrates data

T1113Screen CaptureEvidence1

elsif(!system(($m ? 'screencapture -x' : 'xwd -silent -root '. '-display :0.0 | convert xwd:-'). ' /tmp/scrn.png')) { ... A "\2".K($v) }

T1123Audio CaptureEvidence1

"the injected code was able to arbitrarily record audio and video" and "access the mic and webcam at arbitrary times"

T1125Video CaptureEvidence1

"the injected code was able to arbitrarily record audio and video" and "I added some code to the injected library to record a few seconds of video off the webcam"

Command and Control

2 techniques
T1071Application Layer ProtocolEvidence1

First-stage Perl • Communicates with C&C • Executes commands (with assist from helpers) • Exfiltrates data

T1219Remote Access ToolsEvidence1

All-purpose, extremely unique, backdoor

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

Capture screen to /tmp/scrn.png Read image into memory Write image to C&C socket

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping8Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.