Security

GSocket C2 Abuse: Microsoft Warns of Stealthy Persistence

3 min read

Summary

Microsoft has observed multiple threat actors deploying the open source GSocket remote access tool on compromised Linux web servers to maintain access after the original vulnerability is patched. The technique relies on outbound-only encrypted connections through a shared relay network, making traditional IP or domain blocking far less effective and raising the need for host-level investigation and egress monitoring.

Need help with Security?Talk to an Expert

Introduction

Microsoft is warning defenders about growing abuse of GSocket, an open source remote access tool being used as stealthy command-and-control (C2) on compromised Linux servers. The key risk for IT and security teams is that patching the exploited web application may not fully remove attacker access if GSocket has already been deployed for persistence.

What’s new

Microsoft Security Research says multiple unrelated threat actors are using GSocket after exploiting internet-facing applications, especially in web hosting environments.

Key findings

  • Persistent access after remediation: Attackers used GSocket to keep access even after the original remote code execution vulnerability was fixed.
  • No attacker-owned C2 to block: GSocket uses the public Global Socket Relay Network, so defenders often won’t find a dedicated malicious IP address or domain.
  • Outbound-only communications: Both the compromised host and the operator connect outward to the relay, helping the traffic bypass controls focused on inbound connections.
  • Built-in evasion and persistence: Attackers disguised processes with kernel-thread-like names and used cron, systemd, shell profiles, watchdogs, and redundant copies to survive reboots.
  • Linux web servers most affected: Microsoft telemetry showed a 356.2% increase in GSocket-related detections from March to August 2026, with incidents concentrated in web applications and hosting. PHP applications, cPanel hosting, and Apache were heavily represented.

Why this matters for administrators

This research changes the response playbook for Linux web-server compromises. If a vulnerable application was exploited, simply patching and restarting services may leave a hidden backdoor in place.

Security and infrastructure teams should assume that:

  • the web server process may have been used to download and launch tooling with curl
  • binaries may be staged in writable or memory-backed paths such as /dev/shm
  • persistence may exist outside the application itself
  • outbound encrypted traffic may be the only visible network indicator

Microsoft also noted some attackers attempted privilege escalation using CVE-2026-43284, also known as Dirty Frag, after initial access.

  • Investigate compromised Linux hosts for GSocket binaries, renamed processes, cron jobs, systemd services, and shell profile changes.
  • Review outbound connections to relay infrastructure rather than relying only on inbound firewall rules.
  • Hunt for suspicious use of curl, temporary file staging, and execution from memory-backed directories.
  • Validate that incident response includes persistence and privilege escalation checks, not just application patching.
  • Use Microsoft Defender for Endpoint and other EDR tools to identify related detections and suspicious Linux activity.

Bottom line

Microsoft’s findings show how a single web application RCE can quickly become long-term Linux persistence. For defenders, the priority is clear: treat application remediation as only the first step, and follow with host-level hunting, persistence checks, and egress-focused monitoring.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

GSocketLinux securitycommand and controlMicrosoft Defender for Endpointweb server compromise

Related Posts

Security

SCKit ScreenConnect Attack: MSPs Must Hunt Now

Microsoft Threat Intelligence confirmed a campaign abusing ConnectWise ScreenConnect to deploy unauthorized remote-access clients and the SCKit worm on MSP-managed endpoints. The activity can also target technician sessions, making this a high-priority incident for defenders because removing a rogue client alone does not eliminate persistence or invalidate exposed sessions.

Security

AI Agent Supply Chain Attacks Target Coding Tools

Microsoft Security researchers detailed two post-training supply chain attack paths that can backdoor coding and terminal agents: dataset poisoning and model poisoning. The findings matter because compromised agents can misuse tools, execute commands, and access sensitive environments even when prompts appear benign, reinforcing the need for stronger controls around training data, model provenance, and tool permissions.

Security

Linux Kernel Bug Reports: 59 Findings From Microsoft

Microsoft’s FORGE Lab detailed how its MDASH project turned 26,502 Linux kernel scan findings into 59 upstream bug reports and 33 CVEs, with 38 fixes already merged. The research highlights both the promise of AI-assisted vulnerability discovery and the continued need for expert validation, patching, and coordination with upstream maintainers.

Security

AI Sleeper Agent Threat: Microsoft Shares Defenses

Microsoft Research says AI models can be backdoored by editing fewer than 10 neurons, creating sleeper agents that pass evaluations but execute attacker commands when triggered. The findings matter because autonomous agents often run with privileged access, making model weight integrity, auditing, and runtime controls critical for enterprise AI security.

Security

Rust Memory Safety Issues Found by Microsoft FORGE

Microsoft FORGE Lab disclosed several memory safety issues in Rust’s standard library, including cases where safe Rust code could still trigger undefined behavior. The research, aided by the Hyenas AI vulnerability-scanning system, highlights recurring unsafe-code design pitfalls that matter for developers and security teams relying on Rust at scale.

Security

ARTEX Abuse Targets Financial Sector Defenders

Microsoft Threat Intelligence reports that Storm-3358 is using the ARTEX agentic AI offensive framework to target financial organizations, especially in Southeast Asia. The campaign combines AI-driven reconnaissance and exploitation with RAT deployment, credential theft, and cloud identity abuse, raising the urgency for defenders to strengthen identity, endpoint, and deception-based protections.