{"id":588,"date":"2022-06-24T12:37:42","date_gmt":"2022-06-24T11:37:42","guid":{"rendered":"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/?p=588"},"modified":"2023-08-02T14:13:22","modified_gmt":"2023-08-02T13:13:22","slug":"keepassmfa","status":"publish","type":"post","link":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/2022\/06\/24\/keepassmfa\/","title":{"rendered":"KeePass and Multifactor Authentication"},"content":{"rendered":"<p>One of the frustrations of modern security\u00a0is the imposition of more onerous user-verification requirements. The benefits of the University introducing Multifactor Authentication (&#8216;MFA&#8217;) are well-proven, but it does add a further step that can be inconvenient. In an effort to make life a little bit easier, and following a debate about this area on our IT Discussion mail-list, I share the following advice.<\/p>\n<p>Using a password manager is an essential step in keeping secure. KeePass is an excellent example of the genre and my personal favourite. The latest version has also added a feature that promises to make life that little bit easier: it can act as your MFA authentication app.<\/p>\n<p>I&#8217;m assuming that you already have a KeePass entry for your SSO logon, with an auto-type entry set. If not, here&#8217;s the auto-type syntax that I use:<br \/>\n{USERNAME}{TAB}{TAB}{TAB}{TAB}{ENTER}{DELAY 1000}{PASSWORD}{ENTER}<\/p>\n<p>The steps to allow KeePass to also handle your MFA are as follows:<\/p>\n<p>1.Visit https:\/\/mysignins.microsoft.com\/security-info and, yes, log yourself in.<\/p>\n<p>2. Click &#8216;add sign-in method&#8217;:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-590 alignleft\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/mfa1-1-300x162.jpg\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/mfa1-1-300x162.jpg 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/mfa1-1.jpg 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>3. Choose &#8216;Authenticator App&#8217; from the list:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122026413.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-591\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122026413-300x163.png\" alt=\"\" width=\"300\" height=\"163\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122026413-300x163.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122026413-768x417.png 768w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122026413.png 940w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>4. Microsoft will recommend their own Authenticator application, but click instead on &#8216;I want to use a different authenticator app&#8217;:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122138268.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-592\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122138268-300x163.png\" alt=\"\" width=\"300\" height=\"163\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122138268-300x163.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122138268-768x417.png 768w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122138268.png 940w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>5. You&#8217;ll need to have KeePass installed and running shortly, but at this stage you can just click &#8216;Next&#8217;:<\/p>\n<p><a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122253333.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-593\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122253333-300x163.png\" alt=\"\" width=\"300\" height=\"163\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122253333-300x163.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122253333-768x417.png 768w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122253333.png 940w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>6. You&#8217;re presented with a QR code, as most apps are mobile-based and can use a phone camera. Ignore the QR code and click &#8216;can&#8217;t scan image&#8217;:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122434384.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-594\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122434384-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122434384-300x162.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122434384.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>7. The page will create a security key code, with a &#8216;copy to clipboard&#8217; button next to it. Click on that:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122623294.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-595\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122623294-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122623294-300x162.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122623294.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>8. Switch to KeyPass, right-click your entry for your University SSO account, select &#8216;Edit Entry (Quick)&#8217;, then &#8216;OTP Generator settings&#8217;. You&#8217;ll get a dialogue box. Paste the security code into the &#8216;shared secret&#8217; field. No other values need to be changed, so then click &#8216;OK&#8217;:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122908663.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-597\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122908663-300x296.png\" alt=\"\" width=\"300\" height=\"296\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122908663-300x296.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_122908663.png 404w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>9. When prompted for your MFA authentication code, ask KeyPass to copy that to the clipboard for you:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123321269.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-598\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123321269-300x178.png\" alt=\"\" width=\"300\" height=\"178\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123321269-300x178.png 300w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123321269.png 512w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>10.\u00a0 In the &#8216;Enter Code&#8217; window, just right-click and &#8216;Paste&#8217;:<br \/>\n<a href=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123507140.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-599\" src=\"http:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123507140-211x300.png\" alt=\"\" width=\"211\" height=\"300\" srcset=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123507140-211x300.png 211w, https:\/\/blogs-new.it.ox.ac.uk\/nexus\/files\/2022\/06\/image_2022-06-24_123507140.png 469w\" sizes=\"auto, (max-width: 211px) 100vw, 211px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;m hoping that future revisions of KeePass will make this even easier*, but this is a great step forward and makes a useful app that little bit better still.<\/p>\n<p>EDIT:<\/p>\n<p>The syntax for KeePass to autocomplete your username, password, and MFA code is:<\/p>\n<p>{USERNAME}{TAB}{TAB}{ENTER}{DELAY 2000}{PASSWORD}{ENTER}{DELAY 2000}{TIMEOTP}{ENTER}<\/p>\n<p>&nbsp;<\/p>\n<p>FURTHER EDIT, FOLLOWING A REVISION TO THE LOGON DIALOGUE BOX:<\/p>\n<p>The previous autotype string was no longer working, but this reinstates it:<br \/>\n{USERNAME}{TAB}{TAB}{ENTER}{DELAY 2000}{PASSWORD}{TAB}{TAB}{TAB}{ENTER}{DELAY 2000}{TIMEOTP}{ENTER}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the frustrations of modern security\u00a0is the imposition of more onerous user-verification requirements. The benefits of the University introducing Multifactor Authentication (&#8216;MFA&#8217;) are well-proven, but it does add a further step that can be inconvenient. In an effort to &hellip; <a href=\"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/2022\/06\/24\/keepassmfa\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":107,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/users\/107"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/comments?post=588"}],"version-history":[{"count":8,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/posts\/588\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/media?parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/categories?post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs-new.it.ox.ac.uk\/nexus\/wp-json\/wp\/v2\/tags?post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}