RIFLESPINE
- Type
- Backdoor
- Capabilities
- ExfiltrationReconnaissancePost exploitationPersistence
- Platforms
- Linux
RIFLESPINE is a cross-platform backdoor used by the cyberespionage group UNC3886 for remote command execution and file transfer through Google Drive. It has been observed on compromised Linux virtual machines in VMware environments. Its capabilities include arbitrary shell-command execution, file upload and download, system-information collection, and configurable beacon intervals.
RIFLESPINE retrieves encrypted instruction files from Google Drive, using the compromised endpoint’s MAC address to identify its tasking. It decrypts and executes the instructions, encrypts command output, stages the results in temporary files, and uploads them to Google Drive. The malware uses the CryptoPP library for AES encryption, including AES-CBC for downloaded instructions, and relies on the external, open-source gdrive command-line client to interact with Google Drive.
RIFLESPINE lacks an intrinsic persistence mechanism; UNC3886 configured a systemd service to execute it persistently. Observed deployments were limited to a small number of compromised virtual machines. Its use of cloud storage provides both a command-and-control channel and a destination for exfiltrated files and command results.
Associated vulnerabilities
1 CVE 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
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.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
[RIFLESPINE](https://attack.mitre.org/software/S1222) can execute commands with `/bin/sh`.(Citation: Google Cloud Mandiant UNC3886 2024)
Persistence
1 technique
Persistence
[RIFLESPINE](https://attack.mitre.org/software/S1222) can create a systemd service file for execution.(Citation: Google Cloud Mandiant UNC3886 2024)
Privilege Escalation
1 technique
Privilege Escalation
[RIFLESPINE](https://attack.mitre.org/software/S1222) can create a systemd service file for execution.(Citation: Google Cloud Mandiant UNC3886 2024)
Stealth
2 techniques
Stealth
"...deploying malware, including MOPSLED and RIFLESPINE, that leverages trusted third parties like GitHub and Google Drive as C2 channels while relying on the rootkits for persistence."
[RIFLESPINE](https://attack.mitre.org/software/S1222) can deobfuscate encrypted files prior to execution on targeted hosts.(Citation: Google Cloud Mandiant UNC3886 2024)
Discovery
1 technique
Discovery
[RIFLESPINE](https://attack.mitre.org/software/S1222) can collect system information after installation on infected systems.(Citation: Google Cloud Mandiant UNC3886 2024)
Collection
2 techniques
Collection
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[RIFLESPINE](https://attack.mitre.org/software/S1222) can stage the output from executed C2 commands to a temporary file.(Citation: Google Cloud Mandiant UNC3886 2024)
Command and Control
6 techniques
Command and Control
[RIFLESPINE](https://attack.mitre.org/software/S1222) can use HTTP `GET` and `PUT` to upload and download files.(Citation: Google Cloud Mandiant UNC3886 2024)
The adversaries had communicated to both Dropbox and Pastebin. APT28 has used Google Drive for C2. APT37 leverages social networking sites and cloud platforms (AOL, Twitter, Yandex, Mediafire, pCloud, Dropbox, and Box) for C2.
[RIFLESPINE](https://attack.mitre.org/software/S1222) can retrieve C2 commands from an encrypted file on Google Drive then upload the results of command execution back to Google Drive.(Citation: Google Cloud Mandiant UNC3886 2024)
[RIFLESPINE](https://attack.mitre.org/software/S1222) can download and execute files.(Citation: Google Cloud Mandiant UNC3886 2024)
RifleSpine ... employs the CryptoPP library to implement the AES encryption algorithm, securing data transmitted between the compromised system and the threat actor.
[RIFLESPINE](https://attack.mitre.org/software/S1222) can use the AES algorithm to encrypt C2 data.(Citation: Google Cloud Mandiant UNC3886 2024)
Exfiltration
2 techniques
Exfiltration
ComRAT has the ability to use the Gmail web UI to receive commands and exfiltrate information. Crutch can use Dropbox to receive commands and upload stolen data. RIFLESPINE can retrieve C2 commands from an encrypted file on Google Drive then upload the results of command execution back to Google Drive.
[RIFLESPINE](https://attack.mitre.org/software/S1222) can upload results from executed C2 commands to cloud storage.(Citation: Google Cloud Mandiant UNC3886 2024)
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.