Cybersecurity

Beyond Patching: How Attackers Use GSocket to Maintain Persistence on Linux Servers

A technical analysis by Microsoft reveals that attackers are increasingly using the GSocket tool to establish Command and Control (C2) channels via a global relay network, allowing them to maintain access to servers even after original vulnerabilities are patched.

2026-11-11
3 min read
1 views
certi.news Editorial Team
Beyond Patching: How Attackers Use GSocket to Maintain Persistence on Linux Servers

Patching software vulnerabilities is no longer sufficient to ensure attackers are expelled from systems; Microsoft has observed an increasing pattern of attacks where attackers use GSocket, an open-source remote access tool, to establish persistent Command and Control (C2) channels on compromised Linux servers. The danger of this technique lies in its ability to bypass traditional remediation measures, as the attacker remains able to control the server even after the vulnerability used for the initial entry is closed.

Why does GSocket represent a new security challenge?

Traditional Command and Control (C2) tools rely on the compromised server connecting to an IP address or domain owned by the attacker, which makes it easy for defense teams to block that address. However, GSocket breaks this rule by using a Global Socket Relay Network.

This model works by having both the compromised server and the attacker connect "outbound" to the relay network, which acts as a bridge between them via a fully encrypted channel. This means:

  • No need for static IP addresses: The attacker does not have private infrastructure that can be tracked or blocked.
  • Bypassing firewalls: Since the connection is an outbound connection, firewall rules that block inbound connections do not detect this activity.
  • Bypassing NAT: The server does not need a public IP address or special settings to bypass Network Address Translation techniques.

Analysis of the attack pattern and spread

Data from Microsoft Defender for Endpoint showed a sharp increase in activities associated with GSocket, with detections related to it rising by 356.2% between March and August 2026. These attacks were primarily focused on hosting environments and web applications, where PHP applications and cPanel hosts accounted for approximately 63.9% of incidents, while Apache servers accounted for 24.3%.

The attacks follow a precise process chain that begins with exploiting a Remote Code Execution (RCE) vulnerability in a web application, then downloading a script that fetches the GSocket tool and stores it in temporary paths such as /dev/shm. After that, the attacker installs persistence mechanisms via cron or systemd, and in some cases, attempts to escalate privileges to the root user by exploiting Linux kernel vulnerabilities such as CVE-2026-43284 (known as Dirty Frag).

What changes practically for system administrators?

This development means that the "patch the application and forget about it" strategy is no longer sufficient. If a web server is compromised, simply updating the affected application will not remove the GSocket tool if the attacker has already succeeded in planting it.

For protection and recovery, the following steps must be taken:

  • Comprehensive host investigation: Do not just patch the vulnerability; the server must be scanned for GSocket files and persistence mechanisms in configuration files such as systemd and cron.
  • Egress Filtering: Implement a "deny by default" policy for outbound connections, allowing only destinations necessary for operations, and monitor any unusual connections to relay networks.
  • Securing the runtime environment: Mount temporary memory paths (such as /dev/shm) as non-executable whenever possible.
  • Kernel updates: Give top priority to patching local privilege escalation vulnerabilities to ensure that a simple web application breach does not turn into full system control.
News source
Microsoft Security Blog
Open original source ↗
c
Author

certi.news Editorial Team

In the same category

You may also like

View all news