Theo de Raadt and OpenBSD
Abstract
Theo de Raadt, a Calgary programmer who grew up in South Africa, was one of the four founders of NetBSD in 1993. In December 1994 its other core members asked him to resign, citing his treatment of users and developers, and in October 1995 he started his own fork, OpenBSD. He has led it from Calgary ever since. The project made security its selling point: a file-by-file audit of its source tree from 1996, defences such as W^X and privilege separation switched on by default, and a front-page boast that the default installation has had “only two remote holes” in a very long time. Its side projects reach much further than the operating system. OpenSSH, built in 1999 from the last freely licensed version of Tatu Ylönen’s ssh, became the standard way to log in to Unix and Linux servers (by 2020 it ran on more than nine in ten SSH servers reachable on the internet); the PF packet filter replaced a firewall whose licence turned out not to be free; and LibreSSL forked OpenSSL after Heartbleed in 2014. Apart from a DARPA grant that ended in a row over his politics in 2003, the work has been paid for by donations, which more than once nearly ran out.
Calgary
De Raadt’s family had lived in eight different parts of South Africa by the time he was nine. They then moved to Canada, first to Calgary and then to Whitehorse in the Yukon, and he went back to Calgary for university. He started in electrical engineering, switched to computer science, and graduated from the University of Calgary in 1993. In the computer science department he found a VAX running Berkeley Unix: “I had discovered 4.2BSD and life was never the same again.”
When the free 386BSD stalled in the early 1990s, de Raadt was one of the four people who started NetBSD, alongside Chris Demetriou, Adam Glass, and Charles Hannum (see The BSD Family). He maintained its port to Sun’s SPARC machines and sat on its core team.
Removal from NetBSD
On 20 December 1994 Demetriou wrote to him on behalf of the core group, signed by J. T. Conklin, Demetriou, Glass, Hannum, and Paul Kranenburg. “Your abusive actions have seriously impaired the success of the NetBSD project in several ways,” the letter said. “Your actions have driven away developers or potential developers, and have alienated many users.” It concluded that “it would be in the best interest of the NetBSD project if you were to resign all official association with the project,” asked him to announce his resignation by 9 a.m. the next day, failing which core would announce it itself, and noted that his accounts had already been disabled. Glass’s public notice of 23 December gave the reason as “Theo’s long history of rudeness towards and abuse of users and developers of NetBSD,” and added that the decision “was difficult to make because Theo has a long history of positive contributions to the project.”
Over most of 1995 de Raadt tried to get commit access back. He promised that “i will not flame people on mailing lists,” wrote that “core doesn’t matter to me anymore. it’s politics. working on code matters,” and complained when his mail went unanswered. Core wanted him to agree to a set of rules for the project; he replied that more than five people had been given access without signing them. By August he was writing that he would “likely setup a seperate BSD project,” and on 4 October 1995 that cutting his ties would “finally make me free to start my own seperate project.” He later put the correspondence on his website, saying he had “been personally slandered, and people have been lied to about why OpenBSD exists.” Both sides’ letters can be read there. He describes it as everything he and core sent each other, but he left out mail that others had forwarded to him, to protect them.
OpenBSD
OpenBSD started in October 1995 as a fork of NetBSD’s development tree, between releases 1.0 and 1.1, imported on 18 October 1995 and coordinated from Calgary. It was one of the first projects to let anyone check out its source tree through anonymous CVS. Being in Canada mattered: the United States still treated strong cryptography as a munition (see The Crypto Wars of the 1990s), and the installation notes of OpenBSD 2.0 pointed out that “OpenBSD is from Canada, and export of these pieces (such as kerberosIV) to the world is not restricted.” The project’s goals still say so, along with “Be as politics-free as possible” and “Try to be the #1 most secure operating system.”
The security work began as an audit. From the summer of 1996 a team of six to twelve people went through “every critical software component” file by file, looking for ordinary bugs more than for specific security holes. The most intense period ran from late 1996 to mid-1997, and thousands of problems were fixed. The default install turned off every service that was not needed.
From there the project moved to defences that assume bugs will remain. Todd Miller and de Raadt introduced strlcpy and strlcat, safer string functions, in 1998. Niels Provos and Markus Friedl brought privilege separation to the OpenSSH server in 2002. OpenBSD 3.3 (May 2003) switched on the ProPolice stack protector across the whole system and introduced W^X, the rule that no memory page may be both writable and executable, at first only on sparc, sparc64, alpha, and hppa, with i386 and powerpc following (see Smashing the Stack). De Raadt’s own pledge of 2015 is a system call with which a program declares which of about three dozen groups of operations it will use; most attempts to step outside them kill the process. Its companion unveil, written with Bob Beck in 2018, hides every file except those a program names.
The front-page count of remote holes needs its fine print. It covers only the default installation. The first hole, in OpenSSH, was fixed on 24 June 2002. The second, an IPv6 kernel overflow reported by Core Security in 2007, was at first treated by OpenBSD as a denial-of-service bug and published on 7 March as a “reliability fix.” Two days earlier Core had told OpenBSD that it had proof-of-concept code that ran attacker code in the kernel, and on 9 March the notice was changed to “security fix.” The page now reads: “Only two remote holes in the default install, in a heck of a long time!”
OpenSSH
In 1999 Tatu Ylönen’s ssh had moved to commercial licences (see Tatu Ylönen and SSH). Version 1.2.12 was, in the OpenSSH project’s words, “the last one free enough for reuse,” and early that year Björn Grönvall had revived it as OSSH. OpenBSD developers found his work less than two months before their 2.6 release and forked it. De Raadt began by stripping out code that made the source harder to read; Provos removed the remaining encumbered cryptographic and GPL components; Friedl added newer protocol versions; Beck and Aaron Campbell handled the build and the documentation. The code was imported on 26 September 1999 and shipped with OpenBSD 2.6 on 1 December 1999. OpenSSH 2.0, with the SSH-2 protocol, followed in June 2000, and Damien Miller and others maintained a portable version for Linux and other systems.
In March 2006 de Raadt told NewsForge: “For our work on OpenSSH, companies using OpenSSH have never given us a cent.” Everything the project had ever received for it, he estimated, “might amount to $1,000.”
PF
OpenBSD had shipped Darren Reed’s IPFilter since 1996. In 2001 its licence turned out to be incompatible with OpenBSD’s requirement that software be free to use, modify, and redistribute, and it was removed. Daniel Hartmeier and Henning Brauer wrote a replacement, PF, which was imported on 24 June 2001 and released with OpenBSD 3.0 on 1 December 2001. Hartmeier described its design at the USENIX conference in 2002, writing that the project had used the opportunity to build a new filter with optimized data structures.
Money
OpenBSD has lived mainly on donations and on sales of CDs, T-shirts, and posters. For a time it also had a grant: from mid-2000 the University of Pennsylvania’s POSSE project, a $2.3 million DARPA contract, paid the salaries of de Raadt and at least three other developers. In early April 2003 The Globe and Mail quoted him saying that the US-led war in Iraq “sickens” him and that he tried to convince himself “that our grant means a half of a cruise missile doesn’t get built.” On 17 April he announced that the remaining money, about 15 percent of the grant, had been withdrawn, three weeks before a developer meeting planned in Calgary. He said the Penn professor in charge had phoned him two days earlier to say that people at the university and at DARPA were uncomfortable with his comments; the professor declined to discuss it with Computerworld, and DARPA did not reply.
In July 2007 the project set up the OpenBSD Foundation, a Canadian federally incorporated non-profit, to accept larger donations and to support OpenBSD, OpenSSH, and related projects. It is not a charity and issues no tax receipts. In January 2014 the foundation was about $20,000 short for the electricity that ran the project’s build machines, and Bob Beck warned on 14 January that “OpenBSD will shut down if we do not have the funding to keep the lights on.” Within a week, Beck said, the appeal had produced “a commitment of approximately $100,000 in donations.” A Romanian bitcoin entrepreneur, Mircea Popescu, announced on IRC that he had sponsored the project, though the foundation’s sponsor list did not yet show him.
LibreSSL
In April 2014 the OpenSSL project disclosed Heartbleed, a bug that let anyone read a server’s memory (see Volunteer-Maintained Infrastructure). On 8 April de Raadt explained on the openbsd-misc list why OpenBSD’s hardened memory allocator had not helped. Properly freed memory, he argued, would have crashed the daemon “instead of leaking your keys,” but OpenSSL kept its own cache of freed memory, on every platform, because malloc was slow “on some platforms.” He ended: “OpenSSL is not developed by a responsible team.”
On 13 April 2014 de Raadt, Ted Unangst, Bob Beck, Joel Sing, Miod Vallat, and Philip Guenther forked OpenSSL 1.0.1g as LibreSSL. Within nine days they had deleted thousands of lines, much of it support for VMS, OS/2, NetWare, classic Mac OS, and old Windows versions. The project’s first web page, set in Comic Sans, said its developers were “too busy deleting and rewriting code to make a decent web page.” The first release, LibreSSL 2.0.0, came out on 11 July 2014, and OpenBSD 5.6 (1 November 2014) was the first OpenBSD release to ship it in place of OpenSSL.
Reputation
Before interviewing de Raadt for Linux.com in 2001, Julie Bresnick found posts online describing him as “difficult.” He told her that he had never been a people person, but now was, and called the OpenBSD team “like a family.” In February 2005, at FOSDEM in Brussels, Richard Stallman presented him with the Free Software Foundation’s award for 2004, “for recognition as founder and project leader of the OpenBSD and OpenSSH projects.”
📚 Sources
- Theo de Raadt (ed.), NetBSD core correspondence, December 1994 to October 1995, theos.com (de Raadt’s introduction and reasons for publishing; the core letter of 20 December 1994 with its signatories, quotes, and deadline; Adam Glass’s notice of 23 December 1994; de Raadt’s 1995 requests and quotes; the project-rules document; the August and 4 October 1995 messages about a separate project)
- Julie Bresnick, “Theo de Raadt gives it all to OpenBSD,” Linux.com, 30 January 2001 (childhood in South Africa, Calgary and Whitehorse, University of Calgary 1993, the VAX and 4.2BSD quote, October 1995, donations and merchandise, “difficult,” never a people person, “like a family”)
- OpenBSD project goals (Canada and crypto export, “politics-free,” “#1 most secure”)
- OpenBSD security page (audit since summer 1996, six to twelve members, file-by-file, late 1996 to mid-1997, secure by default)
- OpenBSD/i386 2.0 installation notes (“OpenBSD is from Canada” quote, audit of critical components)
- OpenBSD innovations (strlcpy/strlcat 1998, W^X and stack protector in 3.3, privilege separation 2002, pledge 2015, unveil 2018, OpenSSH import and authors, PF import and release, LibreSSL founders and fork of 1.0.1g)
- OpenBSD 3.3 release page (1 May 2003, W^X on sparc, sparc64, alpha, and hppa only), OpenBSD 3.0 (1 December 2001), OpenBSD 2.6 (1 December 1999), OpenBSD 5.6 (1 November 2014)
- OpenBSD manual pages: pledge(2) (about three dozen subsystems, violations kill the process, first in OpenBSD 5.9) and unveil(2) (first in OpenBSD 6.4)
- OpenBSD home page (current wording of the remote-holes slogan, OpenBSD Foundation funding)
- OpenBSD 3.1 errata, item 006, 24 June 2002 (the 2002 OpenSSH hole)
- Core Security, “OpenBSD’s IPv6 mbufs remote kernel buffer overflow,” CORE-2007-0219, 13 March 2007, via Bugtraq (first treated as denial of service, OpenBSD told on 5 March of proof-of-concept kernel code execution, “reliability fix” of 7 March, “security fix” on 9 March 2007, default install affected)
- Peter N. M. Hansteen, “What every IT person needs to know about OpenBSD Part 1: How it all started,” APNIC Blog, 28 October 2021 (fork from NetBSD in October 1995, coordination from Canada, anonymous CVS)
- OpenSSH project history (ssh 1.2.12 “the last one free enough for reuse,” Grönvall’s OSSH, the two-month fork, team roles, import on 26 September 1999, OpenBSD 2.6, OpenSSH 2.0 in June 2000, the portable version)
- Manolis Tzanidakis, “Interview: Theo de Raadt of OpenBSD,” NewsForge, 28 March 2006, via InfoSec News (“never given us a cent,” “$1,000”)
- Daniel Hartmeier, “Design and Performance of the OpenBSD Stateful Packet Filter (pf),” USENIX 2002 Annual Technical Conference, FREENIX Track, pp. 171–180 (IPFilter in OpenBSD since 1996, its removal over the licence, the optimized data structures, PF in OpenBSD 3.0)
- Grant Gross, “DARPA pulls funding for OpenBSD, leader says,” IDG News Service/Computerworld, 18 April 2003 ($2.3 million POSSE grant awarded in mid-2000, salaries of de Raadt and at least three developers, 15 percent unspent, the Globe and Mail comments and the cruise-missile quote, Jonathan Smith’s call, the Calgary hackathon of 8 to 20 May, no comment from Penn or DARPA)
- Ken Westerback, “The OpenBSD Foundation,” OpenCON 2008 (Canadian federally incorporated non-profit, organisation complete in July 2007, not a charity) and Linux.com, “OpenBSD Foundation Created,” 26 July 2007 (larger donations)
- OpenBSD Foundation (Canadian not-for-profit, supported projects)
- John Leyden, “OpenBSD rescued from unpowered oblivion by $20k bitcoin bailout,” The Register, 20 January 2014 ($20,000 electricity shortfall, Beck’s 14 January warning, Popescu’s IRC announcement and the sponsor-list caveat)
- Klint Finley, “Bitcoin Baron Keeps a Secretive Open Source OS Alive,” Wired, 22 January 2014 (Beck’s “approximately $100,000”)
- Theo de Raadt, “Re: FYA: http://heartbleed.com/,” openbsd-misc, 8 April 2014 (OpenSSL’s freelist wrapper, “OpenSSL is not developed by a responsible team”)
- LibreSSL releases (LibreSSL 2.0.0 of 11 July 2014 as the first release)
- OpenBSD CVS log of
src/Makefile(initial import of the NetBSD tree on 18 October 1995) - Rapid7, “NICER Protocol Deep Dive: Secure Shell (SSH),” 28 August 2020 (OpenSSH on about 92 percent of fingerprinted SSH services)
- Iain Thomson, “OpenSSL code beyond repair, claims creator of ‘LibreSSL’ fork,” The Register, 22 April 2014 (thousands of lines deleted, VMS, OS/2, NetWare and other platforms, the Comic Sans page, planned for OpenBSD 5.6)
- Free Software Foundation, “Theo de Raadt presented with the 2004 Free Software Award,” 26 February 2005 (FOSDEM, Stallman, citation)
- Image: Theo de Raadt 2013.jpg by FAndrey (CC BY 2.0), via Wikimedia Commons