CowTunnel
CowTunnel is a Linux-focused reverse proxy tunnel payload observed by Huntress in post-exploitation activity following exploitation of the critical React Server Components deserialization vulnerability CVE-2025-55182 (React2Shell), including against vulnerable Next.js deployments. It consists of a malicious wrapper called NSS and xfrpc version 2.9.644, an open-source Fast Reverse Proxy (FRP) client. CowTunnel initiates outbound connections to attacker-controlled FRP servers, allowing attackers to bypass firewalls that primarily monitor inbound connections. Reported decrypted configuration referenced FRP servers at 23.226.71[.]197:13306, 23.226.71[.]200:13306, and 23.226.71[.]209:13306 using the token "Nginx-1.22.1". Its capabilities include exposing compromised-host services and proxying traffic over telnet, SOCKS5, TCP, HTTP, FTP, and MSTSC, enabling remote access and network pivoting. Huntress identified a sample with SHA256 776850a1e6d6915e9bf35aa83554616129acd94e3a3f6673bd6ddaec530f4273. Detection content cited in the reporting includes YARA coverage for CowTunnel as a distinct Linux threat. The reporting ties CowTunnel to the broader React2Shell exploitation wave that affected multiple organizations, including construction and entertainment sectors, but does not attribute CowTunnel to a specific threat actor with high confidence.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
"React2Shell (CVE-2025-55182)... unauthenticated remote code execution... unsafe deserialization"; "RondoDox... exploits... React2Shell... as an initial access vector"
Execution
2 techniques
Execution
The commands follow the same methodology: download a shell script, execute it via bash, and in some cases delete the script to remove evidence.
Attackers have attempted to deploy cryptominer malware, a Linux backdoor we're tracking as PeerBlight, a reverse proxy tunnel we call CowTunnel, and a Go-based post-exploitation implant dubbed ZinFoq as part of their post-exploitation activity.
Persistence
2 techniques
Persistence
The function in the screenshot below contains code to automatically create system user accounts with administrative privileges.
sudo useradd -m -s /bin/bash <username> ... echo '<username>:<password>' | sudo chpasswd ... sudo usermod -aG sudo <username>
Privilege Escalation
1 technique
Privilege Escalation
The function in the screenshot below contains code to automatically create system user accounts with administrative privileges.
Stealth
2 techniques
Stealth
The binary copies itself to /bin/systemd-daemon and enables the service using the generic "System Daemon" description.
Additional payloads were downloaded and made executable, including a file named ntpclient , likely named to masquerade as a legitimate NTP client.
Discovery
1 technique
Discovery
Once connected, the payload registers local services with the FRP server, such as the embedded telnet daemon on port 2323. Attackers can then connect to their FRP server and access these services as if they were directly connected to the victim machine.
Command and Control
5 techniques
Command and Control
The payload, which we have named “ ZinFoq ” ... communicates with command-and-control infrastructure at “ api.qtss[.]cc ” over HTTPS using hex-encoded payloads
We also uncovered threat actors using a payload we call CowTunnel, which operates as a reverse proxy and initiates outbound connections to attacker-controlled FRP servers.
When executed on a compromised host, the payload initiates an outbound connection to attacker-controlled FRP servers. This outbound connection model is significant because most firewalls are configured to block inbound connections while allowing outbound traffic, enabling the tunnel to bypass perimeter defenses.
We identified a Go-based post-exploitation implant we've dubbed ZinFoq, which features interactive reverse shells, SOCKS5 proxying for network pivoting...
The threat actor attempted to download multiple payloads from C2 servers... The commands follow the same methodology: download a shell script, execute it via bash...
Observables
6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.