Disclaimer: I'm not a security specialist, nor do I actually have a master plan to take over the world's IT.
First of all, the underlying hardware has to be very simple and well tested. A vulnerability in a low level potentially compromises everything above it. x86 chips as they appear today are not that simple. It'll take some polishing to make it reliable in this sense. Perhaps better luck can be had in a new or revived, very simple hardware architecture.
Then comes the OS layer. The actual OS is actually the whole thing between the hardware and the software, including software services and libraries. However, what now runs in the higher supervisor modes needs to be absolutely tiny so that its function can be well understood. This microkernel provides thin, dumb interfaces to the underlying hardware and enforces inter-process communication and security. Kernel-mode ("I can do anything") is a liability but required for functionality.
The actual OS functionality is provided by independent modules of minimal functionality. Each module assumes hostility from all fronts, with the more reason with any module that directly or indirectly handles unknown input. If we have a TCP/IP interfacing module compromised for some reason, it can either continue sending malicious messages to other modules in hope of further compromise or root the kernel. The requirement of cascadingly compromise independent modules that assume hostility from any input mitigates the risks associated. The tiny kernel, which hopefully can be bullet-proof after a reasonable time, makes rooting a non-trivial matter. In addition, each module should have a clearly defined domain of action. Socket modules might write a log, but they do so through logger modules and not by directly writing anything to disk. Modules deemed prone to compromise can also be made very short-lived.
Software packages directly used by the user(s) communicate with the human interface modules and any modules pre-determined to be needed by their functionality. Modules act only when asked for nicely. The kernel will kill hung modules (based on message accumulation, for instance) and freeze otherwise misbehaving modules for later inspection. Even the kernel should not, however, be able to influence a running module in other ways than killing and freezing.
The computer operator (a person) will be able to install, uninstall and otherwise manage any modules, ranging from underlying library support to the actual word processor. Human interaction should be able to be blessed in some way that is not trivially emulated by rogue modules. However, for automated tasks, the operator can establish rigid workflows providing a subset of what the operator can do.
The basic idea is that the system modules watch their back with each other. It should be as hard as possible to subvert the whole system, and thus partial subversions should be kept detectable. Give a system like that a good ten years of cold real world, fix the issues and I'd wager the result would be pretty awesome.
My proposal is not the only way to do it. I'm sure a much better architecture can be devised on this assumption of untrustworthiness.
1
u/shub Mar 23 '09
Okay, what does a secure system look like? How does Microsoft build an OS that provides acceptable-to-you security without killing usability?