Skip to content
Tech & Cybersecurity

What to Do If Your Computer Is Infected with Ransomware

Save

Ransomware locks your files and demands payment. Learn immediate steps to contain the damage, recover your data, and avoid making things worse.

3 min read โ€ข Written by Mohamed IDBRAHIM โ€ข Reviewed by Michael Osei (CFA, Financial Adviser) โ€ข โ€ข โ€ข 263 reads
What to Do If Your Computer Is Infected with Ransomware

Quick answer

5 steps โ€” read this before anything else

  1. 1

    Disconnect the infected computer from all networks (Wi-Fi, Ethernet, Bluetooth) immediately.

  2. 2

    Do not pay the ransom or contact the attackers.

  3. 3

    Report the incident to your local law enforcement and relevant authorities.

  4. 4

    Restore your system and files from a clean backup if available.

  5. 5

    Run a full antivirus scan and change passwords from a different, clean device.

Warning

Do not pay the ransom. It does not guarantee file recovery and may encourage further attacks. Disconnect the infected device from all networks immediately.

Ransomware is malicious software that encrypts your files and demands payment for the decryption key. If you suspect an infection, act quickly to limit the damage and protect your data.

What is happening

Ransomware typically spreads through phishing emails, malicious downloads, or exploited software vulnerabilities. Once active, it encrypts files and may display a ransom note with instructions to pay in cryptocurrency. The attackers may also threaten to leak stolen data.

Emergency warning

If you are facing a ransomware attack on a work or organizational computer, immediately alert your IT or security team. For personal devices, follow the steps below. Never pay the ransom: payment does not guarantee file recovery and may encourage further attacks.

What to do first

  1. Disconnect from all networks. Unplug Ethernet cables, turn off Wi-Fi and Bluetooth. This prevents the ransomware from spreading to other devices or communicating with attackers.
  2. Do not power off or reboot unless instructed by a professional. Some ransomware leaves traces in memory that can help recovery.
  3. Take photos of the ransom note and any error messages for reporting purposes.
  4. Use a different, clean device to research the ransomware strain and find official decryption tools (e.g., from No More Ransom).

What NOT to do

  • Do not pay the ransom. It funds criminals and does not guarantee recovery.
  • Do not connect external drives or USB sticks to the infected machine; they may become encrypted too.
  • Do not delete files or run untrusted "fix" tools you find online; they may be malware.
  • Do not ignore the infection and continue using the device; it can spread.

Recovery steps

  1. Check for backups. If you have a recent, clean backup (offline or cloud), you can restore your files after wiping the infected drive.
  2. Use a reputable antivirus rescue disk to scan and remove the malware. Follow official instructions from your security software provider.
  3. If no backup exists, consult a professional data recovery service. Do not attempt to decrypt files yourself without expert guidance.
  4. After recovery, change all passwords from a clean device, especially for email, banking, and social media. Enable two-factor authentication.

When to seek professional help

Contact a cybersecurity professional or your IT department if you are unsure how to proceed, if the infection is on a work device, or if sensitive data may have been compromised. For personal devices, law enforcement can provide guidance and may connect you with resources.

How to prevent future infections

  • Keep your operating system and software updated.
  • Use reputable antivirus software and enable ransomware protection.
  • Back up important data regularly and keep at least one copy offline.
  • Be cautious with email attachments and links; verify senders before clicking.
  • Enable two-factor authentication on important accounts.

Acting fast and avoiding payment are key to minimizing harm. For more information, visit the No More Ransom project website.

This is general information and not a substitute for professional cybersecurity advice.

Sources & references

Based on public official guidance published with this guide

Spotted an error? Report it โ€” we correct factual mistakes promptly.

Tech & Cybersecurity 3 min read

What to Do If Your Smart Home Devices Are Hacked?

If your smart home devices are hacked, you need to act quickly to secure your network and personal data. Follow these steps to regain control.

Read the guide
Tech & Cybersecurity 3 min read

What to Do If You Receive a Scam Email

Receiving a phishing or scam email can be alarming. Follow these immediate steps to secure your accounts, report the message, and protect your personal information.

Read the guide
Tech & Cybersecurity 3 min read

What to Do in Case of a Website Hack

Learn how to quarantine your site, change credentials, clean malware, and restore your web application safely after a security breach.

Read the guide
Tech & Cybersecurity 3 min read

What to Do if You Lose All Your Data

Discover immediate, safe steps to recover lost files and prevent permanent data loss across your devices and storage drives.

Read the guide

Checklists, decision guides, scenarios and quizzes for the same situation.

Based on your reads

Recommended for you

Guides that match your recent interests.

Cookies & advertising

We use cookies to measure traffic and show personalized ads through Google AdSense. You can accept or decline. Learn more