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
- Block the 4 indicators.
- Run the hunt.
- Check for install.sh.
Indicators 9
| Value | Type | Action | Copy |
|---|---|---|---|
d94f75a70b5cabaf7…9be567bcfa | SHA256 | block | |
f95c4d029e6784e38…8a290a03b5 | SHA256 | block | |
55d141bb2f62c527c…a42165229f | SHA256 | block | |
12450bafc7a439804…f59886f06c | SHA256 | block | |
gs-netcat_mini-linux-x86_64 | File name | alert | |
gs-netcat_mini-linux-aarch64 | File name | alert | |
systemd-remount-d | File name | alert | |
.gsn_ora | File name | alert | |
defunct.service | File name | alert |
Sources Microsoft · Sansec · MalwareBazaar · MalwareBazaar (2)
More detail
What to do
- 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.
- 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.
- 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.
- 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.
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
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
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
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.