Hackers Use GSocket to Maintain Persistent Access to Linux Servers

Summary
Microsoft reports a 356.2% rise in GSocket-related detections from March to August. Attackers use the relay-based tool to maintain access to Linux servers, with persistence through cron jobs, systemd services, and shell startup files.
Key points
- Threat actors are reportedly abusing legitimate open-source GSocket to retain access after patching vulnerabilities used for initial access.
- GSocket relays encrypted sessions between outbound connections, allowing reconnection without a server IP address, inbound listener, or dedicated C2 server.
- Microsoft Defender for Endpoint telemetry showed GSocket-related detections rising 356.2% between March and August.
- Of detected incidents, 87.1% involved web applications and hosting; PHP web apps and cPanel accounted for 63.9%, and Apache for 24.3%.
- Attackers reportedly disguised GSocket as kernel threads and used cron jobs, systemd services, and shell startup files for persistence.
- Microsoft observed attempts to exploit the Dirty Frag Linux kernel flaw, CVE-2026-43284, for root access.
- Recommended steps include removing GSocket and related files, checking that relay connections have stopped, restricting outbound traffic, and auditing persistence locations.
Article Details
- Event Type
- Malicious use of a legitimate remote access tool to maintain persistent access to compromised Linux servers
- Impact
- Multiple threat actors are reportedly using GSocket to reconnect to compromised servers through outbound relay connections, including after the vulnerabilities used for initial access have been patched. The technique can evade inbound firewall rules and does not require a dedicated C2 server or an inbound listener. Microsoft Defender for Endpoint telemetry showed a 356.2% increase in GSocket-related detections between March and August. In some cases, attackers attempted to exploit CVE-2026-43284 to gain root privileges.
MITRE ATT&CK
T1036.004 · Masquerade Task or ServiceResearchers observed attackers disguising GSocket as kernel threads.T1053.003 · CronAttackers use cron jobs for persistence.T1090.002 · External ProxyGSocket routes connections through its Global Socket Relay Network, which brokers the session between the compromised host and operator.T1219 · Remote Access ToolsAttackers abuse GSocket, a legitimate remote access tool, to maintain access to compromised Linux servers.T1543.002 · Systemd ServiceAttackers use systemd services for persistence.T1546.004 · Unix Shell Configuration ModificationAttackers use shell startup files for persistence.
CVE
Vendors
Products
ApachePHP web apps and cPanel hosting accounted for 63.9%, and Apache accounted for 24.3%.cPanelPHP web apps and cPanel hosting accounted for 63.9%, and Apache accounted for 24.3%.LinuxHackers plant GSocket on Linux servers for persistent accessMicrosoft Defender for EndpointAccording to Microsoft Defender for Endpoint telemetry, GSocket-related detections increased by 356.2% between March and August.
Tools
Industries
Education and researchMicrosoft says most targets of GSocket activity are in the education and research sector, followed by technology and communications, manufacturing, and government entities.GovernmentMicrosoft says most targets of GSocket activity are in the education and research sector, followed by technology and communications, manufacturing, and government entities.ManufacturingMicrosoft says most targets of GSocket activity are in the education and research sector, followed by technology and communications, manufacturing, and government entities.technology and communicationsMicrosoft says most targets of GSocket activity are in the education and research sector, followed by technology and communications, manufacturing, and government entities.
