The problem of unused and forgotten tools
February 11, 2022
The Sophos rapid response team was called in to help after a ransomware attack on a technology provider in December 2021. Forensic evidence showed that at least two different commercial remote access tools and an open-source Windows utility were used in the attack, which involved the lesser-known Midas ransomware. In their analysis, the experts also discovered evidence that the cybercriminals had been active on a domain controller and other computers in the network for at least two months before the ransomware occurred. This corresponds to a classic chain of events that could probably have been prevented with a consistent security strategy and zero trust.
A typical IT structure harbours risks
The attacked company operated an IT and security infrastructure that can be found thousands of times. Citrix was used to virtualise employee desktops. The network topology was organised flat, with the entire network accessible via the VPN. Most of the physical devices consisted of Windows servers running virtual machines. There was no segmentation of the network. All in all, a typical infrastructure that makes a cyber attack comparatively easy.
Course of the attack
The attack was carried out with multiple actions by the threat actors, creating Windows services to run multiple PowerShell scripts on one machine at a time, which in turn included other machines in their attack along the way. This allowed them to access any other machine, whether server or VM, via SMB protocol.
In a zero-trust environment, properly configured access controls could have prevented the attackers from using one compromised machine against another. Forensics was able to retrospectively date what is believed to be the first compromise to 13 October. It was not until 7 December that the attackers began distributing the ransomware binary to computers on the network. The intruders thus operated unnoticed for over two months. They executed commands, launched internal RDP connections, used already installed commercial remote access software, exfiltrated data to the cloud and moved files to and from one of the target's domain controllers.
The problem of unused and forgotten tools
Midas is not a prominent threat like some of the other ransomware families, but the attackers seemed to follow a familiar pattern throughout the incident. They used traditional Windows management tools and processes (e.g. PowerShell and the Deployment Image Servicing and Management Tool) as well as commercial remote access tools (AnyDesk and TeamViewer) that are less likely to trigger an anti-malware alert.
In this incident, the company's IT team had tested AnyDesk, TeamViewer and several other remote access tools. Although the tools were ultimately not used, they remain unused on various servers, which the cybercriminals use to their advantage. In some cases, they also used the open source tool Process Hacker to identify and bypass the endpoint security products used by the attacked company.
In this incident, the company's IT team had tested AnyDesk, TeamViewer and several other remote access tools. Although the tools were ultimately not used, they remain unused on various servers, which the cybercriminals use to their advantage. In some cases, they also used the open source tool Process Hacker to identify and bypass the endpoint security products used by the attacked company.
A security ecosystem with zero trust would have protected
"This is a good example of what can happen to a great many companies because they run their IT in this or a similar way. Shielding corporate networks mainly from the outside, in combination with an integrated security ecosystem, is certainly an effective protection method. However, even this perimeter-based approach has more and more gaps. Employees are increasingly working on the move, even via other networks. In addition, there are software-as-a-service (SaaS) applications, cloud platforms and cloud-based services. There is hardly a single corporate network any more in which all the systems integrated into it are secure. This is where the zero trust concept - trusting nothing and no one and checking everything - comes into play," says Michael Veit, security expert at Sophos.