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, with variants targeting Windows, Android, and macOS. It is associated with Pakistan-aligned espionage activity tracked under names including SpaceCobra and Cosmic Leopard. Its targeting has focused on Indian individuals and organizations, particularly military personnel and the defense, government, and related technology sectors. GravityRAT is a core component of Operation Celestial Force, alongside the HeavyLift loader and GravityAdmin administration tool.
GravityRAT collects sensitive files, communications, location information, and host metadata. Android variants steal contacts, call logs, SMS messages, GPS coordinates, documents, images, audio, device identifiers, account information, and Wi-Fi details. Some variants also collect encrypted WhatsApp backups; collection does not establish an ability to decrypt their contents. Updated Android variants accept commands to delete files, contacts, and call logs. Collected information is uploaded to command-and-control infrastructure, with some variants transmitting at intervals of one to 30 minutes. Windows variants enumerate running processes, user-account details, network configuration, and system time, and steal office documents. Documented persistence uses scheduled tasks, while anti-analysis behavior includes querying CPU-temperature information through WMI to identify virtual environments.
Distribution combines spearphishing, malicious documents, social-media approaches, and deceptive application-download websites. Android payloads have masqueraded as messaging applications, including BingeChat and Chatico, and as recruitment or résumé-building tools. Recruitment lures impersonate firms serving foreign defense contractors and use defense-company branding to establish credibility. Fake app-store buttons and purported review delays encourage victims to sideload malicious applications rather than obtain them through official stores.
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.
An active GravityRAT surveillance campaign is using a fake recruitment portal ("recruitersglobal[.]net") to trick job seekers into downloading malicious Android apps.
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.
The other infection vector, gaining popularity in this operation, and now a staple tactic of the Cosmic Leopard’s operations consists of contacting targets over social media channels, establishing trust with them and eventually sending them a malicious link to download either the Windows- or Android-based GravityRAT or the Windows-based loader, HeavyLift.
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
[GravityRAT](https://attack.mitre.org/software/S0237) steals files with the following extensions: .docx, .doc, .pptx, .ppt, .xlsx, .xls, .rtf, and .pdf.(Citation: Talos GravityRAT)
[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
Read SMS data and content and upload to the C2. Read specific file formats and upload them to the C2. Read call logs and upload them to the C2.
Observables
182 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.