GSocket
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasion
- Delivery
- Clickfix
- Platforms
- LinuxmacOS
GSocket (Global Socket) is a legitimate open-source networking and remote-access utility widely abused as a backdoor on compromised Linux servers. It provides encrypted remote connectivity through the public Global Socket Relay Network, using outbound connections to traverse NAT and inbound firewall restrictions. Shared-secret-based reconnection enables operators to regain shell access without depending on attacker-owned relay infrastructure. Attackers deploy it after compromising internet-facing applications, allowing access to survive remediation of the original vulnerability unless the backdoor and its persistence mechanisms are also removed.
Malicious deployments establish persistence through shell startup configuration and scheduled jobs, disguise processes as kernel threads or system services, and conceal artifacts in shared memory. Some operators additionally use modified system utilities to hide GSocket processes and network connections. Its abuse spans unrelated intrusion operations, including LABRAT, Feral Wolf, ExCobalt-associated activity, and CL-UNK-1211. Affected environments include web-hosting infrastructure, government systems, and education and research organizations. A modified GSocket backdoor also provides persistence for the macOS-targeting ClickLock Stealer; the stealer's credential-collection capabilities are separate from GSocket's remote-access functionality.
Associated vulnerabilities
6 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
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“GSocket / gs-netcat (traversée NAT/firewall), stocké dans /dev/shm/.gs-10085/, déguisé en [kcached] et gs-dbus.”
A malicious downloaded payload installed gsocket as /usr/bin/gs-dbus; another installation copied gs-netcat from /dev/shm.
Modified ps and htop hide an active core process of the gsocket module and related processes in terminal output.
Techniques & procedures
39 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The attackers deployed or downloaded GSOCKET, pspy64, whatserver.sh, and likely Ligolo-ng.
Initial Access
2 techniques
Initial Access
The third backdoor is by using a webshell of tmate[.]io... TeamTNT is utilizing this tool as a backdoor. The fourth backdoor is by utilizing a socket connected over HTTP service with Ngrok product.
Les acteurs exploitent des applications web exposées sur Internet (principalement PHP , cPanel , Apache ) via des vulnérabilités RCE
Execution
4 techniques
Execution
Этот компонент предоставляет атакующим реверс-шелл и закрепляется через LaunchAgent, cron и конфигурационные шелл-файлы.
Persistance via cron , systemd , profils shell, watchdogs et copies redondantes
Feral Wolf used command execution within the compromised Confluence Docker container to deploy the GSocket utility.
Après exécution de code, un script est téléchargé via curl depuis gsocket[.]io et exécuté avec bash
Persistence
7 techniques
Persistence
Этот компонент предоставляет атакующим реверс-шелл и закрепляется через LaunchAgent, cron и конфигурационные шелл-файлы.
Persistance via cron , systemd , profils shell, watchdogs et copies redondantes
The third backdoor is by using a webshell of tmate[.]io... TeamTNT is utilizing this tool as a backdoor. The fourth backdoor is by utilizing a socket connected over HTTP service with Ngrok product.
To ensure their access survived server reboots, file deletions, or malware cleanups, they established an hourly cron job
If the user cancels, the script writes two LaunchAgents and quits quietly. On the next login, one module kills every visible app every 210 milliseconds.
T1543.002 — Create or Modify System Process: Systemd Service (Persistence)
To ensure that GSocket starts automatically, the threat actor modified .profile.
Privilege Escalation
5 techniques
Privilege Escalation
Этот компонент предоставляет атакующим реверс-шелл и закрепляется через LaunchAgent, cron и конфигурационные шелл-файлы.
Persistance via cron , systemd , profils shell, watchdogs et copies redondantes
If the user cancels, the script writes two LaunchAgents and quits quietly. On the next login, one module kills every visible app every 210 milliseconds.
T1543.002 — Create or Modify System Process: Systemd Service (Persistence)
To ensure that GSocket starts automatically, the threat actor modified .profile.
Stealth
9 techniques
Stealth
RUDEDEVIL configuration blobs and custom apache2 strings are XOR-encoded; the GSOCKET cron payload is Base64-encoded.
Noms de processus masqués imitant des threads kernel (ex: systemd-remount-d , [kaluad] )
GSocket / gs-netcat ... déguisé en [kcached] et gs-dbus
On macOS, the binary is disguised as iCloud within ~/Library/Application Support/iCloudsync, with the process masquerading as SystemUIServerl.
00.sh deletes log files and execution traces; downloaded l64 and l86 payloads are removed after execution.
Suppression des fichiers de staging et modification des timestamps ( timestomping )
Suppression des fichiers de staging et modification des timestamps ( timestomping )
RUDEDEVIL decrypts its configuration blobs during execution, and GSOCKET's Base64 command is decoded before persistence execution.
Exécution depuis des répertoires cachés ( /dev/shm/.gs-0 , /tmp/.gsn_ora )
Discovery
3 techniques
Discovery
public IP (via ifconfig.me)
The script collects a system fingerprint including username
The script collects a system fingerprint including username, macOS version, CPU, RAM, disk size, and public IP
Lateral Movement
2 techniques
Lateral Movement
SSH from Workstation B to Workstation A through any firewall/NAT $ gsocket /usr/sbin/sshd # Workstation A $ gsocket ssh root@gsocket # Workstation B
Talos is also aware of the widespread in-the-wild active exploitation of three vulnerabilities in unpatched Cisco Catalyst SD-WAN Manager infrastructure (CVE-2026-20133, CVE-2026-20128, and CVE-2026-20122) that, when chained together, can allow a remote unauthenticated attacker to gain access to the device.
Collection
1 technique
Collection
allowing attackers to gain persistent remote access to compromised devices by compressing collected data into ZIP archives and exfiltrating it through the Telegram Bot API.
Command and Control
11 techniques
Command and Control
Numerous new tools have been used to support command and control (C2) and stealth. These include publicly available tools like Nezha... and GSocket, which allows workstations on different private networks to connect and bypass firewalls.
Payloads are transferred through HTTP wget/curl requests; the gambling automation script uses HTTP GET and POST requests; Telegram communication uses POST requests.
Access entirety of Workstation A's private LAN (Sock4/4a/5 proxy) $ gs-netcat -l -S # Workstation A (EXIT) $ gs-netcat -p 1080 # Workstation B
Les deux extrémités (hôte compromis et opérateur) se connectent en sortie vers le GSRN Aucune adresse IP ou domaine appartenant à l’acteur n’est nécessaire La reconnexion repose uniquement sur le secret partagé , livrable via Telegram, Discord ou webhook
Uses the Global Socket Relay Network to connect TCP pipes... Once connected the library then negotiates a secure TLS connection(End-2-End).
GSOCKET supports Telegram webhooks, and a second-stage script sends command output to a Telegram chat bot.
Après exécution de code, un script est téléchargé via curl depuis gsocket[.]io et exécuté avec bash
The fourth installed GSocket, an open-source reverse-shell tool reused with roughly 80% of its original code, disguised on macOS as an iCloud process.
revsocks (SOCKS5 reverse tunnel) ; GSocket / gs-netcat (traversée NAT/firewall)
The attackers utilized GSOCKET for encrypted communication, disguised as kernel processes.
GSOCKET creates secure persistent connections through the Global Socket Relay Network and includes AES-256 encryption.
Exfiltration
2 techniques
Exfiltration
This makes it look exactly like a native, essential Linux kernel thread, tricking system administrators into ignoring it while it keeps an encrypted outbound data tunnel open to the hacker's command center.
immediately sends them to the attackers through Telegram... exfiltrating it through the Telegram Bot API.
Observables
30 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
49 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.