OpenBSD Moving Towards Signed Packages — Based On D. J. Bernstein Crypto
ConstantineM writes "It's official: 'we are moving towards signed packages,' says Theo de Raadt on the misc@ mailing list. This is shortly after a new utility, signify, was committed into the base tree. The reason a new utility had to be written in the first place is that gnupg is too big to fit on the floppy discs, which are still a supported installation medium for OpenBSD. Signatures are based on the Ed25519 public-key signature system from D. J. Bernstein and co., and his public domain code once again appears in the base tree of OpenBSD, only a few weeks after some other DJB inventions made it into the nearby OpenSSH as well."
I'm surprised that this wasn't implemented a long time ago. Even Windows has had signed code for quiet some time.
Sig: I stole this sig.
But I found that the marker caused some skin irritation. Anyone else find this, or figure out a good treatment?
What does openBSD have to do with tattooing your Johnson?
DJB accepted NSF grants?!!
Being limited by floppy disk support requirement sounds like a bad joke. Is that really relevant for any computer which is not hopelessly antiquated in 2014? For reference, Apple stopped shipping floppy disk drives by default in 1998.
Do they even make those anymore?
I thought those things went the way of copper plate photography and arsenic based treatment for syphilis.
I haven't had a computer with a floppy drive in 10 years (or ever if you want to be pedantic about it).
Nah, too easy.
#DeleteChrome
Prove it
I cannot find a back reference right now, but didn't DJB switch away from FreeBSD to Ubuntu precisely because of the signed packages?
I call bullshit: /usr/bin:
Copied right from
"-rwxr-xr-x. 1 person staff 744K Nov 11 2010 gpg"
Packed with upx --best: (note this runtime unpacks, there is no loader library etc)
"-rwxr-xr-x. 1 person staff 327K Jan 19 05:40 gpg"
I should note this is a static binary.
For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
I started using OpenBSD in 1998. It was a viable, timely competitor to Linux at the time, especially for building firewalls as such.
OpenBSD is a great example of what happens when you make life too difficult for end users and administrators in the name of Security. OpenBSD has never embraced the most recent release of anything -- if it's new, by definition it's insecure and it can't be trusted. Ergo, if you have to demonstrate the latest technology in whatever you're doing, you start with a Linux distribution.
From the article: "We wanted a tool that would fit on installation media, which meant minimizing code size and external dependencies." That's the breakage mode, in a nutshell. NO ONE in the world has been clamoring for an OpenBSD signing tool that runs on a floppy. But the designers are imagining the user requirements based on their own biases. This way lies the death of any commercial or open source software product.
Itanium is the way forward
You might want to rethink that "limited by floppy disk support" or "bad joke."
They obviously aren't since they released the new feature and are still supporting install via floppy. For reference Apple can suck OpenBSD's dick.
I bet you think noone still uses mag-tape storage...
Many members are up in arms over the large new utility: "Programmers these days with their fancy new computers and their gigantic 'five and a quarter' new-age magnetic spinning discs are constantly looking down on us 'old-fashioned' punch-card programmers. Why can't they write a new utility that supports six rows of 8-bit EBCDIC? Laziness. This just proves that OpenBSD don't care about small, home-built systems. Sixty four bytes is big enough for anybody."
Daniel
$ ls -lh `which gpg` /usr/pkg/bin/gpg
/usr/pkg/bin/gpg: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 6.1.2, stripped
/usr/pkg/bin/gpg: /usr/lib/libintl.so.1 /usr/lib/libgcc_s.so.1 /usr/lib/libc.so.12 /usr/lib/libz.so.1 /usr/lib/libbz2.so.1
-rwxr-xr-x 1 root wheel 892K Jan 19 06:09
$ file !$
file `which gpg`
$ ldd !$
ldd `which gpg`
-lintl.1 =>
-lgcc_s.1 =>
-lc.12 =>
-lz.1 =>
-lbz2.1 =>
$ uname -rsm
NetBSD 6.1.2 amd64
So your statically linked gpg binary is smaller than my dynamically linked gpg binary on the closely related NetBSD.
That does not seem legit, please run the commands I ran, on the not-upx'ed binary and post the results.
CLI paste? paste.pr0.tips!
I know dupes are a long time Slashdot tradition, so I'm asking: is this a dupe from 1995 or something? Because it sure feels like it.
I read a story about Theo having a hard time keeping all the servers running and hoped a company would pick up the tab --for no compensation. I know that Theo might be having problems, but then I heard the story of about 3 million ATM's running 12 year old versions of windows that are nearing EOL. I thought about Theo and openBSD. Linus Torvalds has knocked it for everything, except security. Its quite poor (slow, inefficient) at doing just about everything else, except security, and I thought about all those ATMs. An ATM doesn't need much. It needs to read a few inputs, a few drivers for counting money, and it needs a very secure network connection. openBSD is absolutely perfect for use in ATMS. If just 1 bank adopted openBSD for their ATMs, they would likely save Theo's costs, and would likely see wider adoption.
I'm not as familiary with RedHat or SuSe archives, but I did a little digging over at debian.org.
The debian-archive-keyring package changelog shows an initial release on 10 January 2006, or eight years ago.
Digging deeper, the devscripts changelog shows the signchanges program (now called debsign) was added in July 1999. The changelog entry implies that it was to aid an already existing signing system, so Debian has had it for about 15 years, possibly longer.
Now consider that Debian has a reputation as a late adopter.
Its dead to me. I've turned my back on more than one project (security software, no less) because the author demanded I take a leap of faith with unsigned code.
Charlatans.
Soon enough if they don't get donations totalling $20,000 to pay their power bill.
http://bsd.slashdot.org/story/14/01/15/1719244/openbsd-looking-at-funding-shortfall-in-2014
Seems the above poster knows almost nothing about openbsd, has formed an ignorant opinion and is arrogantly using that to accuse people of arrogance.
A lot of people use ports instead of packages. Packages are seen as the convenient alternative that is the inflexible and insecure way to install things.
I note that the crypto software used, is based on an elliptic curve designed by the NIST.
I am not any kind of crypto guy, but IIRC these elliptic curves rely on some magic constants. No one has ever explained how these magic constants were obtained. There has always been some suspicion, now heightened, that the NSA asked the NIST to deliberately choose constants that would allow the NSA to break the encryption as needed.
So why did DJ Bernstein and Co not design their own elliptic curve?
pgmer6809
This is probably because they want the signature checker to fit in the CD boot loader. For historical reasons, bootable CDs imitate a floppy during the initial boot process, and contain an image of a 1.44MB floppy with a FAT file system. When you boot an PC-type x86 machine from CD, that simulated floppy (the file "floppy54.fs" for OpenBSD) is read by the BIOS and a file from it is executed.
This process is so retro that the initial program loaded is executed in 16-bit X86 mode.
And asked why so many commercial operating systems still have nothing as advanced as the ZFS on *bsd in 2014.
It will take than long to get a greatly improved MS system win10, Windows RAP or whatever they want to call it.
It makes a grown man cry.
Its dead to me. I've turned my back on more than one project (security software, no less) because the author demanded I take a leap of faith with unsigned code.
Whatever you're talking about, it seems to have little to do with the matter being discussed.
CLI paste? paste.pr0.tips!
All 2 users of floppy drives were very happy, rest 5 didn't care.
I hope they're not actually using RC4 in any capacity anymore. (It's referenced in that code.)
ChaCha20 would be a suitable drop-in replacement.
I'm surprised that this wasn't implemented a long time ago. Even Windows has had signed code for quiet some time.
This is a good step forward, but the main reason it probably wasn't done earlier is because most folks build from source on the BSDs. When the tarball is fetched, its checksum is verified on download:
http://www.openbsd.org/cgi-bin/cvsweb/ports/archivers/bzip2/distinfo?rev=1.8
http://svnweb.freebsd.org/ports/head/archivers/bzip2/distinfo?revision=300895&view=markup
You then do a "make package" to build the binary package locally (with any options you want), and install from there.
Signed packages are great. Now several projects are moving to "deterministic builds" and one can only hope the pace quickens.
Deterministic builds allows compiling on different machines (even potentially compromised ones) and verify that the end-results are identical (hence lowering the probability that they've been "tainted" by backdoored compiler/OS/hardware during compilation/build).
This *is* the future. And we're gonna get there.
Won't this increase their electricity bill?
Except for the preamble, not a single fucking comment in the entire source file.
Way to go....
I am sure it will be easily maintainable by someone else in the future and they won't make any mistakes..
And here the whole time I though disk was the short form of Computer Diskette as a portable media. As the compact disc was a compact version of the laser disc media it replaced. Lets not get into an argument over Dvd being digital video disc as we all know video is now not the only thing that is stored on it.
I already have heard about a lawyer who got into computation, but certainly because he got screwd with drugs or somehting worse, since the guy was slow, pratically a retart. As where I live, if someone get arrested by anything, You can't get a public service anywhere, neither private because most of law firms will analyse the applicant's back story.
So you never used or head of ports? No sir, you are the charlatan, passing yourself as someone knowledgeable.
But ARM may live on because of economics, like how intel won because in the 90's because of economics!
I haven't seen a floppy disk for sale in well over a decade. Most major stores don't even sell DVD blanks.
With all this talk about NSA's fingers getting into computers at the hardware level, wouldn't you prefer your ultra-secure system to date back to before the Patriot Act at the very least?
Great. Glad they did it.
Finally. BSD is just up to the late 1990s. RedHat had their RPM in 1997 and I think by 1999 even Microsoft signed their stuff. If it weren't for the done for FREE port for Apple, I think it would have died years ago.
Bring more stuff into the kernel and maybe I'll consider trying it again.
For what it's worth, it would seem like [a different kind of?] a package signature system was actually supported since 2010, it's just that the official packages were never signed.
http://www.openbsd.org/faq/faq15.html#PkgSig
Revision 1.71:
Sat Jul 17 09:02:47 2010 UTC (3 years, 6 months ago) by ajacoutot
Changes since revision 1.70: +65 -1 lines
Add a "Package signatures" section to teach people how to create and use
signed packages. Still opened for enhancement but all info is there now.
gosgog:
FLOPPY DISCS HA! HA! HA! do you have outdoor plumbing too? & How about the Sears Catalog in it, bet you walked to school and had no shoes too!