Skip to main content

Hit by ransomware? Isolate affected systems now. Do not reboot or reformat.

SheMo Noransom舍末无勒

Victim Q&A · Aftermath

Why do we keep getting hit by ransomware, and how do we stop it for good?

Short answer

Repeat infections are rarely bad luck; the previous incident was almost always left unfinished. The real entry point was never found or never closed, accounts, scheduled tasks, remote-access tools or web shells left by the attacker are still there, credentials were only partly changed, or systems were restored from backups that already contained the backdoor. Environments that paid, or whose access was resold, also get revisited. The fix follows an order: forensics to find the real entry point, a rebuild-or-clean decision, closing the entry and removing persistence, a full credential reset, then verified hardening and ongoing monitoring.

Key points

  • Getting the data back is not the same as closing the incident: the attacker's entry point, accounts and foothold may all still be in place.
  • Four root causes dominate: an open entry point, leftover persistence, incompletely rotated credentials, and restores from backdoored backups.
  • Attackers return: in Semperis's 2024 survey, 74% of respondents attacked for ransom in the previous 12 months were attacked more than once, many within a week.
  • Access changes hands: Microsoft notes that attackers who are not fully evicted sometimes monetise the same network again with different malware or ransomware payloads.
  • The fix is evidence-driven: find the entry point, decide rebuild or clean, reset credentials in order, then verify hardening and keep monitoring.

In this order

What to do now

  1. Treat the incident as still active

    When encryption reappears, isolate the recently restored systems and the hosts around them straight away, and stop reconnecting anything else; first-hour priorities are in what to do after a ransomware attack. Keep this round's note, samples and logs alongside the previous incident's material - whether the family, the note and the source IPs match is the first clue to the root cause.

  2. Investigate both incidents together

    Work backwards from the second incident: when did the earliest anomalous logon or exploit request happen, from where, using which account - and was that before or after the previous recovery finished? Key evidence: firewall and VPN logs, remote desktop logon records, web and database logs, and EDR alerts.

  3. Hunt for persistence everywhere

    Check every host for new local and domain accounts, changes to administrator group membership, scheduled tasks, services, startup entries, Group Policy scripts, new files in web directories, and installation and connection records for remote-access tools such as AnyDesk, Sunlogin or ToDesk. Preserve evidence first, remove second.

  4. Decide: rebuild or clean

    Hosts where the attacker held administrator rights should in principle be rebuilt, with only checked business data migrated back; where domain administrator rights fell, forest recovery or a clean new domain has to be assessed.

  5. Reset every credential, in order

    Once the entry point is closed and persistence removed, work from a known-clean device: top-privilege accounts, then krbtgt (twice), service accounts, local administrators, remote access and edge devices, third-party and external platforms, and finally every user.

  6. Harden, and verify each item works

    Close internet exposure, enforce MFA on remote access, patch the exploited flaw and rebuild an offline backup - then confirm each item from the outside rather than trusting the configuration.

  7. Monitor for re-entry after go-live

    Alert on new accounts, remote logons out of hours or from unfamiliar sources, new services and scheduled tasks, remote-access tool connections, shadow copy deletion and security software being disabled - and name who reviews those alerts every day.

Avoid making it worse

Do not

  • Do not treat "the files are back" as the end of the incident, and do not reconnect systems before the entry point is understood.
  • Do not rebuild only the machine that was encrypted - the foothold may sit on an unencrypted PC, a VPN account, an edge device or a third-party support channel.
  • Do not change passwords before persistence is removed, do not change only some of them, and never change them from a machine that may still be watched.
  • Do not roll back to the latest full-system backup or VM snapshot as is. Confirm it predates the first intrusion, then inspect its accounts, scheduled tasks and remote-access tools in an isolated segment.
  • Do not simply delete suspicious accounts or remote-access tools when you find them. Screenshot, export records and preserve evidence first, or the entry point and scope can never be established.
  • Do not contact the attackers to ask them to stop, or pay for a promise not to return; a record of payment only makes you a higher-priority target.

Why is the attacker still there after the data comes back?

Recovery answers "is the data back?". Incident response has to answer "is the attacker out, and can they get back in?". Environments that keep getting hit are almost always stuck on one or more of the following.

The entry point was never found - or the wrong one was. The route reused is usually the same one: remote desktop and database ports exposed to the internet, VPNs without MFA, and edge devices or public applications left unpatched; the full list is under "most common entry points" in our FAQ. Subtler is closing the wrong door: the case is closed as a weak password and the password changed, while the real way in was a flaw in business software or an edge device. The Guanjiapo port 211 attack chain published in 2026, for example, leaves no anomalous logon in SQL Server's login audit (see Guanjiapo or Suda account sets encrypted).

Persistence was not fully removed. An attacker's first priority after getting in is often not encryption but making sure they can come back. Microsoft lists new backdoor accounts, local or in Active Directory, and legitimate remote management tools such as AnyDesk, TeamViewer and Splashtop among common persistence methods, and 360's April 2026 report documents some Weaxor builds brute-forcing a database, planting AnyDesk, and then deploying ransomware by hand. A joint advisory from CISA, the NSA and MS-ISAC notes that actors from cybercriminals to state-sponsored groups use legitimate remote monitoring and management software as a backdoor for persistence and control - and because it is not malware, antivirus will not flag it. The same goes for scheduled tasks, services, Group Policy scripts and web shells in site directories; long-dwelling remote access trojans such as Silver Fox can also be used to drop ransomware later.

Credentials were not all rotated. Attackers routinely harvest credentials from memory and dump password hashes, taking far more than the password of the machine that was encrypted. Change only the administrator password, and service accounts, the database sa account, VPN logins, third-party support accounts and browser-saved passwords are all still the old ones. In a domain where the attacker held domain administrator rights and krbtgt was not rotated properly, forged Kerberos tickets remain valid.

Systems were restored from backdoored backups. There is usually a dwell period between entry and encryption, and full-system backups, VM snapshots and images taken during it contain the backdoor accounts, scheduled tasks and remote-access tools. Rolling back to "the latest" full backup restores the foothold along with everything else.

Is it the same crew coming back, or was our access resold?

Either is possible, and it does not have to be one or the other.

The same crew returning. An organisation that has been attacked - and especially one that paid - has already shown it can be entered and will pay. Public surveys point the same way:

SurveyPublishedKey figures
Semperis ransomware risk study (nearly 1,000 IT and security professionals in the US, UK, France and Germany)July 202474% of respondents attacked for ransom in the previous 12 months were attacked more than once, many within a week
Cybereason, Ransomware: The True Cost to Business (1,456 security professionals)June 202280% of organisations that paid were hit by ransomware a second time; 68% said the second attack came in less than a month

These are questionnaire surveys of respondents outside China and cannot be mapped directly onto any one organisation, but the conclusion is plain: paying does not buy safety - see should we pay the ransom.

Access resold or shared. The ransomware economy is highly specialised. Microsoft describes access brokers who compromise exposed weak-password RDP and unpatched systems en masse and "bank" them for later sale, and ransomware-as-a-service affiliates who switch between payloads and, if not successfully evicted, sometimes monetise the same network again with different malware or ransomware. The FBI's September 2023 industry notification documented "dual ransomware attacks": two different ransomware variants deployed against the same victim within 10 days, most of them within 48 hours of each other.

So a different ransom note the second time does not mean the original problem was solved, and an identical one does not mean it is merely the first attack finishing. For the defender the conclusion is the same: until the entry point, persistence and credentials are dealt with, anyone can come back in.

How do we find the real entry point?

When the first investigation missed the entry point, the usual reasons are that hosts were reinstalled before evidence was taken, logging was off or retention too short, only the encrypted machine was examined, or the most plausible entry point was written up as fact. A second incident is, perversely, an opportunity: what the two attacks have in common is often the real way in.

Three things matter most:

  • Trace the timeline back from the second incident. Find the earliest anomalous logon or exploit request and establish whether it came before or after the previous recovery. Before means the attacker never left; after means the entry point stayed open or credentials had leaked.
  • Line up network and host evidence. Align firewall port-forwarding and VPN logs, remote logon events in the Windows security log (4624 / 4625), web access logs, database error logs and EDR alerts by time to pin down the first account and source.
  • Inventory every path to the machine. Not only internet-facing ports but third-party support channels, remote-access tools, compromised endpoints on the same segment and vendor accounts.

Where evidence is insufficient, the report should say "undetermined" and every plausible entry point should be dealt with, rather than closing the case on the likeliest one. That is how our forensics work is written up: conclusions are labelled confirmed, highly likely or undetermined.

Clean or rebuild - how do we decide?

The deciding question is what privileges the attacker held, and whether cleanliness can be proven - not how inconvenient a rebuild would be.

SituationRecommendation
The attacker held administrator rights on a hostRebuild that host in principle, migrating back only checked business data
Many endpoints affectedReimage in bulk from a standard clean image - faster and more reliable than checking one by one
Domain administrator rights were obtained and full credential export cannot be ruled outAssess forest recovery from trusted offline backups, or a clean new domain with migration
Limited privileges, intact artefacts, and evidence that bounds the impactCleaning and hardening is viable, but the conclusion belongs in the report with evidence behind it

When restoring, restore data rather than systems wherever possible: load databases, files and necessary configuration onto freshly built systems instead of rolling back full-system backups or VM snapshots taken after the intrusion began. Where a full rollback is unavoidable, use the forensic timeline to confirm the backup predates the first intrusion, then inspect its accounts, scheduled tasks, services and remote-access tools in an isolated segment.

For recovery order and route selection when domain controllers fell, see domain-wide encryption.

In what order should credentials be reset?

Two preconditions. Change credentials only after the entry point is closed and persistence removed, or the new passwords will simply be stolen again. And work from a device confirmed to be clean, never from a machine that may still be watched. CISA's #StopRansomware Guide likewise advises resetting passwords for all affected systems once the environment has been fully cleaned and rebuilt.

Suggested order:

  1. Top-privilege accounts: domain administrators, enterprise administrators and break-glass accounts, removing unexpected members from administrative groups at the same time.
  2. krbtgt: reset twice per Microsoft's forest recovery guidance, waiting longer than the maximum ticket lifetime between resets (10 hours by default), so tickets the attacker forged or stole stop working.
  3. Service accounts: those used by databases, backup software, virtualisation platforms, ERP and application connection strings - verifying each business function after the change.
  4. Local administrators: random and unique per machine (a LAPS-style solution works), with no reuse.
  5. Remote access and edge devices: VPN, remote desktop, firewall and switch management passwords, plus accounts and device authorisations for remote-access tools.
  6. Third parties and external platforms: outsourced support and vendor accounts, cloud consoles, corporate mail, domain registrar and DNS management.
  7. Every user: forced password change with MFA enabled, and departed or dormant accounts disabled.

A small business without a domain can compress this to: Windows administrator, database sa, remote desktop and remote-access tool accounts, router and firewall, business software admin, then mail and online banking. The principle does not change.

How much hardening and monitoring counts as actually fixed?

The five things to finish shortly after recovery - rotate every credential, close unnecessary internet exposure, enforce MFA on remote access, confirm backdoors are gone, rebuild an offline backup and test-restore it - and how to tell whether hardening really took effect are already covered in our FAQ, so they are not repeated here. An environment that keeps getting hit needs three things on top:

  • Verification, not "it was configured". Confirm from the internet that ports are genuinely closed, test MFA channel by channel, and spot-check patch versions and service restart times. Many second incidents trace back to something everyone believed was already shut.
  • Watching for the return. Attackers who come back usually log in before they encrypt. Alert on, and name someone to review daily: new accounts or administrator group changes, remote logons out of hours or from unfamiliar sources, new services and scheduled tasks, remote-access tool installs or outbound connections, shadow copy deletion, security software being disabled, and unusual bulk outbound traffic.
  • Backups designed for a next time. At least one offline or immutable copy, backup credentials isolated from production, and restore points reaching back far enough - to before the first intrusion.

Structured exposure reduction, account governance and item-by-item verification are what security hardening delivers. We report each item's status and test result; we do not promise hardening makes you immune, but it means a next incident does not leave you without options.

Emergency response

Data already encrypted? Stop and let an engineer look first

We do not pay ransoms and we do not negotiate with attackers. Engineers run a free assessment first, then propose a recovery plan and a firm quote.

Related questions

Related solutions

FAQ

Follow-up questions

  • We paid the ransom - why are we being extorted again?

    At best a ransom buys a key; it does not close the entry point or remove the backdoor. In Cybereason's 2022 survey, 80% of organisations that paid were hit by ransomware a second time, and 68% said the second attack came within a month - and paying also proves to the attackers that you have budget. We do not pay ransoms or negotiate on anyone's behalf; putting the effort into forensics, eradication and hardening is far more controllable than trusting the attacker's word.

  • The two ransom notes were different - is it a different group?

    Possibly, but that does not tell you where the problem lies. Ransomware-as-a-service affiliates switch between payloads and access gets resold; the FBI's 2023 notification documented victims hit by two different ransomware variants within 10 days. The family name determines the decryption and recovery options - the root cause still has to be traced through the entry point, persistence and credentials.

  • A full antivirus scan came back clean - do we still need to investigate?

    Yes. Much of what attackers leave behind is not malware at all: new administrator accounts, legitimate remote-access software, system commands called from scheduled tasks, Group Policy scripts - none of it triggers antivirus. The joint CISA and NSA advisory states plainly that legitimate remote management software is used as a backdoor for persistence and control. The investigation has to review accounts, tasks, services, installed programs and logon records, not just the scan result.

  • We are a small company without a domain - does all this apply?

    The scope is much smaller; the principles are not. Find and close the entry point; rebuild the affected server and migrate back only business data; change the Windows administrator, database sa, remote desktop and remote-access tool, router, business software and mail passwords to distinct new ones; and keep at least one offline backup. A familiar pattern in small businesses that keep getting hit is port 3389 or a database port still open with only one password changed.

  • What can we check ourselves before responders arrive?

    Without deleting or changing anything, record: new local and domain accounts and administrator group members; unfamiliar entries in scheduled tasks and services; remote-access software among installed programs; port forwards on the router and firewall; and recent remote desktop logons. Screenshot and export anything unusual for the forensic team, and do not rush to delete it.