Hackers Use GSocket to Maintain Persistent Access to Linux Servers

· Original article ↗

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

CVE

Vendors

Products

Tools

Industries

Related Articles