Skip to main content
Mallory
Malware1 associated actor

Komplex

Tracked since Dec 5, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK22Techniques
IOCs3Tracked
Type
Downloader
Capabilities
Initial accessPersistenceReconnaissanceDefense evasion
Delivery
Lure
Platforms
macOS

Komplex is a macOS downloader Trojan associated with the Russian cyberespionage group APT28, also known as Sofacy and Fancy Bear. Publicly identified in September 2016, it establishes a foothold on compromised Macs and retrieves and executes additional files at the direction of command-and-control servers.

The infection package is a PDF-themed application combining a dropper, a malicious payload, and a decoy PDF. During execution, it installs the payload and opens the decoy in Preview. Komplex stores its payload in a hidden directory and maintains persistence through a user-level LaunchAgent loaded with launchctl. Its OsInfo function collects the current username and a list of running processes, supporting host reconnaissance. The Trojan also supports file deletion and obfuscates command-and-control data using an 11-byte XOR algorithm.

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
Threat actors

Associated threat actors

1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
APT28

(Citation: XAgentOSX 2017)(Citation: Sofacy Komplex Trojan)(Citation: Secureworks IRON TWILIGHT Active Measures March 2017)

via mitre attack structuredgithub.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

2 techniques
T1566PhishingEvidence1

Multiple entries describe APT28/Pawn Storm/Sofacy campaigns using lure documents, themed emails, and phishing schemes, e.g., “APT28 Hacker Group Targeting Europe, Americas, Asia in Widespread Phishing Scheme”, “New Spear Phishing Campaign Pretends to be EFF”, and “distribution of emails with 'instructions' on 'updating the operating system'”.

T1566.001Spearphishing AttachmentEvidence2

Komplex is an APT28/Sofacy component that can be distributed via email, disguised as a PDF document, to establish a foothold in a system.

Execution

3 techniques
T1053Scheduled Task/JobEvidence1

The Komplex Dropper: Its main functionality is to drop a third Komplex component: the final payload, and ensure persistence on the infected system

T1059Command and Scripting InterpreterEvidence1

Komplex: "executing a shell command"; Keydnap executes downloaded Python via `system("python %s")`

T1204User ExecutionEvidence1

The Komplex Trojan is a binder with multiple parts: a dropper, a payload and a decoy pdf file.

Persistence

3 techniques
T1053Scheduled Task/JobEvidence1

The Komplex Dropper: Its main functionality is to drop a third Komplex component: the final payload, and ensure persistence on the infected system

T1543.001Launch AgentEvidence5

The [Komplex](https://attack.mitre.org/software/S0162) trojan creates a persistent launch agent called with <code>$HOME/Library/LaunchAgents/com.apple.updates.plist</code> with <code>launchctl load -w ~/Library/LaunchAgents/com.apple.updates.plist</code>.(Citation: Sofacy Komplex Trojan)

T1547.015Login ItemsEvidence1

The Komplex Dropper: Its main functionality is to drop a third Komplex component: the final payload, and ensure persistence on the infected system... system("cp /Users/Shared/com.apple.updates.plist $HOME/Library/LaunchAgents/ &>/dev/null");

Privilege Escalation

3 techniques
T1053Scheduled Task/JobEvidence1

The Komplex Dropper: Its main functionality is to drop a third Komplex component: the final payload, and ensure persistence on the infected system

T1543.001Launch AgentEvidence5

The [Komplex](https://attack.mitre.org/software/S0162) trojan creates a persistent launch agent called with <code>$HOME/Library/LaunchAgents/com.apple.updates.plist</code> with <code>launchctl load -w ~/Library/LaunchAgents/com.apple.updates.plist</code>.(Citation: Sofacy Komplex Trojan)

T1547.015Login ItemsEvidence1

The Komplex Dropper: Its main functionality is to drop a third Komplex component: the final payload, and ensure persistence on the infected system... system("cp /Users/Shared/com.apple.updates.plist $HOME/Library/LaunchAgents/ &>/dev/null");

Stealth

5 techniques
T1036MasqueradingEvidence3

The Komplex Trojan is a binder with multiple parts: a dropper, a payload and a decoy pdf file.

T1070.004File DeletionEvidence10

The [Komplex](https://attack.mitre.org/software/S0162) trojan supports file deletion.(Citation: Sofacy Komplex Trojan)

T1218.011Rundll32Evidence1

The Komplex trojan creates a persistent launch agent called with $HOME/Library/LaunchAgents/com.apple.updates.plist with launchctl load -w ~/Library/LaunchAgents/com.apple.updates.plist.

T1564.001Hidden Files and DirectoriesEvidence5

The [Komplex](https://attack.mitre.org/software/S0162) payload is stored in a hidden directory at <code>/Users/Shared/.local/kextd</code>.(Citation: Sofacy Komplex Trojan)

T1622Debugger EvasionEvidence1

Komplex: "first checks if it is being debugged" and removes itself if debugged

Discovery

5 techniques
T1016System Network Configuration DiscoveryEvidence1

Komplex: loops until "connectedToInternet()" returns true before proceeding

T1033System Owner/User DiscoveryEvidence8

The OsInfo function in [Komplex](https://attack.mitre.org/software/S0162) collects the current running username.(Citation: Sofacy Komplex Trojan)

T1057Process DiscoveryEvidence7

The OsInfo function in [Komplex](https://attack.mitre.org/software/S0162) collects a running process list.(Citation: Sofacy Komplex Trojan)

T1082System Information DiscoveryEvidence1

Multiple malware families and threat groups are described as collecting the victim username or enumerating logged-on users (e.g., “can collect the username from the victim’s machine”, “enumerates the current user during the initial infection”, “enumerates logged-on users”).

T1622Debugger EvasionEvidence1

Komplex: "first checks if it is being debugged" and removes itself if debugged

Command and Control

6 techniques
T1001Data ObfuscationEvidence1

Many entries describe XOR, XOR/ADD, bitwise NOT and XOR, ROR plus XOR, hexadecimal encoding after encryption, and custom encoding/obfuscation of HTTP traffic or beacons.

T1071Application Layer ProtocolEvidence1

The agent starts by selecting a C&C server from a hardcoded list, then sends a hello message and starts two main communications threads... One for receiving commands ... in an infinite GET loop. One for sending data ... in an infinite POST loop.

T1071.001Web ProtocolsEvidence8

The [Komplex](https://attack.mitre.org/software/S0162) C2 channel uses HTTP POST requests.(Citation: Sofacy Komplex Trojan)

T1105Ingress Tool TransferEvidence2

The Komplex Payload: Is the final component of the Komplex malware, with the sole purpose of downloading and executing a file, as requested by the C&C servers.

T1573Encrypted ChannelEvidence1

The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.

T1573.001Symmetric CryptographyEvidence4

The [Komplex](https://attack.mitre.org/software/S0162) C2 channel uses an 11-byte XOR algorithm to hide data.(Citation: Sofacy Komplex Trojan)

Indicators of compromise

Observables

3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
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 matching3Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups 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 mapping22Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.