I need to scan the contents of a USB stick with several antivirus software. I have several ways to do this.
Either I mount the key, I scan its contents (I may place the suspicious files in quarantine), I copy the files on the host, I format the key and I copy the files to the key. This solution is super slow and is the worst solution.
I'm thinking more of a solution that mounts the key, copies the files one by one in a sandbox, each new file that arrives (FIFO stack) is scanned (possibly placed in quarantine) and once the whole copy and analysis of the key content is complete, I format the key and copy the healthy files in the other direction. What do you think in terms of security? Do you have another solution in mind?
Thank you for your help