Security Experts:

Connect with us

Hi, what are you looking for?


Malware & Threats

Worm Uses ShellShock to Infect QNAP Network Storage Systems

Researchers have uncovered a worm that’s designed to plant backdoors on QNAP network-attached storage (NAS) devices. The malware is distributed through the exploitation of the GNU Bash vulnerability known as ShellShock.

Researchers have uncovered a worm that’s designed to plant backdoors on QNAP network-attached storage (NAS) devices. The malware is distributed through the exploitation of the GNU Bash vulnerability known as ShellShock.

Cybercriminals started exploiting ShellShock to gain full access to the contents of NAS devices developed by Taiwan-based QNAP shortly after the existence of the vulnerability came to light. The vendor released updates to address the flaw in its product at the beginning of October, but because the patches are not easy to apply many systems remain vulnerable.

The SANS Institute reports that a worm is currently spreading among QNAP devices, which run an embedded Linux operating system, by exploiting the Bash vulnerability.

“The attack targets a QNAP CGI script, ‘/cgi-bin/authLogin.cgi’, a well known vector for Shellshock on QNAP devices,” Johannes Ullrich of the SANS Internet Storm Center wrote in a blog post. “This script is called during login, and reachable without authentication. The exploit is then used to launch a simple shell script that will download and execute a number of additional pieces of malware.”

One of the worm’s malicious components is designed for click fraud and it targets the online advertisement network JuiceADV.

The threat also sets up backdoors on infected devices by creating an SSH server on port 26, by adding a user (named “request“) with administrator privileges, and by copying some CGI scripts with backdoor functionality to the “cgi-bin” directory. The malware modifies the “” file in order to run the backdoors on reboot.

Researchers have also noticed that the worm sets the DNS server on the infected machine to, which is actually Google’s DNS server. It’s possible that the attackers do this in order to get a more reliable DNS server, since as Ullrich explains, QNAP devices sometime use internal DNS servers which aren’t fully recursive. By using this method, the attackers might also be trying to evade potential logging mechanisms.

The worm is dangerous because it abuses infected systems to look for other vulnerable devices on the network, Ullrich noted.

Interestingly, the malware also patches the ShellShock vulnerability on infected devices by downloading the applying the security updates from QNAP. Experts believe the threat does this to prevent additional exploitation.

NAS devices are also a tempting target for ransomware attacks. This summer, a piece of ransomware dubbed SynoLocker was used to infect Synology NAS servers by exploiting a vulnerability that was patched in December 2013.

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.


Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.


Expert Insights

Related Content


The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.


No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.


A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Malware & Threats

Threat actors are increasingly abusing Microsoft OneNote documents to deliver malware in both targeted and spray-and-pray campaigns.

Malware & Threats

Microsoft plans to improve the protection of Office users by blocking XLL add-ins from the internet.

Malware & Threats

A vulnerability affecting IBM’s Aspera Faspex file transfer solution, tracked as CVE-2022-47986, has been exploited in attacks.


More than 3,800 servers around the world have been compromised in recent ESXiArgs ransomware attacks, which also include an improved process.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.