Personal backup software that actively defends against ransomware.
Efficient anti-virus application.
A free virus-detecting software specially designed for pendrives.