Ask HN: Cybersecurity
If you were handed 3 USB drives, one with source data, a second with a program, and a third to hold the results... could you run the program to process the data, and save it with no risk to the computer you used?
The USB separation doesn’t matter. Once loaded into memory and running you have many ways in which a dangerous program can interact with the machine. The general way to handle this type of need is to use an ephemeral virtual machine so you can just nuke it at the end. Otherwise, plan to reimage your computer.
You might also want to re-flash the BIOS while you're at it.
There used to be, in the days of MS-DOS and floppy disk based PCs.
Even then you are probably at risk of exceedingly clever exploits that can live in the bios.
I would say that generally the answer is no. If you plug a physical device into your computer you should assume that it's at least possible it can do things you would not like very much.