⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

ZQAgent Linux Backdoor Turns ARTEX Intrusions into Persistent Access | Alireza Bolbolabadi - Red Team Security
LOADING

ZQAgent Linux Backdoor Turns ARTEX Intrusions into Persistent Access

Executive Summary

The Linux backdoor ZQAgent gives attackers durable, interactive control of compromised servers. According to the supplied reporting, the malware was deployed after a host had already been compromised by ARTEX, an AI-driven hacking framework. Most observed ARTEX intrusions focused on rapid credential theft, but this case appears to represent a deliberate shift toward long-term access.

Once active, ZQAgent can execute operating-system commands, open interactive shells, manipulate files, inspect and terminate processes, manage TCP and UDP connections, and run programs directly from memory. It also masquerades as the legitimate dbus-daemon, encrypts its configuration and command-and-control traffic, changes timestamps on files it creates, and establishes persistence through both systemd and cron.

The incident is not a vulnerability disclosure: no CVE, affected product version, Linux distribution, kernel version, or initial-access technique is identified. The practical risk nevertheless remains high on affected hosts because ZQAgent turns temporary compromise into a persistent foothold capable of supporting espionage and follow-on operations.

From Rapid Credential Theft to Persistent Access

NVISO reportedly discovered the first sample during an incident-response engagement in Belgium, while similar samples were reported from Taiwan. The activity is associated with the tracked cluster FOG0003. Team Cymru network data reportedly links ZQAgent use in Asia against government and human-rights organizations.

The available intelligence does not establish the operators’ physical location or identify a definitive threat actor. It also does not explain how the attackers initially reached the affected servers. Their first sample was located at:

/tmp/zqa/systemd-timesyncd

The filename was chosen to resemble a normal time service. This indicates that the campaign relied on established host access to deploy a post-compromise implant rather than exploiting a documented software flaw through ZQAgent itself.

The reporting describes most ARTEX intrusions as short-lived operations aimed at stealing passwords. ZQAgent suggests a different operational goal. According to NVISO, the persistence objective was likely directed by a human operator rather than chosen autonomously by the AI framework. A human-directed implant offers interactive control, making it suitable for intelligence collection, network pivoting, preparation for ransomware, or prolonged access to sensitive systems.

Remote-Control Capabilities

ZQAgent uses numbered operation codes for different tasks. According to the supplied intelligence, its operator can:

  • Change the working directory and list directory contents.

  • Move, rename, delete, create, and manipulate files and directories.

  • Read the first 2048 bytes of arbitrary files accessible to the compromised account.

  • Determine the current user and view or terminate processes.

  • Execute commands through /bin/sh -c.

  • Open an interactive shell through /bin/bash, falling back to /bin/sh if Bash is unavailable.

  • Manage TCP and UDP connections, including functionality that can support tunneling or proxying.

  • Run programs directly from memory.

The fixed 2048-byte file read is not a meaningful limit on broader data access. With shell access, the operator can invoke ordinary Linux utilities to retrieve entire files, inspect application data, search for credentials, and transfer information. The impact depends on the privileges available to the compromised account; a root-level implant would have substantially greater reach than a user-level deployment.

Command Infrastructure

The supplied reporting identifies the following command-and-control infrastructure:

  • 37.122.150[.]15

  • bloonspace[.]com

Known samples reportedly communicate with the same infrastructure. These indicators are useful for immediate hunting and containment, but they should not be treated as a complete permanent blocklist because operators can rotate infrastructure.

ZQAgent reportedly applies multiple encryption layers to command-and-control traffic, including variants of ChaCha20. Its configuration also remains encrypted and is decrypted only briefly when required. These measures can defeat simple signature matching, packet inspection, and static configuration analysis.

Process Masquerading and Memory-Only Execution

After launch, ZQAgent moves into a temporary file held only in memory. Its process appears as:

/memfd:a (deleted)

It then starts as a detached process and copies the name and command line of the legitimate dbus-daemon. A casual review of a process list may therefore show what appears to be an ordinary service.

That disguise is useful but imperfect. Defenders can validate suspicious dbus-daemon instances by comparing the displayed identity with the executable path, inode, parent process, package ownership, service metadata, and expected process tree. A copied command line does not make a process the genuine service.

The memory-only execution model also means that disk-only scanning may fail to find the active implant. Volatile memory, process metadata, and live network telemetry are therefore important during investigations.

Persistence Through systemd and cron

ZQAgent is designed to survive reboots through two separate mechanisms.

For root-level execution, it reportedly copies the binary and service configuration into:

  • /usr/lib/systemd/

  • /etc/systemd/system/

For a normal user, it uses:

  • $HOME/.local/share/

  • $HOME/.config/systemd/user/

If HOME is not set, the fallback location is:

/tmp/.local/share/

The systemd service uses the description:

“Device event journal daemon”

It restarts every 30 seconds if stopped, making simple process termination an unreliable containment action. For user-level deployments, ZQAgent runs loginctl enable-linger, allowing the service to continue after the user logs out.

The malware also creates an @reboot cron entry that launches the binary with output redirected to /dev/null. Its combination of user-level and root-level installation paths means it can operate without administrative privileges, although a privileged compromise provides wider access.

ZQAgent also changes timestamps on files it creates. This may obstruct timeline-based forensic analysis and make the implant appear older than it is. Timestamps should therefore be corroborated with service metadata, package records, file content, process activity, and network history.

Practical Impact

For an affected organization, the central risk is sustained attacker access rather than a removable malicious file. ZQAgent can support:

  • Theft of credentials, tokens, configuration, and application data.

  • Collection of sensitive files accessible to the compromised identity.

  • Command execution under the affected account’s privileges.

  • Use of the server as a pivot into other reachable systems.

  • Tunneling or proxy activity through the compromised host.

  • Staging, modification, or deletion of files.

  • Continued access across operating-system reboots.

  • Concealment among normal system processes.

The reporting does not establish whether any specific product is vulnerable, whether all ARTEX campaigns use ZQAgent, or whether the listed infrastructure remains active. It also does not identify the initial intrusion vector. Those gaps limit attribution and forecasting, but they do not reduce the impact on hosts where the implant has executed.

Detection and Investigation Priorities

Detection should combine multiple evidence sources rather than rely on a single filename or process name.

High-value hunting pivots include:

  • Processes displaying /memfd:a (deleted).

  • Apparent dbus-daemon processes with mismatched executable paths, metadata, or parent processes.

  • Unauthorized systemd units using the description “Device event journal daemon”.

  • Services that restart every 30 seconds.

  • Unexpected use of loginctl enable-linger.

  • New @reboot cron entries that launch binaries from user-writable or temporary locations and redirect output to /dev/null.

  • Files under /tmp/zqa/, /tmp/.local/share/, $HOME/.local/share/, /usr/lib/systemd/, /etc/systemd/system/, and $HOME/.config/systemd/user/ that lack legitimate provenance.

  • Connections involving 37.122.150[.]15 or bloonspace[.]com in DNS, proxy, firewall, NetFlow, and endpoint records.

  • Recurring encrypted traffic associated with the known infrastructure.

The presence of a similarly named file or process is not conclusive by itself because the malware deliberately mimics trusted components. High-confidence identification requires correlating file, service, process, network, and temporal evidence.

Because the implant can run from memory and encrypt its configuration, volatile evidence should be collected before containment whenever operationally safe. Relevant artifacts include the binary, decrypted configuration if it can be recovered, process metadata, systemd and cron records, authentication logs, and network telemetry. These artifacts may reveal additional infrastructure and affected hosts.

Expert Insight

ZQAgent illustrates an important distinction between vulnerability risk and post-compromise risk. The absence of a CVE does not make the malware low impact; it means the implant acts after another weakness, stolen credential, or access path has already provided a foothold. Once deployed, ZQAgent substantially increases the operator’s dwell time and control.

The use of ARTEX also illustrates how AI-assisted intrusion frameworks can extend an operator’s reach without changing the fundamental human decisions behind an intrusion. The reported shift from fast credential theft to persistent interactive access suggests that the framework delivered the implant, while a human selected the longer-term objective.

ZQAgent’s combination of user- and root-level persistence, memory execution, trusted-process masquerading, encrypted traffic, and timestamp manipulation creates a layered detection problem. Defenders need to correlate identity, service, endpoint, and network evidence before and during containment. Terminating the visible process alone may trigger its 30-second restart or leave another persistence path intact.

Actionable Recommendations

  1. Restrict outbound traffic to 37.122.150[.]15 and bloonspace[.]com at relevant network and proxy controls, while continuing to monitor for infrastructure rotation.

  1. Hunt for /memfd:a (deleted), anomalous dbus-daemon processes, the “Device event journal daemon” description, suspicious 30-second service restarts, loginctl enable-linger, and unexpected @reboot cron entries.

  1. Review systemd system and user units, cron schedules, and the documented ZQAgent installation paths across Linux servers.

  1. Collect volatile memory and process data early during investigations; disk-only scanning may miss an active memory-resident implant.

  1. Preserve the sample, configuration, service definitions, cron entries, logs, and network telemetry before containment to support scoping and infrastructure discovery.

  1. Rotate credentials, SSH keys, API tokens, application secrets, and cloud credentials that were accessible to the compromised account.

  1. Rebuild affected hosts from a trusted image when appropriate, because process replacement, encrypted configuration, timestamp changes, and multiple persistence mechanisms reduce confidence in in-place cleanup.

  1. Apply least privilege, network segmentation, egress filtering, centralized telemetry, and rapid isolation to reduce both initial exposure and post-compromise reach.

منابع

·
← اخبار