OpenBSD Journal

Theo on security improvements in OpenBSD

Contributed by jose on from the sheer,-rampant-paranoia dept.

Rafael Obelheiro was one of many to send us this message:
"Theo has posted on tech@ an interesting report on the security improvements recently committed to OpenBSD-current. It certainly makes me look forward to the next release. Theo's post is archived at the MARC archives "
In his post Theo gives a brief technical overview of the four major security changes in OpenBSD: POSIX page protection schemes, WxorX, read only segments, and Propolice. Not all of these are on all platforms, but every platform has some protection. To quote Theo in his message, "We feel that these 4 technologies together will be a a royal pain in the ass for the typical buffer overflow attacker."

(Comments are closed)


Comments
  1. By Anonymous Coward () on

    Nice article. Not long ago Theo was against stack protection, it's good to see things have changed in a big way.

    Comments
    1. By Ray () on

      I think his reasoning back then was, and still is, that stack protection is not a solution. It just serves to slow an attacker down. The solution always has been, and always will be, to fix the bugs that attackers are exploiting.

      Comments
      1. By Anonymous Coward () on

        In my opinion that's not more a solution as stack protection is a solution - both are nice PITAs for attackers but none is a final solution which works forever. (There'll always be new bugs in a given piece of software, I guess)

        Cheerios..

    2. By Anonymous Coward () on

      The main problem was the stackguard only worked on i386.

    3. By Bruno Rohée () bruno@rohee.com on mailto:bruno@rohee.com

      Theos's point (as in this article ) was that it was not worth the effort if other memory existed that was executable and attacker writable.

      He considered trivial to change most exploit to jump somewhere in the heap or in static data instead of jumping on the stack so just having a non executable stack did not win you much.

      Now with no memory executable and writable you get somewhere, there will perhaps still be ways to attack programs that for some reasons mprotect(x, y, PROT_EXEC) some part of the memory but that for sure is not a common behaviour.

    4. By Anonymous Coward () on

      Also, Stephanie was quite buggy.

      Comments
      1. By Anonymous Coward () on

        Yes, it *was*. Also, Stephanie never offered stack protection nor any of the recent OpenBSD security changes listed by Theo.

      2. By Anonymous Coward () on

        As someone who has a crazy ex-girlfriend named Stephanie, I found that comment hysterical.

        Comments
        1. By Anonymous Coward () on

          well you could gues that

  2. By Anonymous Coward () on

    While this sounds really nice, I do wonder when finally we get proud owners of a Crypto Filesystem by default?

    Comments
    1. By Anonymous Coward () on

      Why would you?

      Crypto filesystems are slower, and are a PITA to recover after a power failure or something. Moreover, most people don't need it, so why make it a default?
      If you want it, go ahead and use it. OpenBSD is not about enabling everything it can do out-of-the box. You enable what you want yourself.

      Comments
      1. By Anonymous Coward () on

        > Why would you?

        Because police tends to go beyond law here, and just come in and take the HDD's out from computers when they want to.

        Besides with the idiotic world leaders it's only getting worse.

        > Crypto filesystems are slower

        A P1/200 is slower then a Xeon 3,06 gHz. So? A bicycle is slower then a motorcycle. So? This is not _the_ argument not to chose a cryptofs, nor the fact that a Xeon or motorcycle is faster then P200 or bicycle is nor the main reason why you won't want the less faster one.

        > and are a PITA to recover after a power failure or something.

        If it's really important data, one would create backups, use UPS, etc. and think of this kind of disasters.

        Don't agree with the rest you said either, but it's not that important then this...

        Comments
        1. By couderc () on

          Because police tends to go beyond law here, and just come in and take the HDD's out from computers when they want to.

          I don't where is the problem in the case all you do is legal.

          Comments
          1. By Anonymous Coward () on

            Because in the current political climate that's not enough to keep many people out of prison.

            Comments
            1. By couderc () on

              You should better speak about it with the voting people in US.

            2. By tedu () on

              Police: Why is this encrypted?
              You: Don't worry, it's not subversive.
              Police: Let's check. What's the password?
              You: I forget.
              Police: Oh, ok. You're free to go then.

              Comments
              1. By Gimlet () on

                experience from a few years ago, when a not-so-security-conscious professor's Solaris box was rooted and he called the FBI for some reason...they sent their Internet "specialist" out to investigate.

                FBI: So this...ID address? That's where the hacker came from?
                Gimlet: IP address...and it's probable that the box in question was probably cracked as well
                Network admin: Oh and it was U-D-P, so he probably spoofed it.
                FBI: "Spoofed?"
                Gimlet: It's possible to lie about your IP address sometimes. With some protocols, it's pretty easy to do. This is one of them.
                FBI: So...(silence)...this could be the wrong ID address? You're telling me that it might not even be this guy?
                Network admin: Oh yeah, these hackers do it all the time.
                FBI: (already putting hat & coat on) I'll get back to you on this.

                So I'm not too worried about the cops...honestly, I worry more about people like that professor, who insist on the absence of security and have more say in the matter than an IT professional.

          2. By Anonymous Coward () on

            Privacy :-)

          3. By Anonymous Coward () on

            I don't where is the problem in the case all you do is legal.

            Sometimes the police will use any little thing they can get to get you put away. Extract something that "says something about you" to sway a jury for example. They have it in for you because they think you are guilty, then they may as well be judge and jury.

            I have personal experience with this. A friend of mine did something that is barely immoral, which was used against him as a "means to another end".

            Police entered his house and took ALL of his computers. He is now in prison. He is there because police want him there, for reasons that are well behind him and which he has already dearly paid.

            I also know someone (a completely innocent someone) who was pack raped by a group of police officers.

            You think I'm talking about some police state where life is cheap?...

            I'm talking about Eastern Australia.

            You think 100% of people in prison right now are guilty?

            Comments
            1. By couderc () on


              You think 100% of people in prison right now are guilty?


              Of course not.

        2. By Anonymous Coward () on

          You've got cops taking your hard drives away on a regular basis? Suppose this happens to everyone you know as well?

          Comments
          1. By Anonymous Coward () on

            You've got cops taking your hard drives away on a regular basis? Suppose this happens to everyone you know as well?

            Half my friends are cops, I've admin'd and otherwise worked for 3 of the largest WAN's on my continent and held extremely high security clearances, being trusted with stuff that still makes the hairs on my neck stand up. I'm a good law abiding person and I feel my friends are too.

            But even I know good people who have unjustly had their PC's taken and been locked up for petty "crimes".

    2. By Anonymous Coward () on

      It's not hard to setup. man -k vnd.

    3. By Anonymous Coward () on

      sorry but that sounds really stupid. You want to type in a password every time you turn on the computer? By default? Just to mount the root FS? What if you forget that password?

      Comments
      1. By Anonymous Coward () on

        > You want to type in a password every time you turn on the computer? By default? Just to mount the root FS?

        And how many times do i reboot? This is not MS Windows, and not i-want-to-run-the-new-kernel-of-Linux.

        And who says it's the rootfs? Might as well be /home

        > What if you forget that password?

        You don't. Because it's an important passwd. You only forget it under police interogation.

        Comments
        1. By Anonymous Coward () on

          This isn't an issue for those of us that aren't criminals and subject to police interogations.

          Comments
          1. By Anonymous Coward () on

            You are thinking too black vs. white.

            One who has problems with the police is ALWAYS a criminal. That's a fact! (it ain't).

            One who never has any problems with the police is NEVER a criminal. That's a fact! (again, it ain't).

            One who uses a CFS does always use it to hide his/her criminal activities. That's a fact! (once again, it plain ain't). One who uses OpenSSH... ahhh, never mind.

            Conclusion: your logic is flawed.

            Also, some governments/police don't like people who are critizing their behaviour......

            Comments
            1. By Anonymous Coward () on

              You totaly read me wrong. The post I was replying to suggested that people should use encrypted file systems with the sole purpose of hindering police investigations. It doesn't get much more black and white than that.

              Comments
              1. By Anonymous Coward () on

                It doesn't matter to me who wants to read the encrypted data. Wether it is a cracker, a cop, miss Curious with fysik access, some God-beeing, some local intruder.

                I want my goddamn privacy and i'll do as much as possible to increase it. CFS helps me in that way. None of them have the right to break my privacy.

                Cops are only 'good' if they don't have anything against you. When you do things they don't like (wether it's legal or not) you have a a+ Problem.

                What has been done here: http://squat.net/ascii/houtsma
                is illegal because they didn't had a warrant. And i don't want a cop to read my homedir (incluses ~/Maildir), it's none of their business, it hurts my privacy.

                Comments
                1. By Anonymous Coward () on

                  Ah, so if the police were looking at you for something you didn't do, you would waste their time by acting like you had something to hide on your computer? *nice*

                  Comments
                  1. By Anonymous Coward () on

                    Protection of privacy is not illegal. They intrude my privacy, so i need to take care to make sure that they can't.

                    MS Windows has encryption in the filesystem, too. When you have Administrator access you can just read them. Good, huh? Would you like to have it that way?

                    Why would i care that cops would waste time if they would investigate me? I'm not a criminal, and no clues could prove that. Besides that, they just throw you in jail when you ask them something or when you just stand somewhere. So why should i behave nice to them when they don't behave nice to me? Go bust real criminals instead. The big business people who use junky tricks to get even more money. Never having enought.

                    It's no secret that cryptography can be used by the Good and the Bad side. Just like guns. The US restrics cryptography due to export restrictions (read: plain paranoia) but otoh it's totally legal and easy to buy a weapon like an uzi, handgun in the local weapon store. How ironic...

                    And like i said, if the police don't like you, you have a problem. Like in the URL i posted, they do things they may not do to get information about activities and they lie about it as well. I'm don't wish to cooperate with fascists...

                    Comments
                    1. By Anonymous Coward () on

                      > Why would i care that cops would waste time if they would investigate me?

                      Time wasted on you (assuming you're innocent) would be better spent somewhere else obviously.

                      > Besides that, they just throw you in jail when you ask them something or when you just stand somewhere.

                      Right. The prisons are just FULL of people who were just standing somewhere and not actually commiting crimes.

                      Comments
                      1. By Anonymous Coward () on

                        > Time wasted on you (assuming you're innocent) would be better spent somewhere else obviously.

                        So who makes the mistake to spend time on me? Did i asked for that? No i didn't. And i didn't do anything illegal, nor i made such intentions.

                        > Right. The prisons are just FULL of people who were just standing somewhere and not actually commiting crimes.

                        Didn't wrote that. Fact is that they bust people, releasing them a few hours thereafter just because the stand somewhere near a crime. Yes, you read that right. Just to tease them, because they don't behave like the police wants them to (not with legit reasons). And no, not in a real prison but on the police office.

            2. By Anonymous Coward () on

              Also, some governments/police don't like people who are critizing their behaviour......

              Where I live, you could even get bashed by police for being a gay or drug addict.

              God help you if you're slightly attractive and they rape you.

          2. By Anonymous Coward () on

            This isn't an issue for those of us that aren't criminals and subject to police interogations.

            With the DMCA and other crazy stuff going on nowdays, who knows, you may well be a big criminal and not even realise it yet.

          3. By Anonymous Coward () on

      2. By Anonymous Coward () on

        on a laptop it is good to have encrypted filesystems

    4. By Anonymous Coward () on

      Check history of deadly.org
      and http://www.tcfs.it

      And indeed vnconfig

    5. By Rojareyn () on

      It's not installed by default but CFS is in ports.

      /usr/ports/security/cfs

    6. By Anonymous Coward () on

      I have to wonder if you have a clue...
      Install OpenBSD, leave room on hard drive.
      Install CFS from ports.
      Make partition for data you want encrypted.
      Format with cfs.
      Mount...

      Was it that hard?

  3. By zil0g () on

    weee!
    ... that about says it :)

    Theo is a good writer too, even a turdburglar like myself understood most of what he said, I like that ;)

    Proud OpenBSD User.

    Comments
    1. By Unknown () on

      Trustin' in the security of OpenBSD is not a strategy, and it is not an option.

      Comments
      1. By Lars Hansson () on

        And a big salute to another pointless post from someone who has nothing to say.
        Whine whine whine, that's all you people do.

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]