Attackers Are Using GSocket to Keep Access to Linux Servers Even After Patching
Microsoft has seen multiple incidents in which threat actors installed GSocket, an open source remote access tool, on compromised Linux servers. After exploiting a web application vulnerability, an attacker can run commands only while the flaw is unpatched and the service keeps running. GSocket lets them turn that short-lived foothold into persistent access that outlasts the fix. Microsoft Defender for Endpoint telemetry shows this activity growing over recent months, mostly against web applications and hosting environments.
The tool appeals to attackers because it avoids the weaknesses of other persistence methods. SSH keys are easy for administrators to spot in an audit, reverse shells rely on attacker-controlled servers that defenders can block, and custom implants take ongoing effort to maintain. With GSocket, both the compromised server and the attacker connect outbound to the Global Socket Relay Network, which pairs the two sessions over an end-to-end encrypted channel. Because the traffic runs through a shared public network, there is no attacker-owned IP address or domain to block. Multiple unrelated threat actors have adopted it.
The main lesson is that patching alone is not full remediation. GSocket runs independently of the exploited application, so fixing the vulnerability does not remove the relay client or its persistence. Microsoft advises defenders investigating affected hosts to look for evidence of GSocket deployment, persistence, privilege escalation and outbound connections.