4 ms·
KSOS-11 was done at Ford Aerospace in Palo Alto, CA, from 1978-1982. It wasn't that big a job; it was about 5-8 people. I wrote the file system and all the dri
by Animats 11y ago
KSOS-11 was done at Ford Aerospace in Palo Alto, CA, from 1978-1982. It wasn't that big a job; it was about 5-8 people. I wrote the file system and all the drivers. We had a PDP 11/45 for debugging and a PDP 11/70 for development. Supervision came from DARPA; they sent out an evaluation team every 6 weeks to review progress. Some NSA people would show up on their team. The project was unclassified but most of the people on it had SECRET clearances. KSOS was only used for one special-purpose secure system; the PDP-11 era was over by the time it was done.
Parts of it were specified in SPECIAL, SRI's language for formal specification. That was mostly an API spec, written at SRI. SRI had designed KSOS at an abstract level. We were just implementing it. This didn't work well.
The most complex thing we were able to do in SPECIAL was to specify what validity meant for the file system. A "weak invariant" was true at the end of each write, and a "strong invariant" was true when the file system was unmounted. File systems were not well understood back then, and UNIX file systems tended to degenerate into garbage after crashes. We were able to avoid that.
We didn't have much in the way of machine proofs, although we tried. We used the Boyer-Moore theorem prover and the Stanford Pascal Verifier, but the tools were not there yet. I later headed the Pascal-F effort, Ford Motor's in-house code verifier for engine control programs. That turned out not to be useful because the Pascal-F compiler team at Ford couldn't get their compiler to generate usable code. We could write small programs and verify them, but could only run them in a slow byte code interpreter.
DARPA was trying to get a secure OS. They really wanted a secure microkernel. They pulled the plug on Berkeley BSD because it was too bloated, and put money into Mach at CMU instead. It was a surprise to DARPA when BSD didn't die, but went commercial (with Sun) instead.
- nickpsecurity 11y agoAppreciate the details. I knew it was a demo but not that it was that budget. The use was a guard for communications or mail, wasn't it? re abstract vs implementation More evidence for the claim by many lesson learned papers in formal methods: people doing specs/proofs should work closely with implementers and in parallel where possible. That way issues spotted one place get to the other quickly. Better compromises, too. Neat that it helped with the file system, too. re verification tools Yeah, that sounds as painful as I expected. The only one I read on in that time was Gypsy and attempts to convert it to Ada. The proofs were done by hand in most. Every paper had researchers griping about the tools. Main benefit those tools gave, per users, was making verification easier just because the prover's needs (and weaknesses) forced simplification of specs. Did your projects see at least that benefit? re DARPA That's my impression. The consensus at the time was on a security kernel approach. It's what all the A1 and B3 systems used. They learned a lot from their endless Mach-related projects but the drawbacks (esp performance) were too great. Personally, I think it was the hardware context-switch performance & message passing overhead holding them back. Users wanted power, performance, and price without much worry for security. Naturally, they built on BSD. And now one of DARPA's best, CheriBSD, is a port of FreeBSD to the capability-secure CHERI processor. They finally learned to be practical, eh? ;)