A newly identified Linux backdoor, known as ZQAgent, is providing hackers with sustained access to compromised servers. This malware executes commands, navigates directories, accesses files, and establishes network tunnels, all while disguising itself as a legitimate system process.
Deployment by ARTEX Framework
The ZQAgent backdoor is being deployed by ARTEX, an AI-driven hacking tool. Unlike typical ARTEX attacks that are swift and focused on data theft, this instance shows a deliberate attempt to maintain prolonged access within the network. NVISO analysts observed this behavior during a recent incident response in Belgium, with additional reports surfacing from Taiwan.
The persistence of this backdoor suggests a strategic decision by human operators rather than the autonomous actions of the AI framework alone.
Technical Insights into ZQAgent
NVISO’s investigation uncovered the initial sample in the directory /tmp/zqa/systemd-timesyncd, cleverly named to mimic a standard system service. All identified samples communicate with the same command servers, with IP address 37.122.150[.]15 and domain bloonspace[.]com, linked to a group tracked as FOG0003. Data from Team Cymru indicates that ZQAgent targets governmental and human rights entities in Asia.
Upon execution, ZQAgent relocates itself into an ephemeral file in memory, presenting as /memfd:a (deleted), then masquerades as the legitimate dbus-daemon tool, evading detection in process lists.
Persistence Mechanisms and Defensive Measures
ZQAgent ensures its persistence through systemd services and cron jobs, modifying file timestamps to complicate removal efforts. For root users, the binary is stored under /usr/lib/systemd/, with the service file located in /etc/systemd/system/. Non-root users find it within $HOME/.local/share/, with the service in $HOME/.config/systemd/user/.
To maintain operation post-logout, ZQAgent uses loginctl enable-linger for non-root users, complemented by a cron entry triggering at reboot. Detecting and mitigating such threats involves scrutinizing process lists for anomalies, blocking known malicious IPs and domains, and referring to NVISO’s YARA rules for threat detection.
The rise of memory-resident backdoors like ZQAgent highlights the evolving landscape of Linux malware. NVISO warns of the potential acceleration in ransomware and espionage activities driven by AI-enhanced tools, urging organizations to reinforce network defenses, segment networks, and enhance incident response capabilities.
