MIME-Version: 1.0 References: <3437a0a5-6522-9f29-4e98-b3b90f490f4d@...1147...> In-Reply-To: <3437a0a5-6522-9f29-4e98-b3b90f490f4d@...1147...> From: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= Date: Wed, 13 Jan 2021 23:29:56 +0500 Message-ID: Content-Type: multipart/alternative; boundary="0000000000002557c605b8cc547b" Subject: Re: [Openvpn-devel] is it possible to store saved password in tpm instead of registry ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Just Keijser Cc: openvpn-devel --0000000000002557c605b8cc547b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D1=81=D1=80, 13 =D1=8F=D0=BD=D0=B2. 2021 =D0=B3. =D0=B2 22:01, Jan Just Ke= ijser : > Hi, > > On 13/01/21 17:20, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0=BF=D0=B8=D1= =86=D0=B8=D0=BD wrote: > > Hello, > > > > if user save password, it might be stolen from well known location > > (there are popular password stealers). > > > > in theory, is it possible to keep password in tpm ? will it prevent > > password from being stolen ? > > > in theory, yes, but as always, it depends on the circumstances. > > With TPM 1.2 you can only store a very limited amount of data in the TPM > chip; the (open source) implementation I have seen (tss, trousers) store > I meant openvpn-gui + user/password authentication + password is kept in registry encrypted by data protection api (not clear text, but might be decrypted and stolen easily). trousers is linux, right ? > a key in the TPM to scramble other data with; thus, you can encrypt a > private key or password with a key stored on the TPM and only if you > have the TPM will you be able to decrypt it. > I've never been particularly impressed with the security of this setup, > however, as trousers seems to suggest to store the actualy decryption > key in an environment variable... > > With TPM 2.0 you can store more data in the chip, including a full > private key. This makes it behave more like a regular PKCS#11 device, > where you store the private key, not the user password on it. Of course, > it will/should also be possible to store a user password on it. > > cheers, > > JJK > > --0000000000002557c605b8cc547b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
=D1=81=D1=80, 13 =D1=8F=D0=BD=D0=B2. = 2021 =D0=B3. =D0=B2 22:01, Jan Just Keijser <janjust@...1147...>:
Hi,

On 13/01/21 17:20, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0=BF=D0=B8=D1=86= =D0=B8=D0=BD wrote:
> Hello,
>
> if user save password, it might be stolen from well known location
> (there are popular password stealers).
>
> in theory, is it possible to keep password in tpm ? will it prevent > password from being stolen ?
>
in theory, yes, but as always, it depends on the circumstances.

With TPM 1.2 you can only store a very limited amount of data in the TPM chip; the (open source) implementation I have seen (tss, trousers) store

I meant openvpn-gui + user/password auth= entication + password is kept in registry encrypted by data protection api = (not clear text, but might be decrypted and stolen easily).

<= /div>
trousers is linux, right ?
=C2=A0
a key in the TPM to scramble other data with; thus, you can encrypt a
private key or password with a key stored on the TPM and only if you
have the TPM will you be able to decrypt it.
I've never been particularly impressed with the security of this setup,=
however, as trousers seems to suggest to store the actualy decryption
key in an environment variable...

With TPM 2.0 you can store more data in the chip, including a full
private key. This makes it behave more like a regular PKCS#11 device,
where you store the private key, not the user password on it. Of course, it will/should also be possible to store a user password on it.

cheers,

JJK

--0000000000002557c605b8cc547b--