{"id":2311,"date":"2021-07-30T23:30:46","date_gmt":"2021-07-30T23:30:46","guid":{"rendered":"https:\/\/dft.wiki\/?p=2311"},"modified":"2026-06-08T22:33:37","modified_gmt":"2026-06-09T02:33:37","slug":"configuring-mfa-for-windows-logon-and-rdp-with-duo-security","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=2311","title":{"rendered":"Configuring MFA for Windows Logon and RDP with Duo Security"},"content":{"rendered":"<p>Windows Logon and RDP are easy to brute force because they do not offer built-in multi-factor authentication.<\/p>\n<p>To add MFA or 2FA to Windows, a third-party application is required to generate a One-Time Password (OTP) each time a user logs in.<\/p>\n<p>The OTP can be sent to a smartphone via Push Notification, SMS, or other methods.<\/p>\n<p>Cisco acquired Duo Security in 2018 but still offers a free plan called Duo Free [<a href=\"https:\/\/duo.com\/editions-and-pricing\">Link<\/a>] for up to 10 users.<\/p>\n<hr \/>\n<p><strong>Creating a Duo Security Account<\/strong><\/p>\n<p>Go to the Duo Security website [<a href=\"https:\/\/signup.duo.com\/\">Link<\/a>] and create an account:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2330\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-30_19-15-10.png\" alt=\"\" width=\"350\" height=\"441\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-30_19-15-10.png 564w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-30_19-15-10-238x300.png 238w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>Check your email and click the link to verify your account.<\/p>\n<p>A QR Code will be generated. Keep it on your screen for the next step.<\/p>\n<hr \/>\n<p><strong>Installing Duo Mobile<\/strong><\/p>\n<p>On your smartphone, install the Duo Mobile app from the Android [<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.duosecurity.duomobile\">Link<\/a>] or iPhone [<a href=\"https:\/\/apps.apple.com\/ca\/app\/duo-mobile\/id422663827\">Link<\/a>] store:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2324\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-12-22.png\" alt=\"\" width=\"200\" height=\"92\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-12-22.png 383w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-12-22-300x139.png 300w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2325\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-13-05.png\" alt=\"\" width=\"200\" height=\"103\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-13-05.png 461w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-13-05-300x154.png 300w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/p>\n<p>Use the app to scan the QR Code generated in the previous step.<\/p>\n<p>This will create your first token, which is tied to the management dashboard.<\/p>\n<hr \/>\n<p><strong>Protecting an Application (RDP)<\/strong><\/p>\n<p>Go to <strong>Application<\/strong> &gt; <strong>Protect an Application<\/strong> &gt; Search for <strong>Microsoft RDP<\/strong> &gt; <strong>Protect<\/strong>.<\/p>\n<p>Click on <strong>RDP documentation.<\/strong> A new browser tab will open with the <strong>download link<\/strong> for the Windows application.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2314 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-05-22.png\" alt=\"\" width=\"650\" height=\"416\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-05-22.png 650w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-05-22-300x192.png 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>Download page:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2315\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-10-08.png\" alt=\"\" width=\"817\" height=\"63\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-10-08.png 817w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-10-08-300x23.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-10-08-768x59.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/p>\n<p>During installation, you will be prompted to enter the <strong>API hostname<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2317\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-19-38.png\" alt=\"\" width=\"499\" height=\"381\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-19-38.png 499w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-19-38-300x229.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>Then enter the <strong>Integration<\/strong> and <strong>Security<\/strong> Keys:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2318\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-21-39.png\" alt=\"\" width=\"498\" height=\"380\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-21-39.png 498w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_20-21-39-300x229.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/p>\n<p>Configure the remaining options as needed or leave them as default.<\/p>\n<p>Do not log out yet.<\/p>\n<hr \/>\n<p><strong>Adding Users<\/strong><\/p>\n<p>Go to <strong>Users<\/strong> &gt; <strong>Add a User<\/strong>.<\/p>\n<p>The username must match the Windows account username exactly.<\/p>\n<p>Set the Status to <strong>Active<\/strong> and click <strong>Save Changes<\/strong>.<\/p>\n<p>Note: if you log out at this point, you will be locked out:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2321\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_21-54-11.png\" alt=\"\" width=\"734\" height=\"100\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_21-54-11.png 734w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_21-54-11-300x41.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>To regain access, set the Status to <strong>Bypass<\/strong> and click <strong>Save Changes<\/strong>.<\/p>\n<p>Now add an <strong>Email<\/strong> address for the account, switch the Status back to <strong>Active<\/strong>, and click <strong>Save Changes.<\/strong><\/p>\n<p>Click <strong>Resend Enrollment Email<\/strong> at the top:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2322\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-05-07.png\" alt=\"\" width=\"420\" height=\"46\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-05-07.png 420w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-05-07-300x33.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>A confirmation will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2323\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-06-03.png\" alt=\"\" width=\"234\" height=\"60\" \/><\/p>\n<hr \/>\n<p><strong>Enrolling Users<\/strong><\/p>\n<p>Enrollment creates the token that grants access to the protected applications, in this case Windows Logon and RDP.<\/p>\n<p>Each user must also have <strong>Duo Mobile<\/strong> installed on their smartphone.<\/p>\n<p>Each user needs to open the enrollment email and <strong>click the link on their smartphone<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2327\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/65c20b4a-c696-4491-acff-b3915e204778.jpeg\" alt=\"\" width=\"370\" height=\"428\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/65c20b4a-c696-4491-acff-b3915e204778.jpeg 720w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/65c20b4a-c696-4491-acff-b3915e204778-259x300.jpeg 259w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/p>\n<p>Log out and try logging back in. The following window will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2328\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-35-09.png\" alt=\"\" width=\"791\" height=\"472\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-35-09.png 791w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-35-09-300x179.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2021\/07\/Screenshot_2021-07-29_22-35-09-768x458.png 768w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/p>\n<p>A push notification will be sent to your smartphone. Tap <strong>Approve<\/strong>.<\/p>\n<hr \/>\n<p><strong>Do not panic if you get locked out!<\/strong><\/p>\n<p>You can always allow a user, group, or the entire workgroup to bypass 2FA if needed.<\/p>\n<p>Make sure the username in Duo matches the Windows account username.<\/p>\n<p>Verify that the user has enrolled correctly and has their mobile token available.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Logon and RDP are easy to brute force because they do not offer built-in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2311","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2311"}],"version-history":[{"count":9,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2311\/revisions"}],"predecessor-version":[{"id":5718,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2311\/revisions\/5718"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}