Re: RFC: backporting GEOM to the 4.x branch

From: ALeine (aleine_at_austrosearch.net)
Date: 02/27/05

  • Next message: Maxim Sobolev: "Re: RFC: backporting GEOM to the 4.x branch"
    Date: Sat, 26 Feb 2005 19:00:06 -0800 (PST)
    To: elric@imrryr.org
    
    

    elric@imrryr.org wrote:

    > [ cc'ing tech-security@NetBSD.org, because there has been talk
    > of GBDE there in the past.]
    >
    > Well, I thought that since I saw this:
    >
    > ALeine wrote a while ago:
    > >df@xxxxxx wrote:
    > >>
    > >> Wouldn't be easier porting cgd* from NetBSD ?
    > >>
    > >> * http://www.netbsd.org/guide/en/chap-cgd.html
    > >
    > >Perhaps, but I believe GBDE to be superior to CGD for a number
    > >of reasons, one of the most important being that with GBDE you
    > >can change the passphrase without re-encrypting the entire disk,
    > >which is not the case with CGD, AFAIK. From Poul-Henning Kamp's
    > >paper on GBDE:
    >
    > That, as the author of CGD, I should respond to some common
    > misconceptions about my work which seem to be percolating around.
    >
    > First, on the capability front, you can:
    >
    > 1. change the passphrase on a disk without re-encrypting it,
    > 2. have as many passphrases as you would like to configure,
    > 3. use n-factor authentication with arbitrary large n.
    >
    > Also, GBDE has a number of serious drawbacks. All of which would
    > be show-stoppers if I were considering using it for serious security
    > work, or even use in a production environment.
    >
    > There is no protection _at_all_ against dictionary attacks. Where
    > CGD uses PKCS#5 in a completely standard way to frustrate dictionary
    > attacks, GBDE does exactly nothing. In fact, worse than nothing.
    > It is possible to conduct half of the dictionary attack offline,
    > so the actual online portion of the attack is something that my
    > laptop could make about 2^30 guesses in a couple of hours. So, it
    > is insecure from the start.
    >
    > GBDE has no facility for using different encryption algorithms than
    > the rather... interesting one that it comes with. There is no
    > way to trade speed and security for different use cases, and the
    > only algorithm that it comes with is very slow. Less than half
    > the performance of CGD's most secure algorithm (AES256).
    >
    > So, now that we've touched on the security problems... Let's think
    > about using GBDE in production. Please reference
    >
    > http://phk.freebsd.dk/pubs/bsdcon-03.gbde.paper.pdf
    >
    > And read Section 7.5, and refer to figure 2.
    >
    > Each disk write involves two writes to the disk. Where is the
    > journal? I do not see any talk about a journal in the paper, or
    > the GBDE source code. Hence, if the OS crashes or if a removable
    > disk is removed at the wrong time, etc. etc. it is possible that
    > only one of those writes would succeed. I think that we can all
    > see where this is going.
    >
    > --
    > Roland Dowdeswell http://www.Imrryr.ORG/~elric/

    Thank you for taking the time to write that very informative post.
    I was not fully aware of all the issues you raised here, I'll look
    into them. In the meantime maybe someone more familiar with GBDE
    than myself could share their comments. I am CC:-ing this to
    freebsd-hackers@freebsd.org as well since I originally posted
    there as well.

    ALeine
    ___________________________________________________________________
    WebMail FREE http://mail.austrosearch.net
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Maxim Sobolev: "Re: RFC: backporting GEOM to the 4.x branch"

    Relevant Pages

    • FUD about CGD and GBDE
      ... If an attacker decides to attack a GBDE encrypted disk by brute-forcing ... A brute force attack on a single sector in a trivial disk encryption ...
      (freebsd-hackers)
    • Re: FUD about CGD and GBDE
      ... >your data is safe on the disk, both with GBDE and CGD. ... depending on where you decide to attack. ... With GBDE the keys used to encrypt each of the key-key sectors ...
      (freebsd-hackers)
    • Re: Crypted Disk Question
      ... We're talking about GBDE here, ... all adversaries are clueless" assumption is not ... If somebody gets caught with a disk which contains a lump of data ... attacker has gotten a bit for bit copy of the disk, ...
      (freebsd-hackers)
    • Re: Cant mount encrypted drive
      ... Also checking disk surface may not hurt. ... that you may not have gbde support activated in you kernel. ... Did you include gbde in you new kernel config or do you have the ... I have had the encrypted partition for about five months with no problems until today. ...
      (freebsd-stable)
    • Re: RFC: backporting GEOM to the 4.x branch
      ... > sector to the write of another sector for this reason. ... I find using a single key for the whole disk less secure and not ... to the current implementation of GBDE. ... the encryption of the rest of the disk. ...
      (freebsd-hackers)