QNAP NAS and QSnatch
It has been reported in the last 24hours by numerous sources that around 7,000+ of the devices were infected on Thursday in numerous locations in Germany. The alert came from the CERT-Bund, Germany’s computer emergency response operation for incursions like this. Infected devices are running vulnerable outdated firmware, according to CERT-Bund. The attackers are remotely connected to affected QNAP devices using port forwarding actioned by the infection. CERT-Bund refers to a report from the National Cyber Security Centre of Finland, (NCSC-FI) posted the previous month. It is highlighted that NCSC-FI discovered the QSnatch malware in October after noticing an unusually high number of devices were attempting to communicate with specific command and control servers within their area. The malware was discovered through the Auto-reporter service, which sends automatic reports to network admins about security incidents detected in their networks for incidents such as this. Though this issue has been identified in an isolated area, this does not automatically mean that other regions and areas cannot be affected, so if you are concerned, please follow the steps at the bottom of this article to increase your system protection.
How Does QSnatch Effect your QNAP NAS?
NSCS-FI was uncertain how QNAP devices were initially infected, however, it found as devices became, malicious code was injected into the device’s firmware, giving the attacker a good foothold to compromise the device. The malware then uses domain generation algorithms to retrieve more malware from the attacker’s servers that is executed inside the OS with system rights. At this point, the device’s security tools are disabled and the machine is ransacked for credentials. For example, the QNAP MalwareRemover App is prevented from running and firmware updates are prevented, while the device’s usernames and passwords are sent to the attacker’s server. So users are being recommended to check that the malware protection applications taht are included with your QNAP NAS are running and your firmware is upto the latest version (QTS 4.4.1) at this time.
How Does QSnatch enter the QNAP NAS?
Additionally, the malware is modular (applied gradually) and hinges on allowing the attackers to remotely change and adapt the settings on an infected machine. The good news is that the malware can be removed, but this is a gradual process and below we have detailed the QNAP recommendations. QNAP’s advisory for a security flaw in its Linux-based QTS OS that it disclosed in February. QNAP noted it had received reports of malware that “prevents affected QNAP NAS devices from detecting updates for QTS, installing Malware Remover, and updating other applications.” The patch was designed to allow QTS to remove the malware. Of course, for the super, duper worried, you can always perform a full system reset, however this would be an extreme measure and heavily relies on a full off-system backup be in place. If this course of action is possible in your storage environment though, the NCSC-FI urges users to take several additional steps, such as the usual changing all passwords for all accounts on the device, checking for and removing unknown user accounts, getting the latest firmware updates, removing unknown apps and as a last precautionary measure, perhaps changing the static IP of your system in efforts to bounce activity. Regardless, it is highlight recommended (if you haven’t already) to install the QNAP MalwareRemover application from the App Center and then ramp up those security settings.
QNAP NAS Recommendation for Dealing with QSnatch
- Release date: November 1, 2019
- Security ID: NAS-201911-01
- Severity: High
- CVE identifier: N/A
- Affected products: QNAP NAS devices
Summary
The QSnatch malware is reportedly being used to target QNAP NAS devices. The National Cyber Security Center Finland (NCSC-FI) has received reports via the Autoreporter service in mid-October about infected devices attempting to communicate with specific command-and-control (C2) servers.
No other vulnerabilities have been found in the current investigation on the malware. QNAP is currently working on a new update for Malware Remover and will release the update as soon as possible. Please wait for further announcements.
If you have any questions regarding this issue, contact us through the QNAP Helpdesk.
Recommendation
To avoid attacks, we strongly recommend following the steps below:
- Update QTS to the latest version.
- Install and update Security Counselor to the latest version.
- Use a stronger admin password.
- Enable IP and account access protection to prevent brute force attacks.
- Disable SSH and Telnet connections if you are not using these services.
- Avoid using default port numbers 443 and 8080.
Installing the QTS Update
- Log on to QTS as administrator.
- Go to Control Panel > System > Firmware Update.
- Under Live Update, click Check for Update.
QTS downloads and installs the latest available update.
Installing and running the latest version of Security Counselor
- Log on to QTS as administrator.
- Open the App Center, and then click the Search icon.
A search box appears. - Type “Security Counselor”, and then press ENTER.
The Security Counselor application appears in the search results list. - Click Install or Update.
A confirmation message appears. - Click OK.
The application is installed or updated to the latest version. - Open Security Counselor.
- Click Start Scan.
Security Counselor scans the NAS for rules.
Changing the Device Password
- Log on to QTS as administrator.
- Click the profile picture on the QTS Task Bar.
The Options window opens. - Click Change Password.
- Specify the old password.
- Specify the new password.
QNAP recommends the following criteria to improve password strength:- Should be at least 8 characters in length
- Should include both uppercase and lowercase characters
- Should include at least one number and one special character
- Must not be the same as the username or the username reversed
- Must not include characters that are consecutively repeated three or more times
- Verify the new password.
- Click Apply.
Enabling IP and Account Access Protection
- Log on to QTS as administrator.
- Go to Control Panel > System > Security.
- Select IP Access Protection.
- Enable SSH and HTTP(s) access protection.
- Select SSH and HTTP(S).
- Specify time periods and the number of failed login attempts.
- Select Account Access Protection.
- Enable SSH and HTTP(s) access protection.
- Select SSH and HTTP(S).
- Specify time periods and the number of failed login attempts.
- Click Apply.
Disabling SSH and Telnet Connections
- Log on to QTS as administrator.
- Go to Control Panel > Network & File Services > Telnet/SSH.
- Deselect Allow Telnet connection.
- Deselect Allow SSH connection.
- Click Apply.
Changing the System Port Number
- Log on to QTS as administrator.
- Go to Control Panel > System > General Settings > System Administration.
- Specify a new system port number.
Warning: Do not use 443 or 8080. - Click Apply.