News for hackers. Stuff that matters.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by Ayesh on Monday October 02, 2023 @12:52AM (#37734130)
Using it for a few years now, and I'd hesitate not one bit to recommend. It's not as "technical" as said in comments either tbh. But us in HN are not qualified to call it non tech friendly I guess.

Performance is great, nearly "metal" SSD speeds. I use it with a hidden partition of an external HDD, and works great too, once I got Windows to stop asking me to formally that partition.

The only feature I wish it could have is better Yubikey (and alike) integration. I can use those static passwords as an encryption key, but I'd need something better.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by RockRobotRock on Monday October 02, 2023 @01:41AM (#37734386)
Functionally, how could anything be better than a static password?
Re:VeraCrypt: Free, open source, disk encryption for Windows... by Ayesh on Monday October 02, 2023 @01:45AM (#37734409)
I meant the long static passwords Yubikeys "type" when you touch the button when plugged in. It's just a static long text that has no context.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by RockRobotRock on Monday October 02, 2023 @01:47AM (#37734420)
Sorry, I know what you mean. I'm saying anything like challenge-response would still be a password functionally if you're decrypting a static file.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by wannacboatmovie on Monday October 02, 2023 @02:32AM (#37734651)
BitLocker and LUKS both support TPM for key storage which VeraCrypt does not.

The TPM acts as a second factor (assume PIN is required); if you pulled the disk out and placed it another PC you cannot brute force the plaintext password, even using the $5 wrench method.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by hexfish on Monday October 02, 2023 @03:30AM (#37734958)
I would be very careful with placing my trust in TPM: https://www.secura.com/blog/tpm-sniffing-attacks-against-non....
Re:VeraCrypt: Free, open source, disk encryption for Windows... by KAMSPioneer on Monday October 02, 2023 @04:03AM (#37735191)
Your parent comment said he was assuming a PIN was used to seal the TPM, and the attacking the link would have failed if the TPM had a PIN set, no? I agree though that using a TPM without a PIN gives little in the way of data protection. Not nothing, but little.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by nuker on Monday October 02, 2023 @04:48AM (#37735538)
Sniffing the bus can be defeated by using encrypted comms. It is disabled by Windows for some reason, but it works as designed in other secure boot implementations. I hope :)
Re:VeraCrypt: Free, open source, disk encryption for Windows... by pmontra on Monday October 02, 2023 @04:28AM (#37735377)
> even using the $5 wrench method

I understand the XKCD reference but I don't understand why it does not apply to this case. Does that mean that you can't move your disk to a new machine of yours?

Re:VeraCrypt: Free, open source, disk encryption for Windows... by alias_neo on Monday October 02, 2023 @04:55AM (#37735604)
Because if you took the disk, even if you $5-wrenched the pin out of someone, you don't have the TPM hardware to make use of it.

As for the second question, I suppose it depends on the implementation; I suspect there is a way to migrate and transfer the keys for the device for the person who already has access to all of the factors.

If I use a Yubikey and LUKS for example, I can re-use the Yubikey if I move the disk to another machine. I'm not sure how this would work for integrated TPMs and Bitlocker (I don't use Windows), but I believe they have recovery key-files you could use.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by pmontra on Monday October 02, 2023 @06:37AM (#37736400)
If there is no way to transfer the disk to another machine, it's not a disk I want to use. I think that there are very few use cases for losing all the data when a machine dies.

And if there is a procedure to let me move the disk to a new machine, somebody can wrench me until I perform that procedure for them.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by dwattttt on Monday October 02, 2023 @07:06AM (#37736624)
For Bitlocker (and I imagine other tools which support TPM keying), a recovery password is generated in addition to the TPM unlock key. If the motherboard goes kaput you dig out the long key to unlock it, assuming you kept it somewhere safe (speaking as someone who has had to dig through a pile of old USBs to get access back to a disk).
Re:VeraCrypt: Free, open source, disk encryption for Windows... by robertlagrant on Monday October 02, 2023 @07:36AM (#37736863)
Sounds as though this is where the $5 wrench would work just fine.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by mkopec on Monday October 02, 2023 @09:23AM (#37737733)
It's a matter of priorities, I guess?

If you want to you can just not save the recovery password. In that case I guess they'll just beat you to death with that $5 wrench.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by robertlagrant on Wednesday October 04, 2023 @09:19AM (#37764689)
That's why I'd rather use a service without a recovery password :)
Re:VeraCrypt: Free, open source, disk encryption for Windows... by mkopec on Monday October 02, 2023 @09:09AM (#37737584)
With LUKS you can enroll an extra auth option in addition to TPM, like a password or a FIDO2 token.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by alias_neo on Monday October 02, 2023 @09:12AM (#37737620)
> And if there is a procedure to let me move the disk to a new machine, somebody can wrench me until I perform that procedure for them.

I think the implication is that they (the attacker) don't have the machine, or you, or whatever "thing" you have/use to unlock it.

If someone stole your disk, or took a copy of it, they can't offline attack it.

An external hardware device seems preferable for this scenario; if someone steals/snatches your laptop, they won't have your Yubikey or whatever.

In any scenario where the wrenching is an option, I suspect all bets are off, but if wrenching is a real risk, and whatever you're protecting is worth taking a wrenching for (as opposed to just giving it up at the threat of a wrenching, there should probably be some tougher protections which make it clear that the wrenching will gain an attacker nothing, and hopefully save you from it to begin with.

I'm not sure what or how that would work.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by forty on Monday October 02, 2023 @07:53AM (#37736993)
> Because if you took the disk, even if you $5-wrenched the pin out of someone, you don't have the TPM hardware to make use of it.

I sincerely hope that the guy with the $5 wrench knows this and don't continue hitting until he has the key...

Re:VeraCrypt: Free, open source, disk encryption for Windows... by mkopec on Monday October 02, 2023 @09:26AM (#37737771)
Indeed, it seems that having another unlock option might be preferable. If you value your own live over the secrets, that is.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by EVa5I7bHFq9mnYK on Monday October 02, 2023 @05:48AM (#37736021)
does that mean if morherboard goes kaput, so does all my data? I have 7 layers of backup, but still interesting to know.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by wannacboatmovie on Monday October 02, 2023 @05:33PM (#37744728)
No, it typically generates a recovery key which you can keep offline (or discard and live dangerously).
Re:VeraCrypt: Free, open source, disk encryption for Windows... by EVa5I7bHFq9mnYK on Tuesday October 03, 2023 @12:52AM (#37748104)
ok, so the $5 wrench method can be used to extract the recovery key.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by taway1237 on Tuesday October 03, 2023 @01:23PM (#37754872)
You typically print it and store it in a safe place (like your home cabinet). It's something like 256bit random number, no way to recall it, especially while being subjected to the $5 wrench method.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by EVa5I7bHFq9mnYK on Wednesday October 04, 2023 @10:56AM (#37766081)
No need to recall 256 bits, just which cabinet.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by _d3Xt3r_ on Monday October 02, 2023 @12:57AM (#37734159)
> Performance is great, nearly "metal" SSD speeds.

But how does that compare the exactly, performance wise, against Bitlocker and LUKS? (assuming similar strength encryption algorithms are selected)

Re:VeraCrypt: Free, open source, disk encryption for Windows... by Ayesh on Monday October 02, 2023 @01:15AM (#37734265)
I haven't used BitLocker or anything else, so I can't really compare.

Veracrypt has a neat benchmark tool so you know the speed beforehand. I suppose most CPUs have native support for the popular algorithms, so the bottleneck really is the disk, not CPU itself or the software.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by pulse7 on Monday October 02, 2023 @03:46AM (#37735062)
There is still an open issue in VeraCrypt (https://github.com/veracrypt/VeraCrypt/issues/136) because of which BitLocker is much faster on SSDs then VeraCrypt... But if you don't need those speads, VeraCrypt is still great...
Re:VeraCrypt: Free, open source, disk encryption for Windows... by huhtenberg on Monday October 02, 2023 @07:32AM (#37736837)
To nitpick - on _NVmE_ drives, not SSDs.

The principal difference is the native speed of raw IO - NVmEs are an order of magnitude faster than SSDs. TC/VC don't use hardware acceleration, so all the encryption work falls on the CPU. On a machine with a reasonably modern CPU, TC/VC run nearly at drive's native speed.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by seanw444 on Monday October 02, 2023 @10:23AM (#37738527)
> TC/VC don't use hardware acceleration

I assume by that you mean it doesn't use the AES instructions? That's odd to me.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by fluoridation on Monday October 02, 2023 @12:53PM (#37740890)
No, that's wrong. VeraCrypt uses AES-NI when available. It seems the source of the issue is the IO design of the driver, which causes unnecessary context switches when operating on a raw device.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by seanw444 on Monday October 02, 2023 @01:53PM (#37741886)
Okay that makes more sense.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by Ms-J on Monday October 02, 2023 @07:48PM (#37746060)
You can also explicitly disable the AES-NI in Veracrypt and use pure software implementation if you don't trust the hardware. I usually enable this option.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by zeroimpl on Tuesday October 03, 2023 @07:56PM (#37759149)
This option always seems funny to me. If I didn't trust the AES-NI instruction, why I would I trust the XOR instruction?
Re:VeraCrypt: Free, open source, disk encryption for Windows... by seanw444 on Wednesday October 04, 2023 @10:43AM (#37765914)
You could probably imagine the possibility of state actors and Intel, for example, conspiring to backdoor AES instructions of specific targets. Maybe possible with the IME. Not accusing them of this, but it's not out of the realm of possibility. The only things using the AES instructions are important data needing to be encrypted.

On the other hand, trying to backdoor XOR would give you an astronomically higher amount of white noise. Finding important data mixed in with all the other things a computer XORs would be much harder.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by fluoridation on Wednesday October 04, 2023 @11:04AM (#37766229)
The CPU would "just" need to look at all executable pages to find binaries of common AES implementations, and when it finds one it could wait for the key to be loaded and then exfiltrate it. It could also detect (although at greater effort, possibly much greater) when you're using it to compile AES and inject spying code into the output, even if the target is a different architecture.

If the attacker has access to your computer, you've already lost. If the attacker built your computer, it was never even a fight.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by baxuz on Monday October 02, 2023 @05:43AM (#37735976)
Bitlocker is Microsoft's closed-source product. How can you be sure it doesn't have backdoors?
Re:VeraCrypt: Free, open source, disk encryption for Windows... by shim__ on Monday October 02, 2023 @06:20AM (#37736249)
That question is pointless if you're using windows
Re:VeraCrypt: Free, open source, disk encryption for Windows... by huhtenberg on Monday October 02, 2023 @07:22AM (#37736768)
In practice, it is most certainly not pointless.

Given two USB drives, one encrypted with BitLocker and another with TC or VC, chances of master key recovery by Microsoft are definitely not the same.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by maccard on Monday October 02, 2023 @07:35AM (#37736859)
> In practice, it is most certainly not pointless .... chances of master key recovery by Microsoft are definitely not the same.

I don't think those two sentences hold water when put together. In practice, if your risk is master key leakage and theft of the encrypted data by microsoft, you shouldn't be using windows. If you suspect that, MS can have a kernel mode driver masquerading as anything else, and it can just siphon your master key whenever you enter it.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by DarkmSparks on Monday October 02, 2023 @10:59AM (#37738991)
And now that ms auth is apparently mostly compromised, extend microsoft to any threat actor in the wild.

I like VC for the portability of the encrypted .tc files. Keep all my backups as tc files, and recovered from more than one failure using them.

Once had an issue where dropbox corrupted the duplicates, so dont use dropbox anymore.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by Jerrrry on Monday October 02, 2023 @01:10PM (#37741184)
>ms auth is apparently mostly compromised

just gonna drop that like that aint a $10k+ implication, gonna need a src or ref thanks

unless you mean by 3letters, which dont exactly give their backdoors to randoms.

randoms aint coming across 3letter's backdoors, not active/modern ones anyway

Re:VeraCrypt: Free, open source, disk encryption for Windows... by lapinot on Monday October 02, 2023 @04:22PM (#37743904)
https://news.ycombinator.com/item?id=37702095

it's probably more than a $10k implication..

Re:VeraCrypt: Free, open source, disk encryption for Windows... by Reviving1514 on Monday October 02, 2023 @04:26AM (#37735358)
I've seen reports of corrupted files and that has always stopped me from using it. I even paid for the Android app just to support them.

Is file corruption still an issue?

Re:VeraCrypt: Free, open source, disk encryption for Windows... by kristofferg on Monday October 02, 2023 @04:51AM (#37735566)
Ime. not more than any other encryption tool. Just don’t skip or delay those backups.
Re:VeraCrypt: Free, open source, disk encryption for Windows... by Ayesh on Monday October 02, 2023 @05:24AM (#37735822)
> still

Never had problems. FWIW, I'm using AES/256 bit keys/HMAC SHA-512 on all of my volumes.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by aeyes on Monday October 02, 2023 @08:10AM (#37737111)
> I can use those static passwords as an encryption key, but I'd need something better.

I use static password plus a keyfile. Since the keyfile can be anything you can use something innocent looking which you just have laying around on the machine, like a picture.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by sangnoir on Monday October 02, 2023 @01:22PM (#37741406)
> you can use something innocent looking which you just have laying around on the machine, like a picture.

This works well on a file you decrypt often. What can happen with infrequently used files is that many years pass, you upgrade computers and/or operating systems, remember to copy your encrypted volumes. When you try to decrypt your volume, you remember the passcode, but forget which "innocuous" file you used as a keyfile, even after you boot up your old computer you had handed down to your cousin.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by aeyes on Monday October 02, 2023 @05:32PM (#37744719)
Well, the same happens to me with passwords which I don't use for a long time.

You can use any file, even something you can quickly download from the Internet. Like the Windows 3.11 file manager icon or your favorite Linux torrent. Only the first 1024 bytes are used so be careful with file types which have a big header.

Re:VeraCrypt: Free, open source, disk encryption for Windows... by somat on Monday October 02, 2023 @01:30PM (#37741543)
If you can make a key file You can put it on a removable sd card and make a keydrive. This introduces a nice air gap to the key, only needing to be broken when unlocking the drive.

There are better ways, often the the key can be stored on a hardware token(yubi key etc... ). which presumably offers additional security guarantees around copying the key. but a keydrive is a very easy way to start.

Off tangent(I doubt you will be using openbsd), but the openbsd encryption layer offers some nice features around using keydrives, http://www.openbsd.org/faq/faq14.html#softraidFDE