News for hackers. Stuff that matters.
Re:Redox – A Unix-Like Operating System Written in Rust by bogomipz on Monday March 21, 2016 @08:32PM (#11333488)
Could you elaborate on:

"Most systems are unable to keep DMA from scribbling all over everything in RAM, and probably all are unable to keep it from scribbling all over a filesystem."

In what context do you mean? When would this occur?

Thanks

Re:Redox – A Unix-Like Operating System Written in Rust by nickpsecurity on Monday March 21, 2016 @09:50PM (#11333847)
That was burfog's comment I was quoting. It refers to the fact that direct memory access by some devices can bypass any OS or software protections. Breaks whole security model as memory can change arbitrarily. So, risk of attacks or leaks should be mitigated there.

A few methods follow:

1. Use non-DMA links.

2. Use trusted hardware/firmware that mediates things properly.

3. Use IOMMU to enforce access controls on DMA.

4. Use a combo of full safety in system and careful API for access to DMA features.

I used 1 and 2. A few use 4. Number 3 is most common with basic version mainstreaming. Not enough, though, as complex firmware and OS's still provide attack opportunities.

Note: There's also interrupt floods and other esoteric issues to counter. So, it's the start rather than full solution. EMSEC issues too with malicious peripherals.

Re:Redox – A Unix-Like Operating System Written in Rust by bogomipz on Monday March 21, 2016 @10:26PM (#11334016)
thanks for your clarification. IOMMUs are a standard part of most motherboards chipsets these days, what would be the reason for not taking advantage of that and using them?
Re:Redox – A Unix-Like Operating System Written in Rust by nickpsecurity on Tuesday March 22, 2016 @01:11AM (#11334536)
It depends if you trust those chips or not to start with. Not having the weakness, as in trustworthy I/O, is always superior to a tactic attempting to stop the weakness. The other issue is whether mere restrictions on memory accesses will help. In software, microkernels isolating where or who you could talk to were only a start: attacks could happen via a series of compromises. Failures too in the Byzantine failure model. Plus, with monolithic OS's, you can get full control of the system with kernel-mode attacks that further facilitate DMA attacks where the main system looks unmodified in most operation while malware is in peripheral firmware.

Many issues due to how things connect and store information as burfog said. There's not just one thing. Even my microkernel recommendation is only for the start of the software part of a secure system. Actually, trustworthy CPU, ROM, bootloader and drivers are the start if we're being technical. ;)

Re:Redox – A Unix-Like Operating System Written in Rust by bogomipz on Tuesday March 22, 2016 @05:44AM (#11335376)
Thanks for the follow up, cheers!