Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

After ransomware enters through a VPN or RDP session, the safest course is to contain affected systems, preserve evidence where practical, determine the scope, remove the intruder’s access, and restore critical services only from verified, clean backups. Do not begin by rebooting every computer or paying the ransom. Coordinate the response through an out-of-band channel, involve qualified incident responders, and treat the remote-access path as an important lead—not proof that it was the attacker’s only route.

The sequence below follows current guidance from the Cybersecurity and Infrastructure Security Agency (CISA), the Multi-State Information Sharing and Analysis Center (MS-ISAC), the FBI, the U.S. Department of Health and Human Services, and the Australian Cyber Security Centre. It is an organizational response framework, not a substitute for an incident-specific investigation.

What should I do in the first minutes?

Containment comes first, but carry it out in a way that does not unnecessarily destroy evidence. Use a phone call or another out-of-band channel if possible; an attacker may be watching internal chat, email, or file shares.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Declare an incident and assign a coordinator. Notify the people responsible for security, infrastructure, business continuity, legal matters, communications, and executive decisions. Record times, observations, and decisions as they occur.
  2. Identify the known affected systems. Note ransom messages, encrypted shares, unusual account activity, disconnected devices, and any systems that are still operating normally. Do not assume that a machine without a ransom note is clean.
  3. Isolate immediately. Disconnect affected computers and servers from wired and wireless networks. If several systems or subnets are involved, consider taking the network offline at the switch level, as recommended in the CISA StopRansomware Guide.
  4. Protect unaffected segments. Separate critical services, backups, administrative networks, and identity infrastructure from the suspected intrusion while responders map dependencies.
  5. Preserve what you can. Capture relevant alerts, ransom notes, volatile logs, and timestamps according to your incident-response plan. Avoid logging into compromised accounts from a potentially compromised workstation.

Isolation may interrupt business operations, but delaying it can let ransomware move laterally or encrypt additional shares. CISA warns that attackers may monitor activity and react if they realize that defenders are preparing containment, which is another reason to coordinate quietly and quickly.

Do not power off systems by default. If a device can be disconnected, disconnect it. If the network cannot be shut down and a system cannot be isolated, powering it down may be necessary to stop spread. However, shutdown can remove volatile-memory evidence and infection artifacts, so treat it as a last resort and involve incident responders when available. The CISA–MS-ISAC Joint Ransomware Guide gives the same containment-versus-evidence warning.

How do I establish the scope without guessing?

Build a written, time-stamped picture of what is known, what is suspected, and what remains unknown. Scope determines whether you can isolate a few endpoints or must treat the environment as broadly compromised.

Create an incident inventory

  • List encrypted, suspicious, isolated, and apparently unaffected systems separately.
  • Record hostnames, IP addresses, users, business owners, locations, operating systems, and critical dependencies.
  • Preserve ransom notes, file extensions, malware filenames, screenshots, and the exact time each symptom was observed.
  • Record which accounts were used, disabled, reset, or suspected of compromise.
  • Note whether domain controllers, identity providers, virtualization hosts, hypervisors, storage systems, backup servers, or management tools were reachable.

An unaffected-looking server may still contain an attacker’s persistence mechanism. Keep it under observation while responders review authentication, endpoint, DNS, firewall, VPN, RDP, and administrative-tool logs. Avoid mass cleanup that overwrites the timeline before evidence is collected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prioritize services and dependencies

Triage systems by business and safety criticality, not by the order in which users report problems. A critical application may depend on identity services, DNS, storage, licensing, network routing, or a database that is also affected. The joint CISA–MS-ISAC guidance recommends documenting the situation, prioritizing critical services and dependencies, and engaging the appropriate internal and external response teams.

Keep a separate list of systems that appear unaffected. That list helps responders protect recovery infrastructure and prevents teams from repeatedly investigating the same hosts while more urgent systems wait.

How should I investigate the suspected VPN or RDP entry path?

Use the remote-access path to focus the investigation, but do not assume it was the only entry or persistence route. Attackers may have used stolen credentials, a vulnerable service, a second remote tool, or an already-established foothold.

Review VPN activity

  • Export authentication and connection logs before retention periods or automated rotation erase them.
  • Look for unusual source addresses, countries, times, devices, session lengths, concurrent sessions, and impossible-travel patterns.
  • Compare successful and failed logins, administrative actions, configuration changes, and new account or group membership.
  • Identify whether a compromised account had access to file shares, servers, backup systems, or remote-management tools.
  • Check whether the VPN appliance, concentrator, plug-ins, and authentication services were patched at the time of the incident.

Preserve the original log files and a working copy for analysis. Record the system clock and time zone used by each source so investigators can build an accurate timeline.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Review RDP activity

  • Examine Windows security events and RDP session records for unusual logons, source addresses, account use, and session times.
  • Search for repeated failed attempts followed by a successful login, new local administrators, and unexpected remote sessions.
  • Check firewall and router logs for exposed RDP ports and changes to port-forwarding rules.
  • Look for lateral movement from one internal host to another after the first remote session.

RDP has been identified by CISA and the Australian Cyber Security Centre as a major ransomware initial-infection vector. Their joint advisory on top malware strains recommends securing remote access and maintaining offline backups.

How do I remove the attacker’s access?

Do this before returning systems to normal operation. Recovery is unsafe if an attacker can still authenticate, create accounts, or reach administrative tools.

  1. Disable or quarantine compromised accounts. Reset credentials from a trusted administrative workstation, beginning with privileged, VPN, RDP, service, and backup accounts. Revoke active sessions and tokens where the platform supports it.
  2. Verify persistence is gone. Review scheduled tasks, services, startup items, remote-management agents, firewall rules, newly created users, group memberships, and changes to identity or VPN configuration.
  3. Patch the remote-access stack. Prioritize VPN appliances, remote-access software, operating systems, internet-facing services, and authentication components. Confirm that patches are compatible with the recovery plan.
  4. Require strong MFA. The CISA, FBI, and HHS Hive ransomware advisory recommends phishing-resistant MFA for VPN, webmail, critical systems, and privileged accounts where possible.
  5. Restrict allowed sources. Limit VPN and RDP access to approved users, devices, networks, and originating locations. Remove broad “anywhere on the internet” exposure.
  6. Disable unused access. Turn off unused remote-access ports, protocols, accounts, and services. If external RDP is operationally required, place it behind a VPN or another authenticated and secured access mechanism rather than exposing it directly.
  7. Add monitoring and lockouts. Log remote-access and RDP attempts, alert on unusual behavior, and use account lockouts or equivalent controls to impede brute-force attempts without creating an unmanageable denial-of-service risk.

Do not declare the environment clean merely because a password was changed. Ask responders to verify that no alternate account, backdoor, scheduled task, remote tool, or stolen token still provides access. The Hive advisory specifically calls for verifying that actors no longer have access before normal operations resume.

How should I recover systems and data?

Recover in an order that protects people, essential operations, and the integrity of the environment. Restoration is not simply copying files back; it is a controlled rebuild after confirming that the intruder cannot return.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Confirm scope and containment. Keep compromised systems isolated until responders determine which hosts can be cleaned, reimaged, or rebuilt.
  2. Validate backups. Check that backup sets predate the intrusion where possible, are complete, and have not been encrypted, altered, or contaminated. A backup device by itself does not remove an active attacker from the network.
  3. Choose a trusted recovery point. Document why a particular backup was selected and preserve other copies for investigation.
  4. Rebuild the foundation first. Restore identity, DNS, networking, virtualization, storage, and security controls in a controlled sequence. Change credentials and keys that may have been exposed.
  5. Restore critical applications and dependencies. Validate data, permissions, integrations, and monitoring before reconnecting each service.
  6. Reconnect gradually. Use network segmentation, heightened logging, endpoint protection, and approval checkpoints. Watch for renewed encryption, suspicious authentication, or unexpected outbound traffic.
  7. Document lessons and harden controls. Update the incident-response plan, remote-access rules, backup design, patch process, and staff procedures based on evidence from the incident.

CISA and its partners recommend maintaining offline backups and regularly testing restoration procedures as a preparedness measure. Offline means that ransomware cannot reach the backup through ordinary production credentials or network paths; it does not mean that every removable device is automatically safe. Test restoration in a controlled environment and protect backup administrator accounts with strong authentication and limited privileges.

Should I pay the ransom?

The CISA–MS-ISAC guide states: “The authoring organizations do not recommend paying ransom.” Payment does not guarantee that decryption will work, that stolen data will not be disclosed, or that the attacker has been removed from the environment.

Any payment decision has potential legal, sanctions, insurance, contractual, and law-enforcement implications. Involve qualified legal counsel, insurers, incident responders, and relevant authorities before discussing or transferring funds. Preserve communications and wallet or payment instructions as evidence, and do not treat a criminal’s promise as a recovery control.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What should an incident report contain?

A useful report lets technical teams, leadership, counsel, insurers, and authorities act from the same facts. Include:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • When the first symptom was observed and when containment actions began.
  • Systems, accounts, networks, and data known or suspected to be affected.
  • How VPN or RDP access was identified, including source addresses, users, devices, and relevant log events.
  • Isolation, shutdown, credential-reset, patching, and restoration decisions, with the person and time for each.
  • Evidence preserved, where it is stored, and who has handled it.
  • Backup sets considered, integrity checks performed, and restoration results.
  • Outstanding risks, unresolved access questions, notification obligations, and the criteria for returning to normal operations.

Use a secure, access-controlled location for the report. Assume ordinary email and collaboration accounts may be monitored until responders establish otherwise.

How can I prevent a repeat VPN or RDP ransomware entry?

Prevention is a combination of exposure reduction, identity protection, monitoring, and recoverability:

  • Remove internet exposure for RDP and unused remote services.
  • Limit VPN and RDP access by user, device, source network, and business need.
  • Use phishing-resistant MFA for remote access, administrators, webmail, and critical systems where feasible.
  • Patch VPN appliances, remote-access software, operating systems, and exposed services on a defined schedule, with emergency handling for actively exploited flaws.
  • Log and review remote sessions, failed logins, configuration changes, and privileged activity.
  • Use lockouts, rate limits, and alerts to slow brute-force attempts.
  • Segment user, server, administrative, backup, and recovery networks.
  • Maintain offline backups, protect backup credentials separately, and test restoration regularly.
  • Exercise the incident-response plan so staff know whom to call and how to communicate if internal systems are untrusted.

These controls reduce both the chance of an initial compromise and the damage an attacker can cause after obtaining one account.

Frequently Asked Questions

Should I disconnect the VPN before investigating the ransomware?

Usually, yes: stop the suspected access path as part of coordinated containment, but preserve its configuration and logs first when doing so will not allow further spread. Make the change from a trusted administrative path and record exactly when sessions, accounts, and tokens were revoked.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I restore from the newest backup to get back online faster?

Not safely without checking its date, completeness, and integrity. The newest backup may have been created after the attacker gained access or may contain encrypted data; responders should select and validate a recovery point before restoration.

What if the ransom note is on only one computer?

Treat the single note as an indicator, not proof that only one computer is affected. Check identity, file-share, VPN, RDP, endpoint, firewall, and backup logs for lateral movement and persistence before reconnecting that machine.

Is external RDP ever acceptable?

Directly exposing RDP to the internet creates avoidable risk. If remote RDP is operationally necessary, restrict it to approved sources and place it behind a VPN or another authenticated, secured access mechanism, with MFA, logging, patching, and lockout controls.

Who should decide whether regulators or customers must be notified?

That decision depends on the affected data, jurisdiction, contracts, and sector rules. Engage qualified counsel and the appropriate authorities early; technical responders should preserve the facts needed for a defensible notification analysis.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of December 6, 2026 11:14 am GMT.