YubiKey-Guide icon indicating copy to clipboard operation
YubiKey-Guide copied to clipboard

Add mention of UIF (User Interaction Flag)

Open codemonkee opened this issue 3 years ago • 2 comments

UIF is handy if you want to add that extra measure of ensuring a physical presence of a user before on of the 3 actions are taken.

  1. Sign
  2. Decrypt
  3. Auth
gpg --edit-card
...
UIF setting ......: Sign=off Decrypt=off Auth=off
...
gpg/card> admin
Admin commands are allowed
gpg/card> uif
usage: uif N [on|off|permanent]
       1 <= N <= 3
gpg/card> uif 1 on
<enter master password>
gpg/card> uif 2 on
gpg/card> uif 3 on
gpg/card> list
...
UIF setting ......: Sign=on Decrypt=on Auth=on
...

codemonkee avatar Jan 04 '22 09:01 codemonkee

Is there any additional documentation? How is this different than the touch policy?

drduh avatar Apr 09 '22 18:04 drduh

GNUPG Manual

https://www.gnupg.org/documentation/manuals/gnupg.pdf https://gnupg.org/documentation/manuals/gnupg/gpg_002dcard.html


UIF N [on|off|permanent]

Change the User Interaction Flag. That flags tells whether the confirmation button of a token shall be used. n must in the range 1 to 3. "permanent" is the same as "on" but the flag can’t be changed anmore.

Documentation is extremely sparse and is not really explained in the GNUPG manual

My guess

I'm guessing that the UIF function is how the openpgp card specification handles the touch feature and that yubikey's "ykman openpgp set-touch aut on" is calling the same library function.

iandstanley avatar Jun 03 '22 00:06 iandstanley

If someone can explain how this helps or makes the setup more secure, please reopen or send a PR.

drduh avatar Dec 26 '22 19:12 drduh

@drduh see also https://docs.nitrokey.com/nitrokey3/windows/openpgp-uif

tushev avatar Jun 02 '23 11:06 tushev

If someone can explain how this helps or makes the setup more secure, please reopen or send a PR.

are you asking why enforcing touch (permanently, without the ability to disable) and indicating is more secure?

A smartcard/yubikey that is not configured to enforce touch would be considered less-secure because any requests from the host (such as decrypting password-store, or signing messages, or decrypting emails) could be automated by malware without the users consent.

Indication of this is definitely helpful in determining if a yubikey is configured properly.

Logicwax avatar Sep 27 '23 21:09 Logicwax