Here’s a foundation topic, whose rationale fits in the virtual world just as it did in the physical world.
Unnecessary or accessible hardware devices can be used against you by attackers to gain access or compromise information. Unlike the physical world, where we can just lock hardware away in racks, the virtual world requires you to remove or disable the devices.
Alright, I understand removing unused hardware devices. I don’t even remember the last time I mounted a flp image to a floppy drive and the COM/LPT ports and NICs not being used, easy peasy, remove them.
But the device I see getting the most resistance from other engineers is the CD/DVD drives. I can see the need to enforce a policy of sorts as I find mounted ISO’s all the time, just left lonely and neglected after an install.
Do nothing and have a script unmount ISO’s and remove specific hardware device on a scheduled basis. This would be more reactionary and still leave opportunity for compromise
Disable the CD/DVD when not in use and enable and connect when needed.
Delete the CD/DVD when not in use and add it when needed. The majority of the time I’ll mount an ISO using the Guest OS, so there will little change to my processes.
It would seem that the options of disabling and deleting sound about the same amount of work/time.
What do you do in the real world?
The removal of unnecessary hardware devices from a virtual machine has been a VMware best practice that has existed since at least version 4. [1,2,3]
This includes devices such as Floppy disks, CD/DVD drives, COM/LPT ports, network cards, and storage cards.
The reasoning in the VMware Documetation sites that any enabled or connected devices as avenues of attack and for security reasons you should remove unnecessary hardware devices or disable them when not being used.
However, the VMware vSphere Design book by Forbes Guthrie and Scott Lowe also gives a real world physical reason that “Rationale: Each virtual hardware device assigned to a VM requires interrupts on the physical CPU; reducing the number of unnecessary interrupts reduces the overhead associated with a VM.”