Hi,
Windows Sandbox is volatile by design. Every time you close the application, all software, files, and state modifications are completely and permanently deleted. So, the chances of a virus infecting the host computer is very rare. It's important to ensure that the host computer has virus protection enabled and it is patched completely to prevent the VM breakout scenarios.
However, if you want to scan Windows Sandbox for virus, you may use the ESET Online Scanner.
https://www.eset.com/us/home/online-scanner/
Run the scanner and choose Custom scan.
Select the following checkboxes
- Operating memory
- Autostart locations
- C drive
Click "Save and continue."
Start the scan and let it complete.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information.