CHOPSTICK
- Type
- Backdoor
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissanceProcess injection
- Delivery
- Lure
- Platforms
- WindowsLinuxmacOSiOS
X-Agent, also known as CHOPSTICK and SPLM, is a modular espionage backdoor associated with APT28, the Russian GRU-linked threat actor also known as Fancy Bear, Sednit, Sofacy, and Pawn Storm. The malware family has variants for Windows, Linux, macOS, and iOS and supports intelligence collection against government, military, defense-industry, media, and other high-value targets.
CHOPSTICK supports remote command execution, keylogging, screenshot capture, and discovery of antivirus and forensic software. Windows variants can store RC4-encrypted configuration data in the Registry and have been executed through Rundll32. Command-and-control communications use HTTP, HTTPS, and other channels depending on configuration, with RC4 encryption supported. The malware can switch communication channels when connectivity fails and can generate fallback command-and-control domains by concatenating words from predefined lists.
The macOS variant provides remote shell access, system and application enumeration, file operations, Firefox password theft, keylogging, screenshot capture, and data exfiltration over HTTP and FTP. It can discover and steal locally stored iOS backups, checks for debuggers, and includes a module that attempts process injection. The iOS variant requires a jailbroken device and collects messages, contacts, photographs, location information, audio, and device details. On iOS 7, it hides its application icon and restarts after termination; these behaviors do not occur on iOS 8. An application-installation lure has been observed, although the exact iOS installation mechanism is not established.
Associated vulnerabilities
3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Primary Implant: Compiled C/C++ backdoors (Sofacy, CHOPSTICK, Zebrocy).
Another unit mate, Capt. Nikolay Kozachek, allegedly crafted the X-Agent malware used to hack the Democratic Congressional Campaign Committee and DNC networks in April 2016.
...their involvement in the development of Unit 26165’s X-Agent malware
Techniques & procedures
58 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
"BeardShell and SlimAgent are custom malware."
Initial Access
6 techniques
Initial Access
Part of [APT28](https://attack.mitre.org/groups/G0007)'s operation involved using [CHOPSTICK](https://attack.mitre.org/software/S0023) modules to copy itself to air-gapped machines and using files written to USB sticks to transfer data and command traffic.(Citation: FireEye APT28)(Citation: Microsoft SIR Vol 19)(Citation: Secureworks IRON TWILIGHT Active Measures March 2017)
They also send emails purportedly containing links to news items, but instead linking to malware drop sites that install toolkits onto the target's computer.
"it uses zero-day exploits..." / "used a zero-day exploit of Java..." / "utilized 'two zero-day vulnerabilities in Adobe Flash and the down-level Windows kernel.'"
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'”.
Figure 2. Main attack methods and malware used by the Sednit group since 2014... Email attachments
The hackers used a spear phishing attack, directing emails to the false URL electronicfrontierfoundation.org.
Execution
3 techniques
Execution
[CHOPSTICK](https://attack.mitre.org/software/S0023) is capable of performing remote command execution.(Citation: Crowdstrike DNC June 2016)(Citation: ESET Sednit Part 2)
RemoteShell 0x1302 Executes supplied commands in Linux command-line interpreter /bin/sh
Examples include “APT28 racing to exploit CVE-2017-11292 Flash vulnerability before patches are deployed”, “New Adobe Flash Zero-Day Used in Pawn Storm Campaign”, and “Adobe & Windows Zero-Day Exploits Likely Leveraged by Russia’s APT28”.
Persistence
2 techniques
Persistence
[CHOPSTICK](https://attack.mitre.org/software/S0023) may modify Registry keys to store RC4 encrypted configuration information.(Citation: FireEye APT28)
When we try to terminate it by killing the process, it will restart almost immediately.
Privilege Escalation
2 techniques
Privilege Escalation
One listed item explicitly names “T1055 Process Injection” and includes APT28-linked malware such as Downdelph among examples.
When we try to terminate it by killing the process, it will restart almost immediately.
Stealth
11 techniques
Stealth
The malware uses a token to identify which module is communicating. The token is Base64 encoded data, but padded with a 5-byte random prefix so that it looks like valid Base64 data.
[CHOPSTICK](https://attack.mitre.org/software/S0023) may store RC4 encrypted configuration information in the Windows Registry.(Citation: FireEye APT28)
The Komplex Trojan is a binder with multiple parts: a dropper, a payload and a decoy pdf file.
One listed item explicitly names “T1055 Process Injection” and includes APT28-linked malware such as Downdelph among examples.
case ‘m’: deletFileFromPath
Adversaries may abuse rundll32.exe to proxy execution of malicious code. Using rundll32.exe, vice executing directly (i.e. Shared Modules), may avoid triggering security tools that may not monitor execution of the rundll32.exe process because of allowlists or false positives from normal operations.
[CHOPSTICK](https://attack.mitre.org/software/S0023) includes runtime checks to identify an analysis environment and prevent execution on it.(Citation: FireEye APT28)
CHOPSTICK includes runtime checks to identify an analysis environment and prevent execution on it. Hancitor has used a macro to check that an ActiveDocument shape object in the lure message is present. If this object is not found, the macro will exit without downloading additional payloads. Operation Spalax threat actors used droppers that would run anti-analysis checks before executing malware on a compromised host.
After being installed on iOS 7, the app’s icon is hidden and it runs in the background immediately.
Checks if a debugger is present and, if so, the malware exits.
The exact way how the actors install the espionage malware on iOS devices is currently unknown to us. It is very likely that social engineering is an important part.
Defense Impairment
1 technique
Defense Impairment
[CHOPSTICK](https://attack.mitre.org/software/S0023) may modify Registry keys to store RC4 encrypted configuration information.(Citation: FireEye APT28)
Credential Access
3 techniques
Credential Access
Consistent with GRU techniques and 'methods of persistence' identified by computer forensic investigators in other intrusions, the hackers again used X-Agent to log keystrokes, take screenshots, and gather system data; used a lateral-movement tool called RemCom; and used Mimikatz, a credential-harvesting tool.
[CHOPSTICK](https://attack.mitre.org/software/S0023) is capable of performing keylogging.(Citation: Crowdstrike DNC June 2016)(Citation: ESET Sednit Part 2)(Citation: DOJ GRU Indictment Jul 2018)
Password: used to obtain passwords from Firefox browser profiles.
Discovery
12 techniques
Discovery
[CHOPSTICK](https://attack.mitre.org/software/S0023) provides access to the Windows Registry, which can be used to gather information.(Citation: FireEye APT28)
Together with the help of above mentioned tools, the group gained access to the file system and registry; enumerate network resources...
Command Value 102 ... InfoOS getProcessList
InfoOS: Gather information from the infected computer, such as: IOPlatformUUID, process list, operating system version.
An older version of [CHOPSTICK](https://attack.mitre.org/software/S0023) has a module that monitors all mounted volumes for files with the extensions .doc, .docx, .pgp, .gpg, .m2f, or .m2o.(Citation: ESET Sednit Part 2)
20 Map network resources
Command 109: Browser history and bookmarks
[CHOPSTICK](https://attack.mitre.org/software/S0023) includes runtime checks to identify an analysis environment and prevent execution on it.(Citation: FireEye APT28)
CHOPSTICK includes runtime checks to identify an analysis environment and prevent execution on it. Hancitor has used a macro to check that an ActiveDocument shape object in the lure message is present. If this object is not found, the macro will exit without downloading additional payloads. Operation Spalax threat actors used droppers that would run anti-analysis checks before executing malware on a compromised host.
RemoteShell: Used to execute remote commands received from the attacker on the infected machine. It lists installed applications as well as iPhone backups.
[CHOPSTICK](https://attack.mitre.org/software/S0023) checks for antivirus and forensics software.(Citation: FireEye APT28)
Checks if a debugger is present and, if so, the malware exits.
Lateral Movement
2 techniques
Lateral Movement
An arrow representing the malicious fils moving laterally through the network. | The graphic indicates three methods of APT 29 tradecraft, including remote execution, file transmission, and keylogging
Part of [APT28](https://attack.mitre.org/groups/G0007)'s operation involved using [CHOPSTICK](https://attack.mitre.org/software/S0023) modules to copy itself to air-gapped machines and using files written to USB sticks to transfer data and command traffic.(Citation: FireEye APT28)(Citation: Microsoft SIR Vol 19)(Citation: Secureworks IRON TWILIGHT Active Measures March 2017)
Collection
5 techniques
Collection
This backdoor component is known to have a modular structure featuring various espionage functionalities, such as key-logging, screen grabbing and file exfiltration.
[CHOPSTICK](https://attack.mitre.org/software/S0023) is capable of performing keylogging.(Citation: Crowdstrike DNC June 2016)(Citation: ESET Sednit Part 2)(Citation: DOJ GRU Indictment Jul 2018)
[CHOPSTICK](https://attack.mitre.org/software/S0023) has the capability to capture screenshots.(Citation: DOJ GRU Indictment Jul 2018)
Madcap is similar to the XAgent malware, but the former is focused on recording audio.
The Mac agent brings more spying capabilities such as stealing iOS backups from Mac computers, which contain messages, contacts, voicemail, call history, notes, calendar and Safari data.
Command and Control
15 techniques
Command and Control
The command request to the C&C server is made via HTTP GET. It receives a base64 encoded cmdPacket that has previously been encrypted with RC4 using a hardcoded KERNEL_CRYPTO_MAIN_KEY.
[CHOPSTICK](https://attack.mitre.org/software/S0023) can switch to a new C2 channel if the current one is broken.(Citation: ESET Sednit Part 2)
C2 azureon-line[.]com (TCP/80) ... C2 198.105.125[.]74 (TCP/80) ... C2 mozilla-plugins[.]com (TCP/80) ... The oldest sample... was found to beacon to the domain azureon-line[.]com... The first of the newer samples... beacons to an IP also widely associated with the Sofacy group... The newest sample... introduces a previously unknown command and control beacon to mozilla-plugins[.]com.
Various implementations of [CHOPSTICK](https://attack.mitre.org/software/S0023) communicate with C2 over HTTP.(Citation: ESET Sednit Part 2)
Various implementations of [CHOPSTICK](https://attack.mitre.org/software/S0023) communicate with C2 over SMTP and POP3.(Citation: ESET Sednit Part 2)
[CHOPSTICK](https://attack.mitre.org/software/S0023) used a proxy server between victims and the C2 server.(Citation: ESET Sednit Part 2)
APT28 used other victims as proxies to relay command traffic, for instance using a compromised Georgian military email server as a hop point to NATO victims.
APT28 used other victims as proxies to relay command traffic, for instance using a compromised Georgian military email server as a hop point to NATO victims.
Part of [APT28](https://attack.mitre.org/groups/G0007)'s operation involved using [CHOPSTICK](https://attack.mitre.org/software/S0023) modules to copy itself to air-gapped machines, using files written to USB sticks to transfer data and command traffic.(Citation: FireEye APT28)(Citation: ESET Sednit Part 2)(Citation: Microsoft SIR Vol 19)
[CHOPSTICK](https://attack.mitre.org/software/S0023) is capable of performing remote file transmission.(Citation: Crowdstrike DNC June 2016)
Recommended yara for the linux versions: rule sofacy_xagent ... x4 = "ChannelController" x5 = "RemoteKeylogger"
[CHOPSTICK](https://attack.mitre.org/software/S0023) can use a DGA for [Fallback Channels](https://attack.mitre.org/techniques/T1008), domains are generated by concatenating words from lists.(Citation: ESET Sednit 2017 Activity)
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.
[CHOPSTICK](https://attack.mitre.org/software/S0023) encrypts C2 communications with RC4.(Citation: ESET Sednit Part 2)
[CHOPSTICK](https://attack.mitre.org/software/S0023) encrypts C2 communications with TLS.(Citation: ESET Sednit Part 2)
Exfiltration
2 techniques
Exfiltration
To exfiltrate information to the C&C server (such as screenshots, passwords, files and more), the agent uses a defined structure called msgPacket.
The app is also able to upload files via FTP protocol.
Impact
1 technique
Impact
ComRAT has modified Registry values to store encrypted orchestrator code and payloads ... QakBot can modify the Registry to store its configuration information ... Volgmer modifies the Registry to store an encoded configuration file ...
Observables
77 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
115 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.