NixOS + TPMs | 182 Members | |
| 49 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Jul 2021 | ||
| The key for what? | 08:11:03 | |
| A second use case for TPM would be second factor auth | 08:15:48 | |
| Also interesting: https://github.com/mtth-bfft/tpm-otp | 08:18:28 | |
In reply to @mic92:nixos.devThe key for the passwords. | 08:47:47 | |
In reply to @andi:kack.itIt seems like a small win in security for an increased complexity, since the passwords itself are still in plain | 08:48:57 | |
| Yeah but it defeats all kinds of offline attacks on my password database | 08:49:24 | |
| you can use my entire disk and still have no way to decrypt my passwords. Not even if you also have a memory dump. | 08:49:38 | |
| You only obtain what you can observe me requesting. | 08:50:02 | |
| I can imangine for most people the risk of loosing access to all their passwords is higher when their hardware breaks than the added security. | 08:51:56 | |
| * I can imagine for most people the risk of loosing access to all their passwords is higher when their hardware breaks than the added security. | 08:52:18 | |
| I would only loose access to keys on that machine and not all my passwords. | 08:52:50 | |
| which is a perfectly acceptable risk for me as I can still use my YubiKey to access passwords (or another device with the same scheme). | 08:53:32 | |
In reply to @mic92:nixos.devThis looks like it wouldn't go well with other TPM applications as they try to manage the TPM directly and write to random nvram positions. | 09:17:56 | |
Corrected a problem which generated improper hash values on 16 bit machines | 23:34:21 | |
| damn this file has a LOT of history | 23:34:58 | |
| 18 Jul 2021 | ||
| okay andi- I was maybe predictable wrong about the rvram | 00:40:08 | |
| to r/w space you have to preallocate a chunk with nvdefine, and it gives you an "NV Index" in response: | 00:40:49 | |
| [nix-shell:~]# tpm2 nvdefine -s 1 nv-index: 0x1000000 | 00:40:50 | |
(-s 1 means 1 byte) | 00:41:04 | |
for index 0x1000000 you'll need to present the lolol password to read or write it:
| 00:42:14 | |
| I don't know how you're supposed to remember the index | 00:43:45 | |
In reply to @grahamc:nixos.orgWell there might be still a need in microcontrollers. | 03:15:37 | |
In reply to @grahamc:nixos.orgBut that is much better than expecting the applications to synchronize. If you look at that bash script from yesterday: They probably stuff it in their JSON blob? | 07:56:01 | |
| https://github.com/NixOS/nixpkgs/pull/130568 if anyone wants to review | 17:00:57 | |
| manveru: have you been using this on unstable with pkcs11 with e.g. OpenSSH? I've had to patch your tpm2-tss derivation to use pkcs11 | 17:02:29 | |
| Not yet, I'm just getting started trying to use tpm :) | 17:03:36 | |
| Pretty sure there's no tpm drv from me... | 17:04:02 | |
| andi-: okay so you CAN specify an index when defining the region, but there are defined allocations https://trustedcomputinggroup.org/wp-content/uploads/RegistryOfReservedTPM2HandlesAndLocalities_v1p1_pub.pdf | 20:02:33 | |
sigh | 20:19:05 | |
| That is normal :d | 20:19:18 | |