We suggest you take the following countermeasures:
1. Upgrade your TOS to the latest version;
2. Install good anti-virus software on your computer, TNAS device and router to help you detect and resist malicious threats;
3. Disable port forwarding on your router. After disabling this function, you will not be able to access TNAS through the TNAS device bound to the DDNS external network.
4. Disable the UPnP function on your TNAS. After disabling, your PC, multimedia box, TV and other devices may not be able to access TNAS through UPnP protocol, please use DLNA, NFS, SMB protocol to access TNAS instead.
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/4d/98/4f6fe393ac3db2aa297029872cc2e66e.jpg)
5. Disable RDP, SSH and Telnet when not in use;
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/8d/e8/c2b14f708d57cc954be7c3db8dc201de.jpg)
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/b3/cc/524037647860510ab4e590205b7be60d.jpg)
6. Change the default port of FTP. When you use the FTP protocol to access, please pay attention to bring the port, such as ftp://192.168.0.1:1990.
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/ba/1d/03fcbcdecd0e3f3dda2c01d5abc087a4.jpg)
7. Set a high security level password for all users;
8. Disable the system default admin account, re-create a new admin account, and set an advanced password;
Note: For versions after TOS 4.2.09, you can set the administrator account without using the default admin username when installing the system. If it was upgraded from a version before TOS 4.2.09, you need to reset the system configuration, then you can customize the user name.
9. Enable firewall and only allow trusted IP addresses and ports to access your device;
a. Go to Control Panel > General Settings > Security > Firewall.
b. Create a firewall rule and choose the operation of allow or deny.
c. Fill in the IP range you allow or deny access to. If you fill in the network you want to deny access to, please fill in the subnet address correctly, otherwise it may cause your existing devices to be unable to access TNAS.
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/eb/0e/4a22ed0aadd042655336188a2ca5dd19.jpg)
10. Avoid using default port numbers 5443 for https and 8181 for http. After changing, please enter IP:Port in the browser address bar, such as 192.168.0.1:8186.
11. Enable automatic IP block in TOS Control Panel to block IP addresses with too many failed login attempts;
![Image](https://forum.terra-master.com/en/ext/dmzx/imageupload/img-files/59/12/ad/387a1b53a6b0a8310ca9ce9ef6905e7f.jpg)
12. Backing up data is the best way to deal with malicious attacks; always back up data, at least one backup to another device. It is strongly recommended to adopt a 3-2-1 backup strategy.
If your device has unfortunately been attacked by ransomware:
1. Rmove the LAN network cable from your TNAS device immediately;
2. Power off your TNAS; x.86 models: short press the power button; ARM models: long-press the power button 3 seconds;
3. Before restoring data, thoroughly remove the infection in the computer system and TNAS; You need to restore your TNAS to factory settings and re-install the latest version of TOS. How to re-install your TOS?