GravityRAT
- Type
- RAT
- Capabilities
- ExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- SpearphishingLanding pageLure
- Platforms
- AndroidWindowsmacOS
GravityRAT is a remote-access trojan and surveillance malware family active since at least 2015. Initially developed for Windows, it subsequently expanded to Android and macOS. It is associated with Pakistan-aligned espionage actors tracked as SpaceCobra and Cosmic Leopard, with campaigns primarily targeting Indian defense and military personnel, government entities, and related technology sectors. GravityRAT is a core component of Operation Celestial Force.
Android variants collect contacts, call logs, historical and incoming SMS messages, GPS coordinates, device and SIM information, account metadata, Wi-Fi details, documents, images, and audio files. They also steal encrypted WhatsApp backups and periodically upload collected information to command-and-control servers. Collection of these backups does not establish an ability to decrypt their contents. Some Android variants support deletion of contacts, call logs, and malware-related files. Windows variants steal documents, enumerate running processes, collect user-account and network-configuration information, and obtain system date and time. Documented Windows behavior includes daily scheduled-task persistence and virtual-machine detection through WMI queries for CPU-temperature information.
Distribution relies on spearphishing and social engineering, including malicious documents, social-media contact, fake recruitment portals, and websites offering trojanized messaging applications or software utilities. Recruitment campaigns impersonate employment services and display defense and aerospace company logos to establish credibility. Android lures use purported Google Play review delays to persuade targets to sideload applications directly. Related operations also deploy the separate HeavyLift and DropDeckX loaders; their credential-harvesting and payload-delivery functions are distinct from GravityRAT.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Pakistan-aligned SpaceCobra, also known as Cosmic Leopard, is blamed by Lookout (B/2) for an active espionage campaign infecting defense job seekers' phones and computers with GravityRAT and a DropDeckX loader through fake recruiter sites.
An active GravityRAT surveillance campaign is using a fake recruitment portal ("recruitersglobal[.]net") to trick job seekers into downloading malicious Android apps.
Techniques & procedures
41 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
This campaign primarily utilizes two infection vectors — spear phishing and social engineering. Spear phishing consists of messages sent to targets with pertinent language and maldocs that contain malware such as GravityRAT.
Spear phishing consists of messages sent to targets with pertinent language and maldocs that contain malware such as GravityRAT.
Fake defense-recruiter portals push installers past store review T1566.002
Execution
8 techniques
Execution
[GravityRAT](https://attack.mitre.org/software/S0237) collects various information via WMI requests, including CPU information in the Win32_Processor entry (Processor ID, Name, Manufacturer and the clock speed).(Citation: Talos GravityRAT)
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
The Mac version has a similar functionality and adds a cron job.
[GravityRAT](https://attack.mitre.org/software/S0237) creates a scheduled task to ensure it is re-executed everyday.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) executes commands remotely on the infected host.(Citation: Talos GravityRAT)
If the file is opened, and if macros are enabled by the user, the actual payload will be downloaded.
If the file is opened, and if macros are enabled by the user, the actual payload will be downloaded.
[GravityRAT](https://attack.mitre.org/software/S0237) has been delivered via Word documents using DDE for execution.(Citation: Talos GravityRAT)
Persistence
3 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
The Mac version has a similar functionality and adds a cron job.
[GravityRAT](https://attack.mitre.org/software/S0237) creates a scheduled task to ensure it is re-executed everyday.(Citation: Talos GravityRAT)
Privilege Escalation
3 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
The Mac version has a similar functionality and adds a cron job.
[GravityRAT](https://attack.mitre.org/software/S0237) creates a scheduled task to ensure it is re-executed everyday.(Citation: Talos GravityRAT)
Stealth
7 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
The author of [GravityRAT](https://attack.mitre.org/software/S0237) submitted samples to VirusTotal for testing, showing that the author modified the code to try to hide the DDE object in a different part of the document.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) supports file encryption (AES with the key "lolomycin2017").(Citation: Talos GravityRAT)
The latest variants of GravityRAT are distributed through malicious websites, some registered and set up as late as early January 2024, pretending to distribute legitimate Android applications.
Delete all contacts, call logs and files related to the malware.
The GravityRAT Remote Access Trojan (or Tool) is noteworthy for the fact that is uses no fewer than seven techniques to detect whether it is running inside a virtual machine.
[GravityRAT](https://attack.mitre.org/software/S0237) uses WMI to check the BIOS and manufacturer information for strings like "VMWare", "Virtual", and "XEN" and another WMI request to get the current temperature of the hardware to determine if it's a virtual machine environment. (Citation: Talos GravityRAT)
Defense Impairment
1 technique
Defense Impairment
The cybercriminals also started using digital signatures to make the apps look more legitimate.
Credential Access
1 technique
Credential Access
The spyware receives commands from the server, including to: ... intercept keystrokes
Discovery
14 techniques
Discovery
[GravityRAT](https://attack.mitre.org/software/S0237) has a feature to list the available services on the system.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) collects the victim IP address, MAC address, as well as the victim account domain name.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) collects the victim username along with other account information (account type, description, full name, SID and status).(Citation: Talos GravityRAT)
The spyware receives commands from the server, including to: ... scan ports
[GravityRAT](https://attack.mitre.org/software/S0237) uses the <code>netstat</code> command to find open ports on the victim’s machine.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) lists the running processes on the system.(Citation: Talos GravityRAT)
Several entries describe identifying whether the current user has admin privileges, determining privilege level, identifying groups the user belongs to, or verifying execution as SYSTEM.
[GravityRAT](https://attack.mitre.org/software/S0237) collects the MAC address, computer name, and CPU information.(Citation: Talos GravityRAT)
[GravityRAT](https://attack.mitre.org/software/S0237) collects the volumes mapped on the system, and also steals files with the following extensions: .docx, .doc, .pptx, .ppt, .xlsx, .xls, .rtf, and .pdf.(Citation: Talos GravityRAT)
Examples include 'Caterpillar WebShell can obtain a list of user accounts from a victim's machine,' 'DRATzarus can obtain a list of users from an infected machine,' 'Woody RAT can retrieve a list of user accounts and usernames from an infected machine,' and 'TrickBot can identify the user and groups the user belongs to on a compromised host.'
[GravityRAT](https://attack.mitre.org/software/S0237) can obtain the date and time of a system.(Citation: Talos GravityRAT)
The GravityRAT Remote Access Trojan (or Tool) is noteworthy for the fact that is uses no fewer than seven techniques to detect whether it is running inside a virtual machine.
[GravityRAT](https://attack.mitre.org/software/S0237) uses WMI to check the BIOS and manufacturer information for strings like "VMWare", "Virtual", and "XEN" and another WMI request to get the current temperature of the hardware to determine if it's a virtual machine environment. (Citation: Talos GravityRAT)
After registration, the trojan requests tasks to execute to the C2 followed by uploading a file containing the device's location.
Collection
5 techniques
Collection
Sideloaded Android implant exfiltrates data to PHP endpoints T1005
[GravityRAT](https://attack.mitre.org/software/S0237) steals files based on an extension list if a USB drive is connected to the system.(Citation: Talos GravityRAT)
The spyware receives commands from the server, including to: ... intercept keystrokes
The spyware receives commands from the server, including to: ... take screenshots
record audio (not implemented in this version)
Command and Control
4 techniques
Command and Control
[GravityRAT](https://attack.mitre.org/software/S0237) uses HTTP for C2.(Citation: Talos GravityRAT)
We focused on port 46769, used by the above Trojans. The same port was used by the GravityRAT family.
If the file is opened, and if macros are enabled by the user, the actual payload will be downloaded.
[GravityRAT](https://attack.mitre.org/software/S0237) has used HTTP over a non-standard port, such as TCP port 46769.(Citation: Talos GravityRAT)
Exfiltration
1 technique
Exfiltration
then periodic POSTs every 1 to 30 minutes to PHP paths on android-framework-named subdomains
Observables
186 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.