As they say, prevention is better than cure, so its better safe than sorry!
In this case, there is currently “no cure” so we are only left with prevention.
WannaCrypt/WannaCry/Wcry is a new ransomware which exploits the latest SMB vulnerability (MS17-010) found in Windows machines.
More details about this exploit and how it spreads are available everywhere so lets jump to the prevention part.
Since this code spreads via SMB which uses port 445, we have to close port 445 on our Windows systems.
Below are steps to close down port 445 and prevent WannaCrypt ransomware infection:
Disable NetBIOS
First of all you need to disable NetBIOS (port 137,138 and 139).
Uninstall SMB
SMB uses port 139 and sometimes 445 so we need to uninstall this service.
These steps are only meant to prevent WannaCrypt to infect your system. If the system is already infected, isolate the system from network so it doesn’t infect other machines on your network and wait until the *cure* arrives.
Best of luck 🙂