My name is Tep. That is my real e-mail address. If you want to send me a note, it's been getting a lot of spam since the 90s. So just put DEF CON in the subject line. I'm going to talk about some ancient history. I'm going to be talking about what it was like to build secure systems for the government, the NSA, in the 80s. I've done a few things off and on. I wrote my first paper on computer security in high school. I wrote a paper that said sometime in the future, companies and the government would be able to manipulate millions of bits of information and that this would mean that privacy and computers would be intertwined for the rest of our lives. And I got an A-minus. She said, love the writing, beautiful, I just don't buy the premise. And that was 1970-something. Also, if there's anyone here from NSA, I apologize. I don't want to apologize for the security stand down of system in in 1984 and 82. And if you can prove to me that you were there, I will buy you a beer. I was young. I needed the gold. Along the way, I worked on Multics. I worked on GCOS. I worked on the worldwide military command and control system. KSOS, which I'm going to talk about, the Colonelized Secure Operating System. I worked on the SPADOC, which is the system that NORAD uses to track bolts and other things. I worked on the SDSC in orbit. I was at SDSC during the Kevin thing, but I'm not the Tom in Takedown. That was the Tom who was the security guy before I came along, and he and Satomo did not have a good relationship. I've also done work in critical infrastructure protection, co-founded HTCIE San Diego and a bunch of other stuff. So here's what we're going to talk about. Since I don't see it there, I'll have to see it here. I'm going to talk about the 80s. How many people in here were actually alive in the 80s? I'll get to that. Wow. Okay. I know that USENIX and LISA has been getting a little gray over the years, and I just noticed that DEF CON has been getting a little more gray and a little more mature. I stepped into the elevator last night at some time, and two young guys with DEF CON badges said, excuse us, sir. So that really hurt. So I'm going to talk about the 80s, primitive computing, as my boss would say, steam powered, but not quite. What the community was like. It was very, very small. It was smaller. It was about the size of the first DEF CON, the size of the community that I dealt with. What we were doing in computer security research and the state of the art. I'm going to talk about KSOS, which is the system that I worked on the most during the 80s, and then some lessons and predictions. We really got some things completely wrong, but we got some right. Anybody recognize this? I'm going to talk about Berlin Wall. When did the Berlin Wall come down? 1989. So Duck and Cover was mostly gone by the time I grew up, but I do have older cousins who told me about Duck and Cover. And when I was in high school, even though we all bought the brand-new latest SR-10 and SR-51 calculators, we all still learned to sling a slide rule just because we had to be prepared for the fall of civilization. We were mostly kidding, but not completely. That was the first time we learned to sling a slide rule. That was the mindset. Anybody recognize this? Doomsday Clock, Union of Concerned Scientists. So in 1983, 1984, the clock was set to 3 minutes to midnight. So during the time we're building all this stuff, the Doomsday Clock was at 3 minutes till. That was the closest it had been to midnight since 1953 when the USS and the USSR both tested thermonuclear devices within months of each other. So that was the mindset. This is the mindset. This is the paranoia. This is the we could all be gone tomorrow. So secrecy. We did a lot of it. Anybody recognize this book? Right. So Puzzle Palace came back, came out in 1982, and it pretty much forced the NSA to admit that it existed. And this was about the time that the DES was published, and of course no one trusted them because number one, they were the secret government society or group that no one had ever heard of. And number two, they were the secret government. And number two, they wouldn't say why they changed the S boxes. And so, you know, a few years later we figured out that, wow, they really knew what they were doing. But for a very long time nobody trusted them. How about this book? So here I am. I show up, first day of work, January 3, 1983. I'm the only, number one, I'm the youngest person in the office by a good 15 years. I'm also the only person there who is not either ex-NSA or ex-Navy SIGINT. So when these books came out, everybody was hiding in their offices, reading them, going, holy shit. Somebody is going to jail. Oh, somebody is really going to jail. Yeah. So that was my introduction to the world of secrecy. This, that's what, think about this. The Hunt for Red October was the very first nonfiction book published by the Naval Institute Press. And I think that's what it was. I understand that James Van Furb is here and I'm hoping that someday we'll get to meet him. So here's what big computing was like. IBM and the bunch. Burroughs, UNIVAC, NCR, CDC, Honeywell. Several years before it had been IBM and the Seven Dwarfs when you added GE and? Nope, they weren't big enough. It was Sperry and UNIVAC when they merged. But still, IBM and the Seven Dwarfs, IBM and the Bunch, and they pretty much controlled everything. Big mainframes, millions of dollars, and every company could have one. Not so fast. Anybody recognize that one? Yeah, sorry about that. Didn't mean to cause any flashbacks. MS-DOS 1.0, 1982. But it got better. This guy came along. And so 1984, 128K and a floppy disk. Because no one will ever need more memory than that. The original Mac was not so much a success. Because in 1985, Jobs departs Apple after a power struggle with John Sculley. How did that turn out for Sculley? On the Unix side, things are looking pretty good, right? We've got Bell Labs. We've got? Unix has escaped from the labs. And it escaped to the government contractors and the universities. The .com still didn't have a clue what was in their future. They were still chugging along with BMS and AOS and all kinds of stuff. And then their departments, their R&D departments, decided, you know, the bean counters won't let us buy a mainframe, but we can buy something smaller. Okay? So. Ha, ha, ha. Okay. Who has not seen this movie? . Yeah. Think about this. Here's the kicker. This movie sets society and law enforcement's expectations for hacking and what hackers could do for a decade. Okay? 2600 comes out. DEFCON is still ten years in the future. So, yeah, thanks, Holly. I would like to play a game. So, as I said, R&D researcher, you know, R&D groups, small groups were deciding that they could buy this thing called a PDP, peripheral data processor, because it wasn't a computer. So the bean counters in the MIS departments couldn't say, we buy computers, you don't. This is a peripheral. It says peripheral right in the name. You can tell it's the 80s. If it isn't the rock and miniskirt, it's the guy's movable stick. But this was how things were going. And then we got this. If you're on the ARPANET and you had a VAX, you put the name of MIT VAX, norad, NAG, MAC, you know, norad VAX, logic on VAX. You put VAX because you were progressive. You were cutting edge. And you had a machine that could do a million instructions per second. This changed everything. But it went away. We've looked at it again. There's signal Oh, yeah. And there were these guys. So if you're old enough and you ported enough Unix code you may have heard the refrain all the world is a vax. And for a decade all of the Unix code was written on vaxes and then it was your job to port it off of vax. And then a while later it was all the world is a sun. And so you end up having to deal with all of the sun isms that people had buried into their C code. So we had this guy. Deck PDP 11. These are still in use. Fortunately it's been reduced to a single chip but it still lives on in a lot of embedded systems especially on board ships where they either run the single chip version or they run PDP 11s in emulation for things like fire control, radar, because that's what they had. Sixteen bits, one to two meg of RAM and 1,000 instructions per second. This was a one chip machine. Oh, yeah. And you got those really beautiful expensive 176 megabyte drives. Some of the women in our department wouldn't do backups because they couldn't lift the disk packs. And you can tell it's the 80s. Lovely colors. Beautiful plumage. So why are the bits grouped in threes? Because they're not the same. They're not the same size. Octal. None of that fancy hex stuff for us. So memory test. Anybody know what this is? Ding. Core memory. Donuts on wires. That is 8,192 words of 18 bit RAM on a card that's about 11 by 15, I think they were? Yeah. And if you take a close look at it, it's donuts on wires. So now you know why it's really called core. So moving right on, the VAX, we loved it. 32 bits. If you had enough money, 6 to 8 meg of RAM. And none of that core stuff, there was no core. This was the first CMOS only machine the deck did. And one million instructions per second. This was awesome. And they don't have any more RAM in there. They're all connected. All cost a million dollars. The first vax I bought, we bought it used and I paid about $450,000 for it. It had sold new for a million dollars two years before. So a million instructions, a million dollars. That's the way it worked. And oh by the way, those washing machine drives there, we upgraded those. 300 meg. Programming languages. We still have the old classics. We got PL1, we got Fortran, we got list, we got COBOL. Don't knock COBOL. It probably still writes your paycheck. And by the way, COBOL, if somebody's doing financial calcs, I would prefer they do them in COBOL than in anything else because they do BCD and they actually round properly. You should know that if you've done any computer science studies. But you probably didn't. So or else you're pre-gaming DEF CON for the last three years. Pascal, Modula, Modula 2, those are going to become important. Pascal was the first language designed to teach good programming. But it was a little short on features. Hence Modula, Modula 2. Ada comes along. Don't knock Ada until you've tried it. Yes, it was designed by the DOD. Actually, it was designed by Honeywell. But having written about half a million lines of code in Ada, I would prefer to write in Ada than pretty much anything else on the screen. And then this is when Perl and Tickle. This is when Perl and Tickle were just beginning to arrive. So structured programming was the big thing. None of this fancy object-oriented crap. This was structured programming. Because until this time, people were still really in love with the go-to. So what kinds of tools did we have? We had stone knives and bear skins and we were glad of it. We had ED. Love it. Emax and VI. Well, VI, where did VI come from? Berkeley. Yeah, it shows up in Berkeley. Berkeley. We had it right around .3840 from Bill Joy. We're talking PDP11s here. No automated software testing. No frameworks and make. The very, very, very first O'Reilly book I bought in 1984 was make, and I think that was one of three books they published then. So things have gotten a little bit better. Terminals. So anybody here ever seen or not anything from past anybody here ever programmed on an ADM3A? You didn't miss a thing. The most unergonomic piece of crap there ever was, but it was the video terminal and universities and the government bought them by the bucket. You could pay extra and get green so that your eyes wouldn't rot out as fast. 24 lines of 80 characters. Why 80 characters? Punch cards. Now deck came out with something really, really novel. It was a terminal with a separate keyboard. And you could get an option on that to let you flip back and forth between 80 columns and 132. Why 132? Nice try. Green bar line printers. Line printers were 132 characters, so all the fancy green bar stuff. So you could flip back and forth for 80 columns so you could see what your punch cards looked like or you could flip back and forth for 80 columns so you could see what your reports would look like when you print them. Okay. And then the ARPANET. 1969. Two nodes. That's all you needed. So like I said, I showed up at logic on the third of January 1983. Anybody know what happened on January 1, 1983? The network, the ARPANET, took the first step towards being the internet because that's when they flipped from NCP to IP. That was the flag day. So go look in the Wikipedia entry for flag day and you will see why it's called the flag day. That was the first and last incompatible transition in internet protocols and it was the suck. There were some sites that were knocked off line and didn't come back for three months while they tried to get their IP staff working. So 1983, 500 nodes. 1984, a thousand nodes. 1986, 5,000 nodes. Nobody knows how many nodes today. This is from about 1995, this graphic right here, I think. So throughout this time, the DEC 10s, DEC 20s mainframes are about the most popular. VAXs, if you could afford them, lots of PDP 11s, a little bit of Multics, some sigma 6, sigma 7, sigma 9 stuff. Anybody know what the backbone speed of the ARPANET was? 56K. And the modem was about half the size of this table. And the power supply was the other half of the table. Because AT&T knew how to make stuff that was going to survive a nuclear holocaust. And, you know, tubes in the power supplies and all that kind of stuff. So, that's the big difference. So, now at home, not at home, but if you were directly connected to a computer, you could get 110, 300 or 1200. At this point, the culture is still about secrecy. How do you get, how do you become secure? You keep it all a secret. Almost all of the government, almost all of the security research is being funded by the government. The U.S. government, the U.K. government and other governments that I'm not going to talk about. They didn't want to go anywhere near this. That's that's being part of the military industrial complex. We don't build bombs here. We don't do government research. I tried to start a Ph.D. program at the University of California. And I said I want to do my Ph.D. in computer security. And they said, well, number one, we don't do that. And number two, we don't know what that is. And number three, even if you could find a graduate advisor who would, we won't let you do it, we won't let you do it. it because then the government will be here and they might direct your research in some way that might be evil. So things have changed a little bit. This is one of my favorites. At this time we're still taking some software bugs and classifying them. So let's say that you have a system that's processing top secret information and you discover a bug in that operating system or that application. That bug is classified at system high for the system in which it was discovered. The problem is you can't give those back to the manufacturers to fix it because all their programmers don't have clearances. So what you do is you go find another machine somewhere that is running unclassed but the same OS or the same software and then you find the bug and then you slide that to the manufacturer, they fix it and how convenient. Someone else found the bug. Now we can fix it. I saw that about five times it was. Very disheartening. Computer security was a very small club. There were really two security conferences. Nothing at all like today. The conference that I attended the most was NBS, National Bureau of Standards, who put it on and ran it for another agency that was nearby that also began with N. And this was the NBA conference. This was a really small conference in the 80s. It was about 200 people. Sometimes it was larger, sometimes it was smaller. But around 200 people that you kept seeing year to year. And a lot of them, I was the noob, a lot of them knew each other and had known each other for years. It was a very, very small community. Now on the West Coast there was this IEEE security conference which was a lot more open and a lot more focused on business and that kind of thing. But the NBS one was very much a research gathering of people who were doing things for the government. Here's how much of a noob I was. I gave my presentation at NBS and I step off the stage and this very nice gentleman in a beautiful suit, bit of an Eastern European accent, walks up and he shakes my hand, you know, hi, how are you? I really enjoyed your talk and all this. And we should get together sometime for a beer or something. I said, sure, why not? And he gives me a card I don't even look at. I just put it in my pocket. And then I walk away and one of the other attendees says, you know you have to file a contact report. A what? A contact report. Yeah, a contact report. And I'm like, what? And he's like, what? Well, number one, he's a Soviet citizen. Number two, he's the cultural attache. Number three, he's GRU. So when you get back home, don't forget to file your contact report. At least he gave you a card with a name that we'll know so we'll be able to match everything up and know who you talk to. So that was my introduction to that kind of security. The Orange Book. Near and dear to my heart. This was my first book. The Orange Book. Near and dear to my heart. This was a first time that people actually tried to sort out what it meant to be secure and how secure or it's really more about assurance of correct operation. This was a way to classify, define levels and if a machine met the requirements for a certain level, it could process information at a given level. There was a matrix that said if the highest level is top secret and the lowest level is secret, then you can use A1 or B3 or whatever. But this was a way to try to actually build a taxonomy of how secure or how much assurance you have in correct operation. Published first in 1983, updated in 85, completely obsolete by this point. But the things here are A1, B levels, C and D. So C was essentially discretionary protection. Your system had very little in the way of assurance protection, but it had discretionary access controls. Whether those are access control lists or user group world, Unix in general fit into the C level. B levels are the ones that So C-levels, mandatory security, this meant that every piece of information in the system was labeled by the system when it was created with a mandatory label of like secret or top secret or confidential and maybe a set of compartments, indeed. That label would follow that information forever, and then the system would command a toreally, the system would compare the label of that data to your clearance and decide if you could see it. but there was no discretion at all. The data was created at a level and it could only be accessed by things at that level or higher. And then at A1, we start talking about all those features are really cool, but is it going to work correctly? Is there any assurance that the design of the implementation is actually right? So the question is, how do you get to A1? So are there any experts in predicate calculus in the room? We are going to have a talk. I learned enough to do some work and that about broke my brain. So predicate calculus is one of the ways that you describe the formal system, formally describe the system, and then you can create some theorems to see if it actually is, the design is correct. So at A1, we're talking about these formal methods, not just formal models, but formal methods. Formal models describe the system, formal methods are how you create it. So what we're looking for here is we want to mathematically, mathematically prove that there's a high assurance of correct operation. And the way you do this is you create, you describe the system using some kind of non-procedural language, which generates, then you generate a bunch of theorems, and then if you prove all the theorems, life is good. I don't prove theorems very well. As a matter of fact, I was an engineer, I am an engineer, not a mathematician, and this was really, really hard. Fortunately, some other folks had done a lot of the work before I got there, and I just had to prove I had to re-prove some of it, and prove some new pieces that we wrote. So in proving a design correct, this is kind of, in a nutshell, at the DEF CON level, and what I remember, this is about what you do. So you describe the system's complete state. So that's all the global variables, all the static variables, all possible values of all those variables. This generates a really big finite state machine. Really big. Space is big. You have no idea. Think about this. 16-bit mini machine, 2 to the 16th values, times the number of variables that you believe are global, comma, static. That's the size of your finite state machine, in theory. So then you derive theorems about all of the state transitions from across the nodes in the finite state machine, and then you just prove the theorems. Interrupts make things interesting because those kinds of state transitions don't always start in the same bubble, so you're chugging through your finite state machine, suddenly there's an interrupt, and you end up over here in this other state. So that makes finite state machines fun. This is what I learned to drink. So how do you describe this? Use special purposes languages like Special and Gypsy. The problem is you have insufficient computing resources or software technology to prove or even describe really big systems, so you have to keep it simple. So in a nutshell, the way you do this, the way we define this is, I'm starting in a secure state. I have defined that I am in a secure state. And then you define theorems that lead you to all of the other possible states, and as long as you can prove that all of, so you start in a defined state, and then you, all state transitions are proven to not lead you into a not secure state. Yeah, right? It's so, I mean, it's like three steps, right? You know, one, two, profit. You know, one, two, profit. But what does it mean to be in a secure state? And this is where two gentlemen, Bell LaPodula, they did some really cool stuff. And they created this thing called the Bell LaPodula model, and this was really the first formal description of security in terms of computing. So they said, we're gonna make this simple. There are objects. Anything that stores data is an object, whether it's a file or a byte or anything. It's an object. And then there are subjects, which are programs or processes. Those are the active things that cause objects to be accessed and changed and modified. And then we're gonna describe with a couple of rules how they interact. Okay, pretty cool. So these are the two primary properties of the Bell LaPodula model. Simple security. A subject cannot read from an object at a higher level. That basically says that if I have a secret clearance, I can't go into the file cabinet, that has top-secret stuff, and take it out. I may not access things at a higher level. However, let's say that I've got access to something at secret level. Why can't I just give it to my friend who has a confidential clearance? That's the star property. They couldn't come up with a name for it. They didn't know what to call it, so they just said star. We'll figure out what to call it later, and it's been the star property ever since. So the star property basically says you can't give away information that you have access to to someone who doesn't. There's also some, you know, some other stuff. It's like transitive star property and a bunch of other complications. But these are really the two big ones. This looks really simple, right? I can't see things I'm not supposed to. I can't give away things that I own or that I have access to to someone else. That's a very easy description. Go read the paper. Trying to describe that mathematically gets interesting. But this is all about comparing labels. Labels are what is on a document. Labels are what is on an object. Labels correspond to a clearance. It's really easy to say top secret greater than secret. That's easy. Secret greater than confidential. That's easy. What happens when you add these caveats, code words, and handling designations. How do you compare top secret plus no form plus nightmare green plus sr71? If those even exist. Because if nightmare green exists are you worried? Oh, you've read the book. How do you compare that to top secret plus nuke sub plus blue crypto? Is blue crypto? grade than SR 71? Is it less? How do you compare these labels? Well, since I did used to teach computer security for a living, I'm going to invoke my prerogative and say the exercise is left as an exercise for the student. I would like a proof, formal mathematical proof and show your work. So proving all this is complicated, right? The design and proof of process was so onerous that the only way out was to create these extremely small operating systems and this is where we end up with security kernels. So at the same time this is going on, we've got high assurance systems. Remember, we're not talking about secure systems, we're talking about high assurance of correct operation. Not secure, but high assurance of correct operation. So we've got the message flow modulator going on, Dr. Don Good, the guys at UT, they did a dynamite job. So we've got the message flow modulator going on, Dr. That is right, 1,200 lines of formal specs for 600 lines of code. And then it took, you know, Ph.D.s and more and more theorem proof on a Dec 20 to prove it all. But they actually proved a 600 line program to be provably correct. 600 lines. How many months? Not exactly practical. Then you also got Multics, which has been around for a while, and Multics is in use at all kinds of engines. It's been used at, I'm going to of places like nsa and afdsc so it's cranking right along and it was evaluated at b3 and then you've got some research stuff going on ibm was doing this thing called kvm 370 and then we and ford aerospace and honeywell were doing things called casos so the casos story which is what i really i told you all of that so i could tell you all of this casos was the kernelized secure operating system the dod and the dod wanted a secure system but they wanted a mini computer because they only cost hundreds of thousands of dollars or only a million dollars as opposed to tens of millions of dollars and like the government often does when they want to mitigate their risk they have two parallel programs so they did casos 6 which they did gave to honeywell which was a modified level 6 with some extra boards that made it look like multics and then casos 11 which was we're going to we're going to do it in software so that was the goal there was to run a secure operating system on general purpose hardware by using good software software and engineering techniques so casos 11 was born at ford aerospace um what do the risks digest and tcp congestion control have to do with casos 11 anybody here read the risks digest one person oh okay who runs it peter newman right he was one of the authors of casos 11 who invented the the who who do we know most for tcp congestion control nagel algorithm john nagel was also one of the developers of casos 11. so when i don't when this was transferred to logicon i ended up having to wade through all this code to this very day it is some of the most beautiful and elegant source code i have ever seen in my life i don't know who those guys were well actually i do know some of them but it is some of the most awesome beautiful code i have ever seen in my life and it is what we should all aspire to now i'll come to that um i haven't figured out where to send the freedom of information act request i have the contract number and i may or may not know where there is a copy could be found but until i well i'll come to that so at ford aerospace i think the team size was like 8 to 15 off and on uh when it transferred to logicon we had a contract to build guards to sit between networks at different security levels um we had a real too many guards at different security levels вид they said oh by the way he has a stop okay system you should use it we look exciting so what's this is really good stuff version is it and we actually good part of the operational uh... thatyeon intelligence 244 going too lot middle dis This I cannot say enough about. Shannon's Maxim, the way we used it was secure even if the attacker has all the source code. No security through obscurity. Actually, it has the source code and all the design documents. This is really big. Until we started talking about this, remember that whole secrecy equals security thing? If you wanted to build a secure system or be involved in security at all, you had to keep it a secret. Here was source code for an A1 kernel that wasn't classified. Think about that in terms of open source. So the development technology. What did we have to build this stuff out of? Well, we had PDP-11s, we had Linux programmers workbench, which is what you had before version 7. If anyone knows what Tyco is, we got ours. I'm going to talk to you after because you're nodding too much. We got our version 7. We got our version from Tyco and we had 24 by 80 ADM terminals at 9600 and we had ED, wrote all the docs, all the formal specs, all the code, we did all of that in ED. We had no make, but we had shell, like born shell, not bash, but the only shell that existed at the time, born shell, bin SH, and we had a modular compiler. Yeah, about that modular compiler, anybody recognize the gentleman in the upper right hand there? I'll give you a hint. He also invented pascal. Say again. Yes, michalxis worked. This was an experimental compiler from Zurich. Here's a compiler. It is good. You should use it. There's not support and don't tell anyone you're using it. Wait, what? It's modular, so it's like pascal only better. It's like pascal with modules. However, this was a toy compiler that they had built to prove that a viable language. So the entire program had to be submitted in a single file, no forward references which meant if you needed the use of a procedure down at line 20,000, you had to define that somewhere earlier in the stack so you could read the dependencies of all your processes and procedures from the bottom to the top. At the bottom was main and everything else that you needed was above it. Limit of about 32,000 lines. If you tried to give this compiler anything more than about 32,000 lines, it would just barf out. How are you going to do an operating system in 32,000 lines? Well, we did. Actually, Ford Aerospace did. And then we took advantage of it. 41 system calls. Modern Linux says 300 and what? But it turns out with these 41 calls, you can implement all of the others on top of it. But remember that whole thing about single file compilation? Well, we used find. And a whole bunch of other stuff to take all of the source code modules, stitch them together in the right order, strip out the comments and then submit it to the compiler. And why did we have to strip out the comments? Because we had 33,327 lines of source code and the compiler would only take 32,000. So you can ask yourself, how come I know there's 33,327 lines of modular code? So here are the primitives. With these 41 primitives, you can't implement all of the other systems. You can't implement pretty much any operating system except this doesn't, well, yeah, you could, we even did TCP, but not in the kernel. So that's really all you need. So provably correct design. 45,000 lines of special, which is a non-procedural description language. That was turned into several thousand theorems. You feed those to the Boyer-Moore theorem prover on the deck 20 at UT and you pray that it solves the theorems that you'll never be able to. And then whatever's left, you have to get rid of. And then you have to get rid of it. You have to work your way through. You have to lead and hint the theorem prover to prove the theorems. You can give it hints. You can create lemmas and all that stuff. And then that leads to proofs of all the theorems. I only had to reprove the theorems and then we had added two kernel calls. So I only had to reprove the theorems and prove the two new kernel calls. And that took me months. Because I'm not a Ph.D. And this was kind of new. Now, KSOS did a few things. They did a few things that were kind of cool. We kind of anticipated the future. Object stores are the big hot thing now, right? S3 object stores. All you've got is a file handle and that's all you need. That's all KSOS had. We couldn't get, if we had put a hierarchical file system in, we would have had a lot more work to do in proving and generate a lot more theorems. So we're going to do an object store. There's file handles. There's file hashes. That's your handle. Don't lose it. Because if you do, you'll never see that file again. So it's very much like S3. We did build a user space file system, kind of the way that the fast file system and many file systems for Unix have been built since. You build them and you debug them in user space and then you shoehorn them into the kernel. We couldn't do that because we were running up against the limits of RAM because you only have 64K instructions, 64K data and a PDP-11 and then on the VAX we were okay. But we also did the TCP IP stack in user space. So if you had a KSOS system that was sitting between three networks of different classification levels, you had three processes, each one attached to a network and each of those processes ran at the same security level as the network it was attached to. So this meant this was a way of classifying the network traffic based on you just classified it based on the label of the process it was running. So Unix compatibility became important. We did a V7 emulator, 110 calls. That fit in 48K. So if people tell me that they don't have enough RAM, that's not a problem on your machines today. Bite me. So KSOS 11 was actually deployed in operational systems. In many cases system low was top secret and system high was TS plus compartments and things. There's nothing above top secret. There's things that go with top secret. And then the government said, wow, wouldn't it be really cool if we put this on a VAX? And we said, you betcha. Buy us a VAX, please. And they said, you betcha. How about used? And I said, sure, I'll take that. And so I bought a VAX. So in 1985, we undertook our first completely unique KSOS work building on what had been done at Ford Aerospace and this was to take what was in KSOS 11 and translate it to KSOS 32 in such a way that we would not lose all of the hard work we'd done for theorem proving. So six meg of RAM. This was a two-user machine. There were two of us. So it was awesome. Two-user machine. There were two of us. So it was awesome. Two guys in a VAX, right? We started Berkeley BSD 4.2. Thank you for EMAX. Thank you for VI. Thank you. Thank you. We improved the tool chain. So the tool chain, we had a modular two compiler. This one wasn't experimental. This one actually had support. And we had the same this was essentially a straight port. We had the same 41 system calls. The source code count is a little bit higher because we actually did additional device drivers for the VAX. Much faster development. Two guys cranking on code. And also we had this funky build process. So we had to maintain compatibility or we had to maintain commonality with the KSOS 11 source code as much as we could because we didn't want to lose all of the theorem proofs that had been done and have to reprove them or rewrite them. So here's how you started the build for the VAX. First you check out the KSOS 11 PDP 11 source code. And then you have to go back to it. And then you pass it through a bunch of EMAX macros. These EMAX macros were a modular to modular two cross compiler. Anybody who has anything bad to say about EMAX? This is an EMAX. This is a modular to modular two translator built in EMAX. So yeah, take that, VI. Then you replace so then once you've done this translation of everything, then you take out the PDP 11 modules and you throw in the PDP or you throw in the VAX modules, right? So now you've got a bunch of modular two code and you've got in, you know, the new process system that we built, the new memory management that we built, the new device drivers that we built. And then you compile that into assembly code. Why do you compile that into assembly code? Because you need to do the said hack, which I'll come back to in a minute. Think about this. How do you get a compiler to emit instructions like load process context or manipulate this specific machine register? Modular to modular two high level languages don't have those instructions as statements. So you have to find some way to emit the specific weird instructions you need to build an operating system. So you apply the said hack, then you assemble it, and then you assemble it into a new kernel and then you use DD to put it on the KSOS system pack and then you reboot your VAX. This isn't, you don't do this more than once or twice a day. You don't do this every day. Because this is also your only death machine, right? So you develop in the morning until, you know, everybody's happy and then you go go, you know, run the compiler, run the assemble, run everything and then you go to lunch and then you come back and then you do DD and then you reboot and then you say, oh, fuck, and then you start fixing bugs and then you lather, rinse, repeat. So the said hack was one that I came up with and I have to admit that there was alcohol involved. So what you do is you, in modular, you run the compiler, run the module, you make dummy descriptions of all of the instructions that you want. So the load process context instruction, for example, you make a function that has all of those arguments that you need so that you can then call this dummy function from modular. Cool, right? So I just described it. No big deal. Well, what you do is then when you run the compiler, it admits, you know, push, push, push, argument, argument, argument, and then it does a system or does a call to the function. So what we do is we run the set hack and what the set hack does is it goes and finds all of those instruction sequences that are getting set up to call the dummy functions and then you edit that into the exact instruction that you want. And then you assemble it. So and then you run the assembler on the hacked up code. So all this happened, we got to first user log in. I actually logged in on the console as admin. Password was not admin. And then the project was canceled. So, you know, it's a little bit of a mess. Yeah, I know. Well, the government had been sold this bill of goods by some of the manufacturers. You know, you guys are spending a lot of money on research with universities and all those stupid defense contractors. We're computer people. We build operating systems for a living. Give us that money and we'll give you commercial off the shelf A1 and B3 operating systems. Trust us. Anybody bought an A1 or B3 operating system? No one ever did. SecureVMS was really, really good. Absolutely no doubt. SecureVMS was a real good try. And I believe that it may I think that it was actually entered into the evaluation. But this just killed SCOM, KVM370, KVM360 and a host of other research stuff that was really getting good results because the government was going to just start writing a check and buying this stuff. So I want to wrap up with what does all this mean? Why should you care about something that was done 30 years ago, 10 years before DEF CON even started? Well, we got a lot of stuff wrong. I mean, we really did. We were being told by the mathematicians that, you know, if you write all of these formal methods and everything, you're going to come up with a provably secure design and you're going to be able to implement that and you're going to be able to prove that the code is correct and everybody's going to love you because your machines are going to be secure. Well, not so much. Because engineered and claims of well designed turned out to be good enough for the market. By the way, how's that working out for us? Last time I looked not so good. No one was willing to pay for this high assurance, you know, this stuff. Too expensive, too simplistic, didn't have enough features and besides, we've got DOS, we've got UNIX, we've got this MAC thing and they've got all kinds of features and all kinds of interface stuff. So what do we need with all this security stuff anyway? It just gets in the way. There was also a lot of work in the 70s and 80s on better programming languages. People actually looked at the code that people were writing and said, wow, it's amazing that you can get anything done because these programming languages are crap. And if you use these features, they lead you to write crap code. Your languages are part of the problem. They make it more difficult for you to write good code. Let's solve that with new programming languages. And then came C. How's that working out for us? So, yeah. So, but we did get a few things right. So, and if the thing, this is the money slide. These are the two money slides. Number one, software quality equals system security. Period. Full stop. The thing that goes with that is strong configuration management. But if you're coding and you're saying your code is crap, your security is crap. If you don't have decent software quality, you don't have decent security. And take a look at the CVE and the CWE and all of those and you will see that the programming languages we use make it difficult to write good code. We are not so good at the software quality thing even though there are people who actually know to help us be good, but we usually tell them to, that we're too busy. But software quality equals system security. Crypto is easy. Key management is hard. That's pretty obvious. We did get right the importance of logging and audit. We, even though the mathematicians were telling us you don't need that because your systems are going to be perfect so no one will ever get in, the little voice in our head is saying, yeah, you know, it should be good to know what happens when they do get in. So, you know, lots of logging, lots of analysis. And this, you know, led it into intrusion detection. So a lot of the intrusion detection research, you should read a book by Becky base called intrusion detection. She wrote, literally wrote the book on ID because she funded so much of it when she worked for the agency. The IDS systems also led, because of the PC explosion, we didn't really do IDS systems in a big way. We did antivirus instead. But a lot of the, you know, you've got signature based versus procedural and anomaly detection. That's why they're like twin brothers. So to wrap up, I'm going to wrap up. Please don't repeat our mistakes. Just because we're old and gray doesn't mean that we're stupid. And we weren't stupid. We were just a little naive when we were your age. There's some really good stuff out there and all the best stuff is not on the first page of Google hits. So you're going to have to dig a little bit deeper. And some of the stuff is going to be undead trees. But go find the proceedings of IEEE and NBS and all of that stuff and go find the research papers coming out of Stanford and MIT. Go find the research papers coming out of MIT and UC and all that. Computer security is more important than ever. And it's too important to be left in the hands of corporations that care about their bottom line more than they care about your privacy or governments who don't care about your privacy at all. And you are the counterweight to crap code and crap OSs and crap security. And look at the systemic problems. If you're going to go fix a bug in a piece of code, don't just go fix that bug, but then go find why that bug was made and then go find all the other bugs that were made for the same reason. And then go find all the other bugs that were made by the same person because of the language they used. Finally, I'd like to thank some folks. I'd like to thank DEF CON for inviting me back. I've been out of the business for about nine years. And thank you for being polite and giving me a break because I haven't done this for about nine years. I'd like to thank my Multics mentors and my case partners in crime. Jeff, who also was an editor of the Orange Book. Sid, TS, and Drew from SDSC who helped me with an unpleasantness a few years ago. Terry, Amanda, Todd, and my other bureau friends. And then I'd like to thank all the people who helped me. I'd like to thank Lock, Mac, Half Dime, Ian, Sven, and Hockey Geek at my current employer. And then my family for letting me come to Vegas and talk to you all. So thank you.