Guide | How To How to block WannaCry Ransomware

The associated guide may contain user-generated or external content.


Level 25
Thread author
Honorary Member
Top Poster
Malware Hunter
Jan 9, 2013
Here is a simple procedure to block WannaCry. Not the most elegant approach but just the basics. This is based on the wcry2 sample at the HUB. I wish I have different variants to test this procedure.

I'll be using RunBlock. It's a portable freeware.

  • Extract and run RunBlock.exe


  • Select option 2
  • Next click the + icon and add the following four files, or simply drag and drop those files.
  • Chances are you still don't have these files on your system. So we make dummy files.
  • Copy any small file in your desktop and create 3 more copies and rename them as:
    • @WannaDecryptor@.exe
    • taskdl.exe
    • taskse.exe
    • wcry2.exe
  • Drag and drop these files to RunBlock
  • Click the + icon or save your settings when you exit.
This will work as long as wcry2 uses the same filenames.

Running the sample and it works.


About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.