Most SD cards are formatted using the FAT file directory system. And as such they are extremely susceptible to viruses aimed at that formatting system and general file corruption. This results in a need to reformat the SD card so as to eliminate any corruption or virus threats. Of course reformatting any type of digital device will result in deletion of all stored files on that media. A great trick is to allow the reformatting to run its course and then use a quality data recovery tool to recover deleted photos from SD card media.
This process to undelete pictures from SD card components may seem a bit odd, as the conventional practice is to attempt file recovery before any reformatting or reinstallation of operating system files is done. But when one is hoping to isolate or remove malware and virus programs, extreme measures need to be considered. Reformatting of drives is perhaps the single most effective way to remove a virus from a component. Follow up that reformatting with a data recovery process that allows for selective rescue of important files.