Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Security Management //

Patch Management

10/22/2018
09:35 AM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

Unpatched MikroTik Routers Vulnerable to Cryptomining Malware

An alert from Avast Threat Labs finds that a vast majority of MikroTik routers don't have the last firmware update to block a cryptomining campaign.

From September 19 to October 5, security firm Avast found itself blocking malicious cryptomining URLs, which were related to infected networks with MikroTik gateways, over 22.4 million times.

This translates to more than 362,616 users on 292,456 networks in the Avast network alone.

MikroTik routers were the target of CVE-2018-14847, which then spawned a still extant Coinhive cryptomining campaign. Avast found only 5% of the routers have the latest version of firmware -- 6.43.2 -- and 85% are still vulnerable to the CVE-2018-14847 WinBox exploit.

For its part, MikroTik has had mitigation instructions available since April.

The Avast Threat Labs took a deeper look at the malicious campaign and found that it uses the computing power of all devices that are connected to the infected router including computers, phones, and smart televisions.

(Source: Wikipedia)
(Source: Wikipedia)

Brazil, Poland and Indonesia were the top geographic areas affected by the campaign.

The malware uses several techniques to take control of the computing power and to ensure its persistence in the affected routers.

In scans, Avast found that one common denominator of that infected devices is that the port TCP/8080 -- which serves as a web proxy -- is open. Usually web proxies are opened from inside the perimeter to the outside. In the infected devices, an open port could be found on the router's internet interface.

Further, when the victim tries to get to a URL on an infected router through TCP port 80, the HTTP error code 403 ("Forbidden") shows on a custom error page.

This error page launches the cryptominer script into the browser, but then pushes the miner into the background. The victim browses on, not realizing they have even launched the malware.

This is a multistage campaign. It first downloads malware from a command-and-control server (C&C), after it has gained access to the router. It then deletes any previously scheduled jobs and scripts that run on the router including rules and schedules. It will repeatedly perform the download over time for persistence.

It then remaps ports for TELNET and SSH access protocols to unusual ports to prevent easy detection as well as to prevent others from connecting to the administration interface of the router.

The ports seem to be moved to TCP/10022 for SSH and TCP/10023 for TELNET ports.

One important step in the malware is that it that will add a firewall rule that redirects every attempt to connect to port TCP/80 (HTTP) to TCP/8080 (web proxy). This will redirect every request by a computer or other device inside the network through a web proxy to an unsecured webpage (HTTP).

And that is the takeaway point here. It's not just the router that is affected. It's whatever is connected through that router. If your ISP is infected upstream, for example, you will be affected as well.

There could be other malicious payloads besides miners waiting to be launched by this. It's a broad enough technique to hide a multitude of sins. Be aware and check for indicators of compromise.

Related posts:

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Commentary
Ransomware Is Not the Problem
Adam Shostack, Consultant, Entrepreneur, Technologist, Game Designer,  6/9/2021
Edge-DRsplash-11-edge-ask-the-experts
How Can I Test the Security of My Home-Office Employees' Routers?
John Bock, Senior Research Scientist,  6/7/2021
News
New Ransomware Group Claiming Connection to REvil Gang Surfaces
Jai Vijayan, Contributing Writer,  6/10/2021
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win an Amazon Gift Card! Click Here
Latest Comment: Zero Trust doesn't have to break your budget!
Current Issue
The State of Cybersecurity Incident Response
In this report learn how enterprises are building their incident response teams and processes, how they research potential compromises, how they respond to new breaches, and what tools and processes they use to remediate problems and improve their cyber defenses for the future.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2021-32693
PUBLISHED: 2021-06-17
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. A vulnerability related to firewall authentication is in Symfony starting with version 5.3.0 and prior to 5.3.2. When an application defines multiple firewalls, the token authenticated by one of the fir...
CVE-2021-32424
PUBLISHED: 2021-06-17
In TrendNet TW100-S4W1CA 2.3.32, due to a lack of proper session controls, a threat actor could make unauthorized changes to an affected router via a specially crafted web page. If an authenticated user were to interact with a malicious web page it could allow for a complete takeover of the router.
CVE-2021-32426
PUBLISHED: 2021-06-17
In TrendNet TW100-S4W1CA 2.3.32, it is possible to inject arbitrary JavaScript into the router's web interface via the "echo" command.
CVE-2021-32694
PUBLISHED: 2021-06-17
Nextcloud Android app is the Android client for Nextcloud. In versions prior to 3.15.1, a malicious application on the same device is possible to crash the Nextcloud Android Client due to an uncaught exception. The vulnerability is patched in version 3.15.1.
CVE-2021-32695
PUBLISHED: 2021-06-17
Nextcloud Android app is the Android client for Nextcloud. In versions prior to 3.16.1, a malicious app on the same device could have gotten access to the shared preferences of the Nextcloud Android application. This required user-interaction as a victim had to initiate the sharing flow and choose t...