1,326 karma · joined Jul 6, 2009 (17y ago) · 248 submissions
comment 11y ago · link · parent
I'm not sure what the best answer is to your second question. I wouldn't use TC for that. I would typically use PGP, but I don't think it has a good UX for general consumption. There may be room for someone to build a better product.
comment 11y ago · link · parent
Again, this is just my perception.
comment 11y ago · link · parent
No significant issues were found in either phase of the TrueCrypt audit. If you're using it today (or have used it in the past), I don't think you have anything to worry about.
But it is an unmaintained piece of software, and for that reason I would migrate away from it. If I were setting up a new laptop today, I wouldn't consider installing it. If I had an existing laptop using it, I would think about transitioning when I had some spare time.
Not a hair-on-fire problem, though.
comment 11y ago · link · parent
The weaknesses of XTS mode are mostly limitations imposed by full-disk encryption. You should think of XTS as fine for FDE, but you also shouldn't put too many expectations on FDE. FDE is great if you leave your powered-off laptop in the back of a cab. It's not great if federal agents distract you and steal your powered-on-and-logged-in laptop at the library.
You should definitely use FDE, but you should also separately encrypt the things that are really important to you.
comment 11y ago · link · parent
I would avoid slow implementations of password hashing algorithms. You want the overall operation to be slow due to the computations you're performing, but you want the implementations of those operations to be fast. Because the attacker's implementations of those operations will be fast.
comment 11y ago · link · parent
But I would say yes, bcrypt is still best practice. Other commenters are right that bad passwords will still be recoverable, but using one of bcrypt/scrypt/PBKDF2 is due diligence. I would use whichever one is most easily available on your platform.
comment 11y ago · link · parent
I may have missed this, but did they note how performance fared in the absence of hardware support?
Also, have binary curves (this or the NIST ones or any others) seen widespread deployment anywhere? I was under the impression that prime field curves were more widely used.
comment 11y ago · link · parent
I only saw evidence of data-dependent timing with respect to the div operation, but maybe I missed something.
Of course, I am not suggesting other operations are inherently immune to data-dependent timing leaks.
EDIT: I see there are also some notes on adc and sbb in some situations, i.e. chains of instructions that all light up the carry flag.
comment 11y ago · link · parent
Not sure if there is any difference in content.
comment 11y ago · link · parent
One nit, though. There's a subtle error in the main function:
char* input;
printf("Please input a word: ");
scanf("%s", input);
Local variables are not automatically initialized in C, and we never assign input to point to any particular block of memory. This means it's probably pointing off to some random location - basically whatever address happened to be sitting on the stack when main was called. So when scanf writes the user password to input, it's going to go to some unpredictable location with unpredictable results. This could lead to code execution, or at least a straightforward denial of service.comment 11y ago · link · parent
But source code can also lie to you. To really understand what the application is doing, you need to do what security auditors do irrespective of source code availability. Namely:
1. Disassemble the application binary.
2. Debug the running application.
3. Observe the network traffic.
Here's another thing to think about. Suppose the source code were available. How could you trust that the source code provided matches the compiled binary running on your phone? You would need to perform the above steps to verify.
comment 11y ago · link · parent
The scenario he's describing is:
1. A user submits a password (with no username) to authenticate.
2. The server looks up the password in a hash table. This involves:
a. Hashing the password to find the correct bucket.
b. Doing a string comparison against passwords stored in the bucket.
There are vulnerabilities in two places:1. Buckets containing more passwords will take longer to return a negative result because they will have to perform more string comparisons. (This irrelevant except in pathological cases.)
2. String comparisons with longer common prefixes will take longer to return a negative result.
This is a bad example for a couple reasons:
1. Password inputs are not compared directly to stored values in any real authentication system. They are hashed first. A timing attack here implies a preimage attack against the hash function.
2. Passwords are not global. Passwords are paired with a username. You don't get to time the comparison against every password in the system to determine common prefixes, for example.
A better example might have been API tokens, which are often stored in cleartext and fetched directly from the database.
comment 11y ago · link · parent
In contrast, observing the network traffic, debugging the application, and examining the decompiled binary will tell you exactly what's going on.