A sophisticated Chinese hacking group, Evasive Panda (DaggerFly), has discovered a new method to compromise Linux-based network devices. By exploiting the Secure Shell (SSH) daemon, the group installs malware that enables prolonged access to infected systems, allowing them to execute covert tasks and steal sensitive data. This alarming development underscores the increasing complexity of cyber threats and the vulnerabilities present in network infrastructures.
The Attack Strategy: ELF/Sshdinjector.A!tr
According to Bleeping Computer, Evasive Panda has been using a malicious tool called ELF/Sshdinjector.A!tr in targeted attacks since mid-November 2024.
While the exact initial entry point remains unclear, the attack begins once the hackers gain access to a Linux-based network device.
They first assess whether the system has already been compromised and if they possess root privileges. If both conditions are met, they deploy multiple malicious files onto the device.
A critical element of the attack is a fraudulent SSH library file, libsssdh.so, which is injected into the system’s SSH framework. This backdoor enables the attackers to issue commands and extract data discreetly. Additionally, files such as mainpasteheader and selfrecoverheader assist in maintaining persistent access.
Full System Takeover
By compromising the SSH library, the attackers gain extensive control over the infected device. They can execute up to 15 different commands, including:
- Gathering system details such as hostnames, MAC addresses, and hardware specifications.
- Accessing confidential files, including /etc/shadow (which contains password hashes) and /var/log/dmesg (system logs).
- Uploading, downloading, renaming, and listing files and directories.
- Initiating a remote shell for direct system access.
This level of infiltration allows hackers to monitor processes, execute remote commands, and leverage the compromised system for launching further attacks.
Network Security Risks and Implications
The ability of Evasive Panda to hijack SSH daemons highlights the critical importance of securing network devices. While SSH is generally considered a secure protocol, poor configuration or outdated software can turn it into a major security risk. This attack underscores the need for advanced monitoring tools capable of detecting and responding to suspicious activity in real time.
How to Protect Against These Attacks
To mitigate the risk posed by such threats, organizations should implement the following security measures:
Deploy intrusion detection systems (IDS) to identify and block malicious network traffic before an attack can escalate.
Regularly update and patch network devices to fix known vulnerabilities.
Enable multi-factor authentication (MFA) for SSH access to strengthen login security.
Monitor SSH logs for unusual activity, including unexpected root access attempts and unauthorized file modifications.
Source: Bleeping Computer

