China-Linked Hackers Backdoored Linux Login Systems for Nearly a Decade

A China-affiliated cyber espionage group, identified as Velvet Ant, has covertly infiltrated Linux login systems over the past decade by embedding backdoors directly into critical authentication components. This sophisticated operation involved modifying the Pluggable Authentication Module (PAM) and OpenSSH software, which are fundamental to user authentication processes in Linux environments.

Velvet Ant’s strategy centered on replacing legitimate PAM modules with compromised versions. These altered modules granted unauthorized access through secret passwords and clandestinely recorded legitimate user credentials during standard login procedures. Similarly, the group tampered with OpenSSH binaries to log user credentials and monitor command inputs, with the capability to disable this logging when necessary.

The initial breach traces back to 2016, targeting networks without direct internet connectivity. To navigate this challenge, the attackers utilized internet-facing systems as intermediaries, facilitating access to isolated segments. By embedding themselves within the authentication infrastructure, Velvet Ant effectively bypassed conventional security measures, rendering typical containment strategies, such as password resets and session terminations, ineffective.

This method of compromising trusted system components is not unprecedented for Velvet Ant. In 2024, the group exploited vulnerabilities in F5 BIG-IP appliances, transforming them into internal command servers. Additionally, they leveraged a flaw in Cisco’s NX-OS software (CVE-2024-20399) to implant backdoors in network switches, further demonstrating their adeptness at targeting overlooked yet critical infrastructure elements.

Addressing such deep-seated infiltrations necessitates a proactive and meticulous approach:

  • Integrity Monitoring: Continuously monitor PAM and OpenSSH binaries for unauthorized modifications, implementing alerts for any detected changes.
  • Baseline Comparisons: Regularly compare current system files against known secure versions to identify discrepancies indicative of compromise.
  • Careful Remediation: Prior to resetting credentials, ensure the removal of backdoors to prevent immediate re-compromise. Test any system replacements in controlled environments to avoid operational disruptions.

Furthermore, organizations should apply patches for known vulnerabilities, such as CVE-2024-20399 in Cisco Nexus devices, and monitor F5 appliances for unexpected outbound communications.

This incident underscores the critical need for comprehensive security practices that extend beyond conventional monitoring. Regular integrity checks of core system components, including authentication mechanisms, are essential to detect and mitigate sophisticated threats that exploit trusted infrastructure.