Nexcorium
Nexcorium is a Mirai-based, multi-architecture Linux IoT botnet malware family observed in campaigns exploiting CVE-2024-3721, an unauthenticated OS command injection vulnerability affecting TBK DVR-4104 and DVR-4216 digital video recorders. Fortinet linked the activity to a suspected actor it calls "Nexus Team," based on exploit traffic containing the custom HTTP header "X-Hacked-By: Nexus Team – Exploited By Erratic." After exploitation of the vulnerable /device.rsp endpoint and manipulation of request arguments, attackers deliver a downloader script named "dvr," which retrieves architecture-specific payloads such as "nexuscorp" binaries for ARM, MIPS/MIPS R3000, and x86-64 systems, sets execution permissions, and launches them. On execution, samples were reported to display the message "nexuscorp has taken control." Nexcorium shares core Mirai-style architecture, including XOR-encoded configuration data, watchdog, scanner, and attacker/DDoS modules, and command-and-control communications used to receive operator instructions and launch attacks. Reported DDoS capabilities include UDP flood, TCP SYN flood, TCP ACK flood, TCP generic flood, TCP PSH flood, TCP URG flood, SMTP flood, UDP blast flood, and VSE query flood; the malware also supports commands such as "killattk" and "botkill." Nexcorium establishes persistence through multiple mechanisms: modifying /etc/inittab, creating or updating /etc/rc.local, creating /etc/systemd/system/persist.service, adding crontab entries, and in some reporting copying itself to /usr/local/bin/sysd. It includes a watchdog process, performs self-integrity checks using FNV-1a hashing of its executable via /proc/self/exe, can replicate itself under a new filename if tampering is detected, and deletes its original binary from the current execution path to hinder analysis. For propagation, Nexcorium uses Telnet brute forcing with a hard-coded list of common/default credentials, verifies shell access with commands such as system, shell, sh, and cat /bin/busybox, determines victim architecture, and deploys the appropriate binary. It also contains embedded exploit code for CVE-2017-17215 targeting Huawei HG532 devices, and reporting also notes targeting of older Huawei devices and end-of-life TP-Link routers as part of broader mixed-device botnet expansion. The malware’s primary purpose is to conscript vulnerable IoT devices into a botnet for large-scale distributed denial-of-service attacks. High-confidence indicators mentioned in the content include the C2 domain r3brqw3d.b0ats.top, associated IPs 84.200.87.36 and 176.65.148.186, and the following SHA-256 hashes: 696aeb6321313919f0a41a520e6fa715450bbfb271a9add1e54efe16484a9c35, 37132e804ccb3fc4ba1f72205da70c3d7a6e66b43178707a9d8ee1156d815c21, e4789416c35b345e75c023a8c07c207c79937c6a5444e1c29d85d18d2f660d8c, 0b510f93f47590791626d2fa74ddd62ba6eb8a5a5bb7b8476c0ceffc7be94ebe, 9b805585c457811d2c5c5664ede9ee869b53e3c9999100505d7ee8de7f855fdf, 95d1eb12d58206319c514c7240d058c512bb22b31f6ea22ed8be3ae44305c9f7, 7c01d5b53861cd34e10a79fdea16dcf08bce9c78ed72abd6d6f3e9ce75a24734, 838e35b62a6b38675e467301166cdcc54f98d528fe43d56936caeffec88ac696, 2ccf23b8165e8c05899aa7ba4755b896ebf1d20d3b701cffdc768482486b0a74, 29404df12a7723ce46c8b199c88a808aa315dd8ff8fd1e06a34ccd3d16f4553b, b1274de00a7f3d7ab9792ec3456e9d5bf057738666f34183f1d72060e2d4f678, 721c7cb2109ec97c14413cb8b58ddce0ecf0c1f13f22ee4f72eed79b57592cf5, and 89dae116c77b0035277d39dfe01043624427c119ddee8883a3ba54a42a6ae400.
Associated vulnerabilities
2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Meanwhile, Fortinet’s FortiGuard Labs detailed a parallel campaign by a group calling itself “Nexus Team,” which has been targeting TBK digital video recorders (DVNs) via CVE-2024-3721. Their malware, called “Nexcorium”, is more sophisticated.
Techniques & procedures
31 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
If the Telnet login is successful, it attempts to obtain a shell, set up persistence using crontab and systemd service, and connect to an external server to await commands for launching DDoS attacks over UDP, TCP, and SMTP.
To expand its reach, Nexcorium utilizes a comprehensive list of default passwords and brute-force techniques to compromise other network-connected devices, aiming to bolster its botnet for launching DDoS attacks.
It employs robust persistence mechanisms, including self-replication across multiple folders and automatic task setup, making it difficult to remove.
The same threat actor was also observed probing TP-Link Archer AX21 devices via CVE-2023-1389 and ZTE ZXV10 H108L routers with a publicly available exploit. Meanwhile, Fortinet’s FortiGuard Labs detailed a parallel campaign by a group calling itself “Nexus Team,” which has been targeting TBK digital video recorders (DVNs) via CVE-2024-3721.
Execution
5 techniques
Execution
Nexcorium ensures persistence through multiple methods: it modifies /etc/inittab to restart automatically, updates /etc/rc.local for startup execution, creates a systemd service, and adds a cron job.
Finally, it creates a scheduled task using crontab to ensure it runs after reboot.
Attackers exploit CVE-2024-3721, a command injection flaw, to compromise devices and turn them into bots for DDoS attacks.
The initial exploitation of CVE-2024-3721 retrieves a downloader script...
A recent campaign abused CVE-2024-3721 in TBK DVR devices to deliver the Nexcorium Mirai variant.
Persistence
9 techniques
Persistence
It updates /etc/inittab to make sure the process restarts if it stops. It creates or updates /etc/rc.local to ensure execution at system startup.
It creates or updates /etc/rc.local to ensure execution at system startup.
Nexcorium ensures persistence through multiple methods: it modifies /etc/inittab to restart automatically, updates /etc/rc.local for startup execution, creates a systemd service, and adds a cron job.
Finally, it creates a scheduled task using crontab to ensure it runs after reboot.
If the Telnet login is successful, it attempts to obtain a shell, set up persistence using crontab and systemd service, and connect to an external server to await commands for launching DDoS attacks over UDP, TCP, and SMTP.
To expand its reach, Nexcorium utilizes a comprehensive list of default passwords and brute-force techniques to compromise other network-connected devices, aiming to bolster its botnet for launching DDoS attacks.
Nexcorium ensures persistence through multiple methods: it modifies /etc/inittab to restart automatically, updates /etc/rc.local for startup execution, creates a systemd service, and adds a cron job.
It then checks common system paths (e.g., /bin/systemctl, /usr/bin/systemctl, and /etc/system/system) and creates a service file at /etc/systemd/system/persist.service, enabling it to run automatically at startup.
It updates /etc/inittab to make sure the process restarts if it stops... It creates or updates /etc/rc.local to ensure execution at system startup... creates a service file at /etc/systemd/system/persist.service, enabling it to run automatically at startup.
Privilege Escalation
9 techniques
Privilege Escalation
It updates /etc/inittab to make sure the process restarts if it stops. It creates or updates /etc/rc.local to ensure execution at system startup.
It creates or updates /etc/rc.local to ensure execution at system startup.
Nexcorium ensures persistence through multiple methods: it modifies /etc/inittab to restart automatically, updates /etc/rc.local for startup execution, creates a systemd service, and adds a cron job.
Finally, it creates a scheduled task using crontab to ensure it runs after reboot.
If the Telnet login is successful, it attempts to obtain a shell, set up persistence using crontab and systemd service, and connect to an external server to await commands for launching DDoS attacks over UDP, TCP, and SMTP.
To expand its reach, Nexcorium utilizes a comprehensive list of default passwords and brute-force techniques to compromise other network-connected devices, aiming to bolster its botnet for launching DDoS attacks.
Nexcorium ensures persistence through multiple methods: it modifies /etc/inittab to restart automatically, updates /etc/rc.local for startup execution, creates a systemd service, and adds a cron job.
It then checks common system paths (e.g., /bin/systemctl, /usr/bin/systemctl, and /etc/system/system) and creates a service file at /etc/systemd/system/persist.service, enabling it to run automatically at startup.
It updates /etc/inittab to make sure the process restarts if it stops... It creates or updates /etc/rc.local to ensure execution at system startup... creates a service file at /etc/systemd/system/persist.service, enabling it to run automatically at startup.
Stealth
9 techniques
Stealth
The malware first performs XOR decoding to extract its embedded configuration, which includes C2 server domain and port, persistence-related shell commands, a hard-coded brute-force wordlist, DDoS attack commands retrieved from the C2 server, and embedded exploit code.
If it is not running from /usr/local/bin/, it copies itself to /usr/local/bin/sysd and proceeds to establish persistence through multiple mechanisms.
If the file on disk has been altered or is no longer readable, perhaps due to a partial deletion or antivirus interference, the malware dynamically copies itself under a new filename to restore its own presence.
And, after doing all that, it deletes its original binary from the current execution path to evade and frustrate analysis.
If the Telnet login is successful, it attempts to obtain a shell, set up persistence using crontab and systemd service, and connect to an external server to await commands for launching DDoS attacks over UDP, TCP, and SMTP.
To expand its reach, Nexcorium utilizes a comprehensive list of default passwords and brute-force techniques to compromise other network-connected devices, aiming to bolster its botnet for launching DDoS attacks.
Once inside a system, it verifies the device architecture, executes commands, and establishes persistence by copying itself into system directories.
If Nexcorium successfully logs in, it executes commands to check if it gets a shell, including system, shell, sh, and cat /bin/busybox.
Once Nexcorium executes the command, it will parse and verify the victim host’s architecture using its hard-coded list.
Defense Impairment
1 technique
Defense Impairment
The script sets the permissions of the retrieved malware to 777 and runs it... If the original file is missing, unreadable, or its hash does not match, the malware creates a duplicate under a different filename and sets the file permissions to 700.
Credential Access
1 technique
Credential Access
On top of that, Nexcorium launches aggressive Telnet-based brute-force attacks against other devices on the same network and beyond, using a hardcoded list of common default credentials to self-propagate without any additional input from the attacker.
Discovery
2 techniques
Discovery
The malware further strengthens its position by running a watchdog process that continuously monitors whether the main payload process is still active, automatically restarting it if something interrupts its execution.
Once Nexcorium executes the command, it will parse and verify the victim host’s architecture using its hard-coded list.
Lateral Movement
4 techniques
Lateral Movement
The malware launches Telnet-based brute-force attacks against other networked hardware using a hardcoded list of common and default credentials.
On top of that, Nexcorium launches aggressive Telnet-based brute-force attacks against other devices on the same network and beyond...
It employs robust persistence mechanisms, including self-replication across multiple folders and automatic task setup, making it difficult to remove.
Researchers also observed Nexcorium targeting end-of-life TP-Link Wi-Fi routers, exploiting CVE-2017-17215 to widen the pool of infected devices.
Command and Control
3 techniques
Command and Control
Indicators of Compromise (IOC) List Domains/URLs : r3brqw3d.b0ats.top IP Address : 84.200.87.36 176.65.148.186
The malware also includes an exploit for CVE-2017-17215 to target Huawei HG532 devices in the network and incorporates a list of hard-coded usernames and passwords for use in brute-force attacks targeting the victim's hosts by opening a Telnet connection.
The initial exploitation of CVE-2024-3721 retrieves a downloader script, which then identifies the underlying Linux system’s processor architecture and pulls the correct compiled binary variant of the malware for that specific hardware.
Impact
1 technique
Impact
The malware is capable of making the compromised devices engage in DDoS attacks via multiple attack methods.
Observables
16 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.