Chinese hackers hijack auth flow, spy on isolated network for a decade

Brajeshwar1 pts0 comments

Chinese hackers hijack auth flow, spy on isolated network for a decade

Home<br>News<br>Security<br>Chinese hackers hijack auth flow, spy on isolated network for a decade

Chinese hackers hijack auth flow, spy on isolated network for a decade

By Bill Toulas

June 13, 2026

10:06 AM

Chinese hackers took control of a target organization's authentication stack and maintained persistence for 10 years, with full visibility into the administrative activity.

Dubbed "Operation Highland," the intrusion is attributed to the Velvet Ant cyberespionage threat group, which targeted vulnerable internet-facing systems before pivoting to a network with no direct external path.

Chinese hackers of the &ldquo;Velvet Ant&rdquo; activity cluster breached the isolated critical infrastructure network of a large organization and conducted cyber-espionage operations for 10 years.

The campaign, dubbed &ldquo;Operation Highland&rdquo; by Sygnia researchers who discovered it, began in 2016, targeting vulnerable internet-facing systems before pivoting to an &ldquo;air-gapped&rdquo; environment with no direct internet connection.

Velvet Ant&rsquo;s lengthy espionage operations were documented in 2024, when Sygnia warned of a campaign targeting F5 BIG-IP devices that operated undetected for three years.

Also in 2024, Cisco warned of a zero-day in NX-OS running on Nexus switches, which was exploited by Velvet Ant to gain access to targets.

Velvet Ant attack chain

The attack begins with the compromise of internet-facing servers, though the researchers don&rsquo;t mention the specific product or any vulnerability used.

Velvet Ant deployed a modified GS-Netcat reverse shell disguised as a legitimate system component that connected to a hardcoded relay domain, providing encrypted remote shell access.

The shell achieved persistence either via a malicious systemd service or through startup script modification.

Dissasembler showing the use of GS-Netcat<br>Source: Sygnia

Next, Velvet Ant installed a custom SOCKS5 proxy for network traffic tunneling, enabling it to reach internal systems that are not directly accessible from the internet.

The proxy ran as a daemon masquerading as &lsquo;smbd -D,&rsquo; using different filenames and ports on each host, and turning compromised servers into internal pivot points.

SOCKS5 proxy script<br>Source: Sygnia

The most interesting part of the attack was building a remote execution path into the isolated network.

To achieve this, Velvet Ant modified the configuration of a compromised internet-facing Nginx server to proxy specially crafted requests to a compromised backend server.

The backend server's Nginx configuration was also altered to forward requests to a FastCGI process (fcgiwrap) listening on a separate port.

The FastCGI wrapper acted as an execution bridge, processing requests and launching a custom binary named &lsquo;uptime.&rsquo;

The tool established SSH connections to systems within the isolated critical infrastructure network using parameters supplied in HTTP POST requests.

"By chaining these modifications, Velvet Ant established a remote-execution path into the segregated environment via simple HTTP requests, with no direct connection to the critical infrastructure network ever required." - Sygnia

Having established their access into the isolated environment, Velvet Ant shifted focus to long-term persistence and credential theft by targeting Linux Pluggable Authentication Modules (PAM), a set of libraries that let administrators set up methods to authenticate users.

The attackers replaced legitimate &lsquo;pam_unix.so&rsquo; modules with backdoored versions that accept hardcoded passwords and harvest user credentials.

Sygnia identified nine distinct variants of the malicious PAM module, each compiled in a separate build environment, indicating a well-resourced threat actor.

The researchers say that two of the malicious PAM modules stand out for acting as a backdoor only and for collecting credentials.

Velvet Ant actors also replaced OpenSSH components such as ssh, sshd, and scp with trojanized versions that captured credentials, logged commands entered during SSH sessions, and stored the collected data locally for future retrieval.

Sygnia says that by extending control to the authentication process by modifying the PAM and OpenSSH components, the threat actor had access to credentials as they were used in the target environment and could bypass the authentication flow.

"Administrative activity became fully observable: every login; every command executed across compromised hosts. Access was no longer tied to a specific foothold but embedded into the authentication process itself," the researchers explain.

This way, the hackers ensured their persistence despite password changes and session terminations, and reduced "the effectiveness of conventional containment measures."

Complex cleanup

Sygnia says even after discovering the compromise, remediating it and removing Velvet Ant from...

velvet network isolated sygnia hackers chinese

Related Articles