Cybercriminals are abusing a legitimate remote access tool called GSocket to maintain hidden access to compromised Linux servers. Microsoft reports a 356.2% increase in malicious GSocket detections between March and August 2026. Even after administrators patch the original vulnerabilities, attackers may retain access through hidden persistence mechanisms and encrypted outbound connections.

Linux servers are facing a growing security threat as multiple cybercriminal groups abuse a legitimate open-source remote access tool called GSocket to establish persistent access to compromised systems.

According to Microsoft, malicious GSocket activity increased significantly in recent months. Attackers use the tool to maintain remote access even after administrators patch the vulnerabilities they initially exploited to compromise the servers.

GSocket Enables Stealthy Remote Access

GSocket is a legitimate open-source networking tool designed to establish communication between systems located behind firewalls or Network Address Translation (NAT).

However, threat actors are turning this functionality into a stealthy command-and-control (C2) mechanism.

Instead of relying on traditional inbound connections, GSocket allows both the compromised server and the attacker to establish outbound connections to the Global Socket Relay Network. The relay then connects both endpoints through an encrypted communication session.

As a result, attackers can reconnect to compromised systems without knowing their public IP addresses or hostnames.

Additionally, this approach reduces the effectiveness of conventional IP-based blocking and firewall restrictions. Since the compromised server does not require an exposed inbound listener, detecting unauthorized remote access becomes more challenging.

Malicious GSocket Activity Increases by 356.2%

Microsoft Defender for Endpoint telemetry revealed a 356.2% increase in GSocket-related detections between March and August 2026.

The investigation also identified the environments most frequently affected:

  • 87.1%: Web applications and hosting environments.
  • 63.9%: PHP web applications and cPanel hosting platforms.
  • 24.3%: Apache web server environments.

These findings highlight the growing exposure of internet-facing hosting infrastructure to attacks involving legitimate administrative and networking tools.

Attackers Hide GSocket Through Persistence Techniques

Attackers are not simply deploying GSocket for temporary remote access. They are also establishing persistence mechanisms that allow them to maintain control over compromised Linux systems.

Microsoft observed several techniques, including:

  • Disguising GSocket processes as legitimate Linux kernel threads.
  • Creating malicious cron jobs to execute the tool automatically.
  • Installing unauthorized systemd services.
  • Modifying shell startup files to restore access after system restarts.

Furthermore, some attackers attempted to exploit the Linux kernel vulnerability CVE-2026-43284, known as Dirty Frag, to obtain root privileges.

This combination of privilege escalation and persistence can make compromised servers difficult to recover, particularly when administrators focus only on patching the original vulnerability.

Which Organizations Are at Risk?

Microsoft identified education and research organizations as the most frequently targeted sectors.

Technology and communications, manufacturing, and government entities also appeared among the affected industries.

However, the threat extends beyond these sectors. Organizations operating PHP applications, cPanel environments, Apache servers and other internet-facing Linux infrastructure should consider unauthorized remote access a significant security concern.

How Organizations Can Detect and Remove GSocket

Security teams should investigate potentially compromised Linux servers rather than assuming that vulnerability patching alone has resolved the incident.

Recommended security measures include:

1. Inspect Running Processes: Identify suspicious processes disguised as kernel threads or legitimate system services.

2. Audit Persistence Mechanisms: Review cron jobs, systemd services and shell startup files for unauthorized entries.

3. Monitor Outbound Connections: Investigate unexpected connections to GSocket relay infrastructure and verify that suspicious communication has stopped.

4. Restrict Outbound Traffic: Apply egress filtering and allow connections only to approved destinations where operationally feasible.

5. Remove Malicious Components: Identify and remove unauthorized GSocket binaries, associated files and persistence mechanisms.

6. Patch Linux Vulnerabilities: Keep operating systems and applications updated, including security fixes addressing CVE-2026-43284.

7. Investigate the Initial Compromise: Identify the original entry point, review related activity and assess whether attackers obtained elevated privileges or accessed sensitive information.

Why This Matters for Security Leaders

This activity demonstrates an important shift in attacker behaviour. Cybercriminals increasingly abuse legitimate tools and trusted network infrastructure instead of relying exclusively on traditional malware and dedicated C2 servers.

For organizations operating critical Linux infrastructure, vulnerability management alone is not enough. Security teams must also monitor endpoint behaviour, investigate suspicious outbound communication and continuously review persistence mechanisms.

In particular, CISOs and infrastructure leaders should ensure that server hardening, endpoint detection, network monitoring and incident response work together.

The key takeaway: Patching a vulnerability does not automatically remove an attacker who has already established persistent access. Organizations must identify and eliminate the attacker's foothold before considering a compromised server secure.