Ransomware After Exposed Remote Access
Identifying details have been removed. This is an anonymised account of a verified investigation. It is not a customer case study.
Ransomware encrypted a workstation after attackers brute-forced an internet-exposed remote desktop and a shared administrative account. A line-of-business server was planted with the same malware but never restarted, so encryption never ran there. Backups, not antivirus, prevented operational collapse.
Brute-force authentication begins against an internet-exposed remote desktop on a central server.
First successful login to a shared administrative account from a network inconsistent with the organisation's operations.
Another successful remote login to the same account, shortly before malware appears on the line-of-business server.
Ransomware dropped on the application server. A firewall exception and autorun persistence are created. The server is left running, so the payload stays dormant.
The same self-propagating malware reaches a workstation without antivirus. Files on that machine are encrypted when it is in use.
Further overseas logins to the shared account. Brute-force volume drops after access has already been obtained.
What was reported
An organisation with more than eighty endpoints asked Pratikar to investigate a ransomware incident. Files on at least one workstation had been encrypted. There was a real possibility that line-of-business systems would follow. An existing backup strategy is what prevented the incident from becoming an operational collapse.
The question was not only how to clean the affected machines. It was how the attackers got in, whether other systems still carried the payload, and which weaknesses would let the same path be reused.
Scope
Investigation covered the internal network, a line-of-business application server, a central server that many workstations relied on, and an affected endpoint. Malware samples were collected from more than one host. Authentication logs from the central server became the primary evidence for reconstructing access.
What the evidence showed
The perimeter was weaker than the malware suggested. Remote desktop on a core server was reachable from the internet. The network's public address disclosed domain and mail-server information and advertised services that did not need to be visible. Address assignment was dynamic, which later made it harder to tie activity to a physical machine. There was no dedicated network security device in front of the environment.
The application server was running an unsupported operating system that no longer received vendor security updates. A ransomware binary had been dropped on it. The malware created a firewall exception for outbound communication and an autorun registry entry so it would launch on restart. The server had not been restarted after the drop, so the payload remained dormant. Security logs on that host did not show the unusual activity that the authentication logs on the central server later made obvious.
That dormancy mattered. The malware was self-propagating: once activated on one machine, it spread to other weak systems on the network. Because it had not yet run on the application server, that host was not the source of the outbreak — it was a waiting second victim.
The central server told a clearer story. Remote desktop was not only enabled; it was reachable from outside the organisation. In a three-day window the logs recorded more than twenty thousand failed login attempts — several every minute. A shared administrative account, used by staff to install software, was the account that eventually succeeded. Failed attempts on that account outnumbered successful ones by a wide margin. Two distinct external attackers appeared in the traffic. One of them obtained the password. After that success, the brute-force volume fell away.
Successful logins to the shared account came from overseas networks that did not match normal operations. The login that mattered occurred about an hour before malware appeared on the application server, and about two hours before the workstation was encrypted. The sequence is what closed the insider-activation hypothesis for practical purposes: external access, then planting, then encryption on a machine that actually started the payload.
The installed antivirus did not detect the sample at the time of the drop. It was a new variant. Signature-based tools lag planned attacks. Two of the affected machines also did not have antivirus installed before the incident.
Root cause
This was not a novel exploit against the line-of-business application. It was a login problem that became a ransomware problem.
The password on a privileged account was weak. That account was shared. Remote desktop on a server that many systems depended on was exposed to the internet. Attackers brute-forced common usernames, then targeted accounts that existed in the environment, until the shared administrative password worked. They signed in, disabled antivirus where they could, and planted ransomware that would encrypt files and spread. Systems without current protection were the ones that suffered.
An insider could, in theory, have activated malware already present on the network. The logs did not support that reading. They did show why the question is hard to answer cleanly when staff exchange usernames and passwords: individual accountability disappears, and so does attribution.
What limited the damage
Backups allowed the organisation to restore rather than negotiate. The application server's unpaid reboot was luck, not a control — the autorun entry was already waiting. Cleaning the dormant malware and the registry persistence removed that particular risk. It did not close the path that delivered it.
What made the investigation harder
Dynamic addressing meant a computer's identity on the network changed with restart order, so reconstructing which person used which machine was unreliable. Shared credentials meant a successful administrative login could not be tied to a person. One affected server had been formatted before restoration; logs had been extracted first, which is what made the brute-force reconstruction possible. Without that extraction, the authentication story would have been gone.
Lessons
Ransomware often starts as a credential and exposure problem. The binary on disk is evidence of an incident that began at the login prompt.
A machine that has not been restarted is not a clean machine. Autorun persistence is a delayed detonation, not an all-clear.
Tens of thousands of failed logins in a short window are a signal. A successful login from an unexpected location after that volume is the pivot, not background noise.
Shared administrator accounts make both prevention and investigation worse. They widen the blast radius of a guessed password and erase the ability to say who did what.
Antivirus that has never seen a sample will not save an internet-facing remote desktop. Backups, unique privileged accounts, and not exposing remote access to the world are the controls that decided the outcome here.
Recommendations that still apply
Do not expose remote desktop to the internet. Put a network security control in front of the environment and require a VPN or equivalent before administrative access.
Stop using a shared privileged account for daily software installation. Give people named accounts, restrict elevation, and disable unused logins — including those left behind when staff leave.
Treat authentication logging as investigation infrastructure: retain it, protect it, and alert on brute-force volume and success-after-failure from unexpected locations.
Inventory systems with addresses that can be mapped to a physical machine. Dynamic addressing without documentation is an investigation failure waiting for an incident.
Upgrade unsupported operating systems. Application allow-listing reduces the value of a dropped binary. Staff need a way to report suspected malware that does not depend on a single reactive support account.
None of those recommendations require identifying the organisation. They are the same weaknesses this investigation keeps finding when ransomware is treated as a malware event instead of an access event.
Related services
Incident Investigation
Explore Incident Investigation →Malware Analysis
Explore Investigations →Breach Remediation
Explore Breach Remediation →Want to learn this through practical investigation? Explore Pratikar training →