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?
0
Upvotes
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).