Skip to contentSkip to conversation

Cipher the private key in peers wg0.conf ?

DISCUSSION reiner otto 3 participants 3 messages May 16, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Actually, in wg0.conf the private key is defined in clear text. Which allows dump of physical disk to grab it and to fake this client.
Wouldn't it be safer, to cipher the private key somehow ?

#2 lore raw
Quoted 2 lines · reiner otto

Actually, in wg0.conf the private key is defined in clear text. Which allows dump of physical disk to grab it and to fake this client.

So? If you have physical access to the peer's (unencrypted) disk you can do anything. Security is over.

Quoted 1 line

Wouldn't it be safer, to cipher the private key somehow ?

Where would you store the key for that?

If you need that kind of safety, encrypt the whole disk. Securing the private key doesn't help if you can simply subvert the binary that decrypts it.

Signature · 1 line
-- Matthias Urlichs
#3 lore raw

Hi,

Quoted 11 lines · Matthias Urlichs
Quoted 2 lines · reiner otto

Actually, in wg0.conf the private key is defined in clear text. Which allows dump of physical disk to grab it and to fake this client.

So? If you have physical access to the peer's (unencrypted) disk you can do anything. Security is over.

Quoted 1 line

Wouldn't it be safer, to cipher the private key somehow ?

Where would you store the key for that?

If you need that kind of safety, encrypt the whole disk. Securing the private key doesn't help if you can simply subvert the binary that decrypts it.

I think this can be compared to classic encrypted private keys, where you need to decrypt them (normally with a passphrase) before they can be loaded by the SSL library.

Maybe this could just be a feature in the wg tool, which could decrypt the key before pushing it down to the kernel.

Cheers,

Signature · 1 line
Antonio Quartulli