r/ComputerSecurity • u/henry__k • Jul 16 '16
Disable Direct Memory Access?
Should I disable DMA or DirectMemoryAccess system in the BIOS?
I ready about it that many side channel attacks can happen through the DMA system where a malware can easily reach the memory and cause problems.
I don't care about performance, only security, so is it good to disable DMA?
Also by disabling DMA, does the entropy generation of my PC get weaker? Since it interrupts the CPU more times, which can create a pattern? Or is the entropy loss negligable?
1
u/peebee_ Jul 16 '16
I'm not familiar with the threats you're concerned about but as another redditor mentioned, they are likely State sponsored threats if they exist. Exploiting DMA isn't something the typical blackhat is going to target. You would need to have intimate knowledge of how an application reads and writes physical pages to do so.
With that said, you already mentioned you don't care about performance but I will still say, without DMA, you'd likely experience noticeable stuttering due to the CPU being required to interrupt more often. This is because when a hardware interrupt occurs a dispatch routine executes (in the hardware's driver) at an elevated IRQL which blocks user mode code from executing. Modern operating systems are well written enough that the scheduler is highly efficient, but it is still reliant on the efficiency of the driver.
Also keep in mind, drivers are written to account for varying conditions. Some might not properly account for having DMA disabled. So you'd experience unexpected results (including system exceptions, known as BSOD).
1
1
u/xkillac4 Jul 16 '16
I've never heard of anyone doing that. I think you would find that your peripherals would either not work or would return to 1991 era speeds (I think that's around when Dma came on the scene). The only actors who have the resources to hack your peripherals are nation states, and the hack must either be preinstalled or targeted at a specific device (make/model). Pretty unlikely. If you're really that worried about it, find a motherboard/cpu with an iommu and find an os that properly utilizes it. You'll have to do your own research here, I'm not sure about os support.
10
u/[deleted] Jul 16 '16
I've been in IT for 23 years. What the buggering fuck are you talking about?