CERT Polska campaign alert that exploits exposed SSH from MikroTik for total control

Author: Published 6 min de lectura 16 reading

The images in this article were generated with artificial intelligence. How we publish

Between 2 and 5 September a campaign was detected that takes advantage of MikroTik routers with the Secure Shell (SSH) service exposed to the Internet for administrative control without authentication, according to the warning published by CERT Polska September 5. MikroTik, for its part, has published updates of RouterOS which, according to the supplier, correct the vulnerabilities used in the attacks. CERT Polska advises you to immediately update and review the settings for unauthorized changes.

What is known for certain: CERT Polska issued a public alert on an active operation that allows full administrative access to MikroTik devices with SSH accessible from the Internet. The observed attacks date from at least 2 September; the warning was published on 5 September. MikroTik has published versions of RouterOS marked as security corrections and its notes contain a version 7.23.5 that also includes a regressive correction of the DHCPv6.

CERT Polska campaign alert that exploits exposed SSH from MikroTik for total control
Image generated with IA.

What remains uncertain or unconfirmed: the available communiqués do not publicly identify how many devices have been compromised, who is behind the attacks, nor do they explicitly reveal the two vulnerabilities that CERT calls together "MikroTrick" or the exact way in which they are chained to give administrative control. Nor is it established in a verifiable manner whether any correction was published before the start of the campaign (and therefore whether or not there was an operating window like zeroday).

From a technical point of view, the operation described above depends on the SSH management port being accessible from the public network. According to CERT, the operating chain allows authentication to be skipped and to obtain full administrative privileges. That combination of faults - two interacting defects - is what the notice calls "MikroTrick," but fine technical details of the vector (e.g. CVE, memory vectors or logic involved) have not been published by the parties that have reported so far.

Who's at risk: MikroTik routers that run affected versions of RouterOS and have management services (especially SSH, but also WWW / WWW-SSL and bandwidth-test) exposed to the Internet or accessible from unreliable networks. Domestic devices with default configuration and default firewall rules intact They usually block public access to port of administration; however, if these rules have been changed, if someone opened ports for remote administration or if the router is in a public network, the risk is real.

The consequences of an administrative commitment to a router are practical and serious: persistence of the attacker in the device, creation of accounts and keys with privileges, modification of routes and firewall rules to intercept or redirect traffic, exfiltration of network information, pivot to internal systems and the possibility of using the router as a launch point for additional attacks. CERT emphasizes the presence of ops accounts with unknown high privileges and log entries with chains such as ssh: -2 @ as commitment indicators.

Immediate actions confirmed and recommended: 1) Update RouterOS to the versions that MikroTik has listed as a correction for these vulnerabilities, using only official downloads at https: / / mikrotik.com / download. 2) After the update, check the log and functionality of "Flagged" in RouterOS with the / system / device-mode / print command to detect inputs disabled by the start controls. 3) If it is not possible to update immediately, disable the services exposed or restrict their access only to reliable management networks: specifically SSH, WWW / WWW-SSL and bandwidth-test. CERT also recommends not to start TLS connections or use SSH customers integrated into a non-patched device, as some operations from the router itself could trigger operating vectors.

In addition to these temporary measures, if the configuration, the logs or the "Flagged" indicator suggest commitment, CERT advises the following forensic recovery and containment steps: preserve logs and configurations before any cleaning, not delete the "Flagged" state until evidence has been collected, isolate the network router, export and download configuration files according to the CERT preservation guide (the notice includes practical instructions), restore to factory values and rebuild the configuration from scratch with files and confidence parameters, and change all the credentials and keys that the device could have managed. IMPORTANT: do not restore a complete backup of a potentially compromised device, because that copy may contain back doors or malicious configurations.

Practical checks to do now: connect to the router (local or secure console) and review users, scripts and programmed tasks in search of unknown elements; check the log for atypical patterns and entries that show the creation of accounts with unusual prefixes or chains (CERT mentions "ssh: -2 @"); run / system / device-mode / print to see if RouterOS has marked suspicious elements, and verify firewall rules to ensure that management ports are not open to 0.0.0 / 0 or to the Internet without restrictions. If you notice signs of commitment, preserve the records and follow the isolation and restoration sequence indicated above.

CERT Polska campaign alert that exploits exposed SSH from MikroTik for total control
Image generated with IA.

For organizations, the threat underlines the need for centralized management policies and network segmentation: never expose Internet management ports without a VPN, MFA and IP-based access control; audit firewall and remote access configurations regularly; and have incident response processes that include evidence preservation and reconstruction procedures. For domestic users, the recommendation is to check whether the router maintains the default firewall configuration (if no rules have been changed) and, if there is any doubt or intentional remote access was detected, apply the update and follow the same verification routines.

Context and monitoring: CERT Polska and MikroTik have been contacted for public clarifications, and several specialized media have compared the time lines of the updates published with the date of the attacks; this comparison does not allow to conclude whether any of the arrangements were available before the intrusions began, so the condition of "zeroday" is not publicly verified. As long as there are unknowns about the origin of the explosion and its scope, the prudent position is to update as soon as possible, apply provisional mitigation and complete audit of any device that has been accessible from the Internet.

In summary: update RouterOS from the official site, block or restrict access to management ports if you cannot immediately update, examine and preserve logs and configurations in any sign of commitment and, if you detect intrusion, restore the factory and reconfigure the configuration safely. See the official sources of CERT Polska and MikroTik for published technical notes and binaries and follow the preservation instructions that CERT proposes before cleaning or restoring compromised devices.

Coverage

Related

More news on the same subject.