Post-exploitation / Linux C2HighTLP:CLEAR

GSocket web-server C2

GSocket Linux Web-Server C2

Published
11 November 2026
Added
12 November 2026, 09:50 UK
Last updated
12 November 2026

4 to block now5 to hunt4 behaviours to hunt

Hunt3 platforms

Run the hunt before you block, to find past activity. The same hunt is published for each platform. Preview and copy the queries in the dashboard.

  • Defender XDRKQLDefender portal > Hunting > Advanced hunting. Paste and run over 30 days.Download hunt.kql
  • SplunkSPLSearch & Reporting, last 30 days or more. Reads the CIM data models.Download hunt.spl
  • Google SecOpsYARA-L 2.0Rules Editor. Paste, Retrohunt over 30 days, then turn on live mode.Download hunt.yaral

These queries can return false positives. Know your environment and confirm a hit before acting.

Summary

GSocket relay clients on compromised Linux web servers, with hashes and paths only — do not block the public relay. The four SHA-256 hashes below were published by Microsoft and are on the block list (BlockAndRemediate in the Defender import….

Do now

  1. Block the 4 indicators.
  2. Run the hunt.
  3. Check for install.sh.

Indicators 9

ValueTypeActionCopy
d94f75a70b5cabaf7…9be567bcfaSHA256block
f95c4d029e6784e38…8a290a03b5SHA256block
55d141bb2f62c527c…a42165229fSHA256block
12450bafc7a439804…f59886f06cSHA256block
gs-netcat_mini-linux-x86_64File namealert
gs-netcat_mini-linux-aarch64File namealert
systemd-remount-dFile namealert
.gsn_oraFile namealert
defunct.serviceFile namealert

Sources Microsoft · Sansec · MalwareBazaar · MalwareBazaar (2)

More detail
Note GSocket is a legitimate project also used by administrators. Do not block gsocket.io, its CDN, or the public Global Socket Relay Network. Hashes and paths come from Microsoft; the hashes are on the block list.

What to do

  1. Block the four GSocket SHA-256 hashes (BlockAndRemediate in the Defender XDR import file), and hunt 30 days of endpoint logs for them and for the listed file paths.
  2. Hunt internet-facing Linux web servers for web-server processes (nginx, httpd, php-fpm, java, node) running curl or bash against gsocket.io, files under /dev/shm/.gs-*, systemd-remount-d, /usr/bin/defunct and defunct.service. Do not block gsocket.io or the public relay.
  3. Look for bash exec -a launching a payload as [kaluad] or another kernel-thread-like name, chmod 700 on /usr/bin/defunct, and touch used to timestomp those files.
  4. If confirmed, remove the relay client and its persistence, rotate credentials reachable from the host, and verify that outbound sessions to the relay have stopped. Patching the original web-app flaw does not remove GSocket.

Behaviours to hunt 4

Behaviours are leads, not confirmed indicators, and can match legitimate activity. Compare any hit against your own baseline and environment before acting.

  1. alert Web server retrieving GSocket from gsocket.io

    Look forA web-server process running curl or bash against gsocket.io, including /y or /install.sh

    Why it mattersMicrosoft saw compromised web applications retrieve and install GSocket from the legitimate project site. Do not block gsocket.io; hunt the process ancestry. Microsoft

    Log sourceEDR process events on internet-facing Linux web servers

    QueriesKQL · SPL · YARA-L

  2. alert GSocket staging under /dev/shm or .gsn_ora

    Look forFiles under /dev/shm/.gs-* or named gs-netcat_mini-linux-x86_64, gs-netcat_mini-linux-aarch64 or .gsn_ora

    Why it mattersMicrosoft observed GSocket clients staged under /dev/shm/.gs-0/ and a .gsn_ora staging file under /tmp. Microsoft

    Log sourceEDR file events on Linux servers

    QueriesKQL · SPL · YARA-L

  3. alert GSocket persistence as systemd-remount-d or defunct

    Look forA systemd-remount-d binary, /usr/bin/defunct, or a defunct.service unit

    Why it mattersMicrosoft observed GSocket persisted as systemd-remount-d or /usr/bin/defunct, with a defunct.service unit and a multi-user.target.wants link. Microsoft

    Log sourceEDR file, process and systemd events on Linux servers

    QueriesKQL · SPL · YARA-L

  4. hunt exec -a [kaluad] or timestomp of defunct

    Look forbash using exec -a to present a payload as [kaluad], or chmod 700 and touch against /usr/bin/defunct or defunct.service

    Why it mattersMicrosoft saw bash exec -a launch /usr/bin/defunct with the argument-zero name [kaluad], then chmod 700 and touch used to hide the payload. Microsoft

    Log sourceEDR process events on Linux servers

    QueriesKQL · SPL

Affected countries and sectors

Targets
Global
Sectors
Hosting, Internet-facing web applications

Background

Microsoft Threat Intelligence reports that threat actors have been deploying GSocket, a legitimate open-source relay tool, as stealthy command and control on compromised Linux web servers after internet-facing application breaches. The host and the operator each connect outbound to the public Global Socket Relay Network, so there is no attacker-owned IP address or domain to block. Operators stage gs-netcat under /dev/shm, persist as systemd-remount-d or /usr/bin/defunct, launch the payload with a kernel-thread-like argument-zero name such as [kaluad], and timestomp the files. The four SHA-256 hashes below were published by Microsoft and are on the block list (BlockAndRemediate in the Defender import file). Do not block gsocket.io, cdn.gsocket.io, gsgg.b-cdn.net or the public relay; hunt web-server processes that retrieve or install GSocket instead. Sansec has independently described the same class of GSocket web-server abuse.

Downloads

View folder in repository

MITRE ATT&CK9

Open in the live dashboard Get the blocklist