Wilders Security Forums  

Go Back   Wilders Security Forums > Privacy Related Topics > privacy general
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old July 3rd, 2009, 12:30 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default New Attacks on the AES

Perhaps some of you have read Schneier's blog post, regarding the new attacks on the AES, by Biryukov et al. In short, while these attacks are faster than exhaustive search, they are still impractical, and apply only to the AES when used with 192-bit and 256-bit keys -- not 128-bit keys. The authors created a convenient FAQ that should answer most everyone's concerns. Of course, I'll do my best to provide clarifications. This is good cryptanalysis, but it doesn't call for panic; it does, however, call for attention.

Edited to add:

I read two earlier papers about these attacks here and here. A more recent paper can be found here.

Last edited by Justin Troutman : July 4th, 2009 at 07:05 PM.
  #2  
Old July 3rd, 2009, 05:11 PM
box750's Avatar
box750 box750 is offline
Frequent Poster
 
Join Date: Nov 2008
Posts: 244
Default Re: New Attacks on the AES

That is why always that it is possible I go for cascade algorythms (Truecrypt allows it), such as a combination of AES-Serpent, in that case they will have to find a vulnerability not only in AES but also Serpent, making cracking of the encryption more difficult.
__________________
My security blog: http://www.hacker10.com
  #3  
Old July 3rd, 2009, 05:15 PM
StevieO's Avatar
StevieO StevieO is offline
Frequent Poster
 
Join Date: Feb 2006
Posts: 1,068
Default Re: New Attacks on the AES

Hi, interesting how it seems to be working on the higher bits. I would have expected it to be vice versa !

Only just read this thread, so havn't had chance to read the links yet, thanx.
  #4  
Old July 3rd, 2009, 06:08 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default I disagree.

Quote:
Originally Posted by box750
That is why always that it is possible I go for cascade algorythms (Truecrypt allows it), such as a combination of AES-Serpent, in that case they will have to find a vulnerability not only in AES but also Serpent, making cracking of the encryption more difficult.

Actually, this is contrary to what I've always promoted. Bear in mind that this is what you might call a "certificational" weakness or "academic" attack; it isn't in the realm of practicality.

Cryptography is arguably the strongest layer of the proverbial security onion, and when it does fail, it's almost never because of the mathematics; it's because of the implementation. History reinforces this.

As such, design decisions should cater to the simplicity of the implementation. Cramming in multiple block ciphers and cascades only adds complexity to the implementation; complexity is security's -- and a cryptographic implementation's -- worst enemy.

Even Serpent's co-designer, Ross Anderson, echoes this. Read Ross's thoughts on this on page 94, in Chapter 5 of his book, Security Engineering: A Guide To Building Dependable Distributed Systems. Quoting Ross:

Quote:
Originally Posted by Ross Anderson
It does not make any sense to implement Serpent as well, ‘just in case Rijndael is broken’: the risk of a fatal error in the algorithm negotiation protocol is orders of magnitude greater than the risk that anyone will come up with a production attack on Rijndael. (We’ll see a number of examples later where using multiple algorithms, or using an algorithm like DES multiple times, caused something to break horribly.)

Folks mistakingly dwell on the cryptography itself, when it's the implementations that are most vulnerable. Cryptanalytical progress is inevitable, and certainly worthy of prompt attention, but let's not let it distract us from the real problem.
  #5  
Old July 3rd, 2009, 06:13 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by StevieO
Hi, interesting how it seems to be working on the higher bits. I would have expected it to be vice versa !

Indeed, this seemingly counterintuitive happening has many scratching their heads.

Quote:
Originally Posted by StevieO
Only just read this thread, so havn't had chance to read the links yet, thanx.

No problem. The papers are dense jungles of mathematical foliage, so beware!
  #6  
Old July 4th, 2009, 09:34 AM
lotuseclat79 lotuseclat79 is offline
Very Frequent Poster
 
Join Date: Jun 2005
Posts: 1,911
Default Re: New Attacks on the AES

Justin,

Your link to the blog post is broken in your first post. You need to edit the underscores to dashes to fix the link.

-- Tom
  #7  
Old July 4th, 2009, 12:31 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by lotuseclat79
Justin,

Your link to the blog post is broken in your first post. You need to edit the underscores to dashes to fix the link.

-- Tom

Thanks a lot, Tom. I probably wouldn't have noticed that. Last night, while reading the comments in this thread, I clicked on that link to Schneier's blog, and noticed the error; at that point, I manually went to schneier.com/blog and noticed that it was down for maintenance. I mistakingly attributed the error to that. Cheers, and a happy 4th.
  #8  
Old July 5th, 2009, 12:58 PM
Gusapat Gusapat is offline
Infrequent Poster
 
Join Date: Jul 2009
Posts: 2
Default Re: New Attacks on the AES

AES is good.
  #9  
Old July 6th, 2009, 12:09 PM
Pleonasm Pleonasm is offline
Very Frequent Poster
 
Join Date: Apr 2007
Posts: 1,201
Default Re: New Attacks on the AES

For readers of this thread who may not have visited some of (very informative) links provided in prior posts, it may be wise to briefly consider the conclusion of Bruce Schneier in order to place this issue in perspective:

Quote:
While this attack is better than brute force -- and some cryptographers will describe the algorithm as "broken" because of it -- it is still far, far beyond our capabilities of computation. The attack is, and probably forever will be, theoretical.

Source: Schneier on Security
__________________
ple • o • nasm n. “The use of more words than are required to express an idea”
  #10  
Old July 7th, 2009, 01:36 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by Pleonasm
For readers of this thread who may not have visited some of (very informative) links provided in prior posts, it may be wise to briefly consider the conclusion of Bruce Schneier in order to place this issue in perspective:

True; that is important to note. However, it's important to note that while this particular attack model (related-key*) might not have a significant impact in a scenario where an adversary can't choose the key, such as using a block cipher for encryption, it very well may have a significant impact in a scenario where an adversary can influence the key, such as using the block cipher as a hash function. In short, while an attack may not affect the breaking of one primitive, it may affect the making of another.

* In this model, we assume that an adversary can obtain the ciphertexts that correspond to plaintexts of his choice, encrypted under an unknown key, k, as well as the ciphertexts corresponding to plaintexts encrypted under a second key, k', where (k' xor k) is chosen by the adversary.
  #11  
Old July 7th, 2009, 05:40 PM
Pleonasm Pleonasm is offline
Very Frequent Poster
 
Join Date: Apr 2007
Posts: 1,201
Default Re: New Attacks on the AES

Quote:
However, it's important to note that while this particular attack model (related-key*) might not have a significant impact in a scenario where an adversary can't choose the key, such as using a block cipher for encryption, it very well may have a significant impact in a scenario where an adversary can influence the key…
So, to clarify, a practical lesson from this research is to always generate your own private/public keys (rather than obtaining them elsewhere), to ensure that an adversary hasn’t influenced their construction?
__________________
ple • o • nasm n. “The use of more words than are required to express an idea”
  #12  
Old July 7th, 2009, 07:56 PM
caspian's Avatar
caspian caspian is offline
Very Frequent Poster
 
Join Date: Jun 2007
Location: Oz
Posts: 1,806
Default Re: I disagree.

Quote:

Folks mistakingly dwell on the cryptography itself, when it's the implementations that are most vulnerable. Cryptanalytical progress is inevitable, and certainly worthy of prompt attention, but let's not let it distract us from the real problem.

Justin, for a person like me who does not know much, what method of encryption would you recommend? TrueCrypt? Axcrypt?
__________________
A Billion for a Billion

http://www.wfp.org/1billion
  #13  
Old July 8th, 2009, 05:16 AM
stap0510 stap0510 is offline
Regular Poster
 
Join Date: Aug 2008
Posts: 104
Default Re: New Attacks on the AES

Is this attack also dependent to a kind of mode you are using?
So is there a difference in cracking the encyption based on the difference for like saying...ECB of some block-chaining mode of operation?
  #14  
Old July 12th, 2009, 01:12 AM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by Pleonasm
So, to clarify, a practical lesson from this research is to always generate your own private/public keys (rather than obtaining them elsewhere), to ensure that an adversary hasn’t influenced their construction?

Not exactly. I'm not referring to asymmetric cryptography or key derivation.

Quoting Lucks from a paper on related-key cryptanalysis:

Quote:
In a related-key scenario, the adversary can partially control the key. It remains secret to the adversary (i.e., she can't read it), but she can choose key transformations, modify the key accordingly, and request encryptions under the modifed keys. The well-known DES complementation property can be viewed as a vulnerability against a related-key DES-distinguisher.

Quoting Ferguson, Kelsey, Schneier, and Whiting, in a paper regarding related-key attacks on reduced-round Twofish:

Quote:
In a related-key attack, the attacker is permitted to request encryptions under a number of different keys. He is allowed to choose the relationship between
the keys, but not the keys themselves. An attacker can exploit a weak key pair to mount a related key attack. He requests a large set of keys, with some simple relationship (such as a fixed xor between pairs of keys), and hopes to end up with a weak key pair. He then mounts an attack to detect this weak key pair.

This is strictly within the context of symmetric cryptography.

Quote:
Originally Posted by caspian
Justin, for a person like me who does not know much, what method of encryption would you recommend? TrueCrypt? Axcrypt?

I have confidence in PGP Corporation's ability to build good cryptographic software, so I would recommend their offerings. AxCrypt is the only file encryption software that I'm aware of that is seemingly IND-CCA2 /\ INT-CTXT secure (AES-CBC-then-HMAC-SHA-1), although I haven't analyzed the implementation in order to verify it. I really like the designer's simplistic approach, though. As for TrueCrypt, I've always been hopeful that it will "be a good role model," given its cult following that hasn't been seen since PGP, but I remain uneasy about the developers' lack of interaction. At least, I've made several efforts to contact them, with no luck. I'll give them the benefit of the doubt though, and write it off as them not receiving my messages. I disagree with some of the algorithmic design decisions, but they seem to be trying to keep up with disk encryption trends. They could do better. All in all, it's probably decent software. I hope it is. Despite my predominantly critical views towards TrueCrypt, I'm actually rooting for the project.

Quote:
Originally Posted by stap0510
Is this attack also dependent to a kind of mode you are using?
So is there a difference in cracking the encyption based on the difference for like saying...ECB of some block-chaining mode of operation?

The related-key attacks are against the key schedule of the AES, which doesn't concern the mode of operation. Speaking of modes, however, ECB is deterministic and stateless; any deterministic and stateless encryption scheme is insecure, regardless of how strong the underlying block cipher is. Given that, AES-ECB is insecure, while AES-CBC is secure, if we assume that the AES is secure.
  #15  
Old July 12th, 2009, 03:55 AM
demoneye's Avatar
demoneye demoneye is offline
Very Frequent Poster
 
Join Date: Dec 2007
Location: ISRHell
Posts: 1,212
Default Re: New Attacks on the AES

Justin Troutman

say , what the best implementation software u recommended for AES ?
what about Folder Lock ? it uses aes 256 also ...


10x
__________________
Eaz Fix 10
WINDOWS 8 FIREWALL
Sandboxie (64-bit)
Secuirty software no.1~> YOUR SKILLS
Prevention is better than the cure
using win 8 Pro X64

Last edited by demoneye : July 12th, 2009 at 04:25 AM.
  #16  
Old July 12th, 2009, 10:41 AM
stap0510 stap0510 is offline
Regular Poster
 
Join Date: Aug 2008
Posts: 104
Default Re: New Attacks on the AES

Quote:
Originally Posted by demoneye
Justin Troutman

say , what the best implementation software u recommended for AES ?
what about Folder Lock ? it uses aes 256 also ...


10x
Or what about Truecrypt for that matter.
I hope Truecrypt would stand even a theoratical attack like this.
  #17  
Old July 12th, 2009, 12:32 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by demoneye
say , what the best implementation software u recommended for AES ?
what about Folder Lock ? it uses aes 256 also ...

From experience, I can only recommend the offerings of PGP Corporation, primarily because I trust their ability to securely implement cryptography. I'm not sure about Folder Lock; it doesn't appear to use a MAC, so I am not optimistic about its ability to preserve integrity. Furthermore -- and I just discovered this while reading their site -- they say:

Quote:
Encryption process guarantees the full integrity of information.

Encryption provides confidentiality -- not integrity. Oftentimes, even confidentiality can be lost without integrity protection. Given that, I'm not convinced that they possess the ability to design good cryptographic software.

Quote:
Originally Posted by stap0510
Or what about Truecrypt for that matter.
I hope Truecrypt would stand even a theoratical attack like this.

Keep in mind that these attacks examine the use of the AES as a hash function, while most real-world applications use the AES as a block cipher -- the latter application of which the AES is hardened rather. That being said, I'm not aware of any cryptographic software that is immediately affected by this.
  #18  
Old July 12th, 2009, 05:47 PM
Leonid Leonid is offline
Infrequent Poster
 
Join Date: Dec 2008
Posts: 42
Default Re: New Attacks on the AES

Justin, I tried Folder Lock. It's a moneystealer. It does not provide anything worth mentioning really. If you open secret files hidden by Folder Lock, and if your comp is turned off or restarted for any reason (system crash, power outage), files "hidden" by Folder Lock will remain visible when you boot the system again.

Also, from my experience, Folder Lock can damage your data located on your hard drive during uninstallation.
  #19  
Old July 13th, 2009, 12:20 PM
chronomatic chronomatic is offline
Very Frequent Poster
 
Join Date: Apr 2009
Posts: 1,324
Default Re: New Attacks on the AES

Quote:
Originally Posted by demoneye
Justin Troutman

say , what the best implementation software u recommended for AES ?
what about Folder Lock ? it uses aes 256 also ...


10x

Use GnuPG for e-mail encryption and Truecrypt for disk encryption.

Never use an encryption product where the source code is closed. Both GnuPG and Truecrypt are 100% open-source. So, even if the Truecrypt developers are a bit secretive, their code speaks for itself. If there were major flaws with it, they would have been discovered by the plethora of paranoid technical people who examine the code.
  #20  
Old July 13th, 2009, 08:00 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by chronomatic
Use GnuPG for e-mail encryption and Truecrypt for disk encryption.

Never use an encryption product where the source code is closed. Both GnuPG and Truecrypt are 100% open-source. So, even if the Truecrypt developers are a bit secretive, their code speaks for itself. If there were major flaws with it, they would have been discovered by the plethora of paranoid technical people who examine the code.

I'm certainly a proponent of the open-source model, but I think it's important that I play the devil's advocate here, by saying that open-source isn't inherently more secure than closed-source; what it has, though, is the potential to be. The "many eyes" defense is only half right; it doesn't matter how many eyes are looking if the right eyes aren't looking. I've worked on both open-source and closed-source security projects before, and there were instances where the closed-source implementations were more secure than the open-source implementations. When the conclusion presented itself, it turns out that the entity developing the closed-source implementation had the monetary resources to hire a select group of the right eyes, whereas the group responsible for the open-source implementation did not, thus relying on a large, but untrained, community of eyes. (Note: I'm not saying this because you implied otherwise; it's just something I wanted to share, in general.)

Has anyone published a significant analysis of TrueCrypt? I know of a paper by A. Czeskis, D. J. St. Hilaire, K. Koscher, S. D. Gribble, T. Kohno, and B. Schneier, titled, "Defeating Encrypted and Deniable File Systems: TrueCrypt v5.1a and the Case of the Tattling OS and Applications," but that's about it.
  #21  
Old July 13th, 2009, 08:36 PM
lakecliff lakecliff is offline
Infrequent Poster
 
Join Date: Jul 2009
Posts: 6
Default Re: New Attacks on the AES

Quote:
Cryptography is arguably the strongest layer of the proverbial security onion, and when it does fail, it's almost never because of the mathematics; it's because of the implementation. History reinforces this.

As such, design decisions should cater to the simplicity of the implementation. Cramming in multiple block ciphers and cascades only adds complexity to the implementation; complexity is security's -- and a cryptographic implementation's -- worst enemy.
Sounds comprehensible.
  #22  
Old July 14th, 2009, 02:44 PM
Pleonasm Pleonasm is offline
Very Frequent Poster
 
Join Date: Apr 2007
Posts: 1,201
Default Re: New Attacks on the AES

Quote:
I have confidence in PGP Corporation's ability to build good cryptographic software…
Users who are evaluating encryption software may wish to check if that software is FIPS 140-2 certified, which is the case with PGP: “FIPS 140-2 validation provides independent assurance that the standard cryptographic algorithms … are implemented correctly” (see here).

Quote:
Has anyone published a significant analysis of TrueCrypt?
I’m not aware of one. And, to the best of my knowledge, TrueCrypt is not FIPS 140-2 certified.
__________________
ple • o • nasm n. “The use of more words than are required to express an idea”
  #23  
Old July 14th, 2009, 03:23 PM
LockBox LockBox is offline
Very Frequent Poster
 
Join Date: Nov 2004
Posts: 2,079
Default Re: New Attacks on the AES

Quote:
Originally Posted by Pleonasm
Users who are evaluating encryption software may wish to check if that software is FIPS 140-2 certified, which is the case with PGP: “FIPS 140-2 validation provides independent assurance that the standard cryptographic algorithms … are implemented correctly” (see here).


I’m not aware of one. And, to the best of my knowledge, TrueCrypt is not FIPS 140-2 certified.

I agree, in principle. However, with regards to Truecrypt, they can't apply for the FIPS certification without giving up their identities and they've already indicated TC will continue to be an anonymous, albeit open-source project.
  #24  
Old July 14th, 2009, 06:03 PM
stap0510 stap0510 is offline
Regular Poster
 
Join Date: Aug 2008
Posts: 104
Default Re: New Attacks on the AES

Quote:
Originally Posted by Justin Troutman
I'm certainly a proponent of the open-source model, but I think it's important that I play the devil's advocate here, by saying that open-source isn't inherently more secure than closed-source; what it has, though, is the potential to be. The "many eyes" defense is only half right; it doesn't matter how many eyes are looking if the right eyes aren't looking. I've worked on both open-source and closed-source security projects before, and there were instances where the closed-source implementations were more secure than the open-source implementations. When the conclusion presented itself, it turns out that the entity developing the closed-source implementation had the monetary resources to hire a select group of the right eyes, whereas the group responsible for the open-source implementation did not, thus relying on a large, but untrained, community of eyes. (Note: I'm not saying this because you implied otherwise; it's just something I wanted to share, in general.)

Has anyone published a significant analysis of TrueCrypt? I know of a paper by A. Czeskis, D. J. St. Hilaire, K. Koscher, S. D. Gribble, T. Kohno, and B. Schneier, titled, "Defeating Encrypted and Deniable File Systems: TrueCrypt v5.1a and the Case of the Tattling OS and Applications," but that's about it.

The paper you are reffering doesn't concern full-disk-encryption.
The paper that you're reffering to merely shows flaws in the host-journalling OS, where TrueCrypt is running on.
With full-disk-encryption the bottom-line outing from that paper wouldn't fly.
  #25  
Old July 14th, 2009, 10:50 PM
Justin Troutman Justin Troutman is offline
Cryptography Expert
 
Join Date: Dec 2007
Location: North Carolina, USA / Minas Gerais, BR
Posts: 226
Default Re: New Attacks on the AES

Quote:
Originally Posted by Pleonasm
Users who are evaluating encryption software may wish to check if that software is FIPS 140-2 certified, which is the case with PGP: “FIPS 140-2 validation provides independent assurance that the standard cryptographic algorithms … are implemented correctly” (see here).

This is definitely important; thanks for mentioning it. I was just discussing this recently with some federal contacts of mine, who are tightly bound by FIPS certification.

Quote:
Originally Posted by Pleonasm
I’m not aware of one. And, to the best of my knowledge, TrueCrypt is not FIPS 140-2 certified.

FIPS 140-2 certification is attractive, but I would be happy just to see a significant analysis.

Quote:
Originally Posted by Gerard Morentzy
I agree, in principle. However, with regards to Truecrypt, they can't apply for the FIPS certification without giving up their identities and they've already indicated TC will continue to be an anonymous, albeit open-source project.

That's interesting. I wasn't aware of that. Do you think this is a good trade-off? By doing so, they are cutting potential ties with a large market. The benefit of this market isn't simply commercial, either, as some of these FIPS-bound entities possess the ability to conduct intense analysis -- something that would only benefit the evolution of TrueCrypt.

Quote:
Originally Posted by stap0510
The paper you are reffering doesn't concern full-disk-encryption.
The paper that you're reffering to merely shows flaws in the host-journalling OS, where TrueCrypt is running on.
With full-disk-encryption the bottom-line outing from that paper wouldn't fly.

Right. I probably should have said that this is the only TrueCrypt-related paper that I know of, disregarding its actual subject matter. I've no doubt that many have looked at the code, but I'm only interested in who looked. Inspecting code is tricky business, and despite my ongoing involvement with looking at cryptographic code, I wouldn't trust myself alone to make any definitive security statements.
 

Wilders Security Forums > Privacy Related Topics > privacy general « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:19 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums