Skip to main content

Patching Gaps in the CIS Windows 11 Benchmark - Level 1 Windows Autopilot

· loading ·
Microsoft Intune Windows 10 and later Security Center for Internet Security (CIS) Custom Profiles Windows Autopilot Windows Hello Settings Catalog
Author
Nick Benton
Principal Cloud Endpoint Consultant | Intune Blogger
Author
Jonathan Fallis
Cloud Endpoint Consultant | DeploymentShare.com Author
Table of Contents
Patching Gaps in the CIS Windows 11 Benchmark - This article is part of a series.
Part 2: This Article

We started with the BitLocker and DMA (Direct Memory Access) settings in the first post in this Windows 11 CIS benchmark based series, now is the time we dig deeper into the broader Level 1 settings, this time looking at the impact to Windows Autopilot cloud native deployments.

Jonathan has more than enough experience with testing these policies and the impact to Windows Autopilot, as I made asked him to help me review the impact of them following his initial run in with the community version of the CIS Microsoft Intune templates.

So please send him your thanks, as without his turmoil of dealing with the CIS policies breaking his devices, and the constant nagging from me as to when he’s done with testing and finding solutions, there wouldn’t be the content for this post or in fact the series.

Right, onto the fruits of my our labour.

CIS Level 1 Settings
#

We already have a grasp of the settings that cause problems with Windows Autopilot, so we can start to try and find solutions to the discovered issues, all without reducing the overall security of the Windows 11 operating system too much 🤐.

CIS Level 1 Settings
CIS Level 1 settings in Microsoft Intune.

There might be a surprising amount of wiggle room with some of the CIS Level 1 benchmark settings, that maybe aren’t entirely obvious at first, starting with the documented problems…

Disable Automatic Admin Logon
#

You’re correct CIS, of course you should disable the use of automatic logons for administrator accounts, and it should be implemented without hesitation.

No one should be automatically logging on to a Windows device as a administrator, unless you’re maybe defaultuser0 as part of the Windows Autopilot process right?

CIS (L1) Section 1 - 3.9.1.1 - Windows 11 Intune 3.0.1
Category Setting Value
Administrative Templates > MSS (Legacy) MSS: (AutoAdminLogon) Enable Automatic Logon (not recommended) Disabled

The above configuration, will bin out the Enrolment Status Page, reboot, and leave you with a Windows Autopilot device at a logon screen with the defaultuser0 being your only option for sign in, and pretty much nothing from Microsoft Intune applied to it:

defaultuser0
Windows logon screen with the defaultuser0 logon prompt.

We did already know about the AutoAdminLogon setting causing the issue with Windows Autopilot, as it is documented, but who has time to read all of these articles 😂.

But how do we stop this from breaking Autopilot exactly? Well after having a browse of the Policy CSP for this setting, it turns out that this policy is only supported on the following versions of Windows, and for us we only care about Windows 11:

  • Windows 10, version 2004 (10.0.19041.1202) and later
  • Windows 10, version 2009 (10.0.19042.1202) and later
  • Windows 10, version 21H1 (10.0.19043.1202) and later
  • Windows 11, version 21H2 (10.0.22000 and) later

So assuming you’re not running a soon to be unsupported version of Windows 11 😐, we can either ignore this setting entirely (don’t do this), or strip the setting out of the CIS profile, and create a new Custom Profile with this specific setting:

CIS (L1) Section 3.5.1 - Windows 11 Intune 3.0.1
Name OMA-URI Type Value
Pol_MSS_AutoAdminLogon ./Device/Vendor/MSFT/Policy/Config/ADMX_MSS-legacy/Pol_MSS_AutoAdminLogon String <disabled/>
We’ve used Custom Profiles as we can use Applicability Rules which at the time of writing, are not supported by Settings Catalog profiles.

To save you creating Dynamic Security Groups for each supporting Windows version, you can assign the profile to all corporate owned devices using an existing group, or device filter and built-in group, and use Applicability Rules in the Custom Profile, to only apply the profile if the rules are met.

Rule Property Value
Assign profile if OS version 10.0.22000.0000 to 10.0.22000.9999

This means that as the setting is only causing impact to Windows Autopilot deployments, then you should be in the clear when deploying new devices, or resetting existing ones with newer Windows 11 operating system versions.

We can’t natively export a Custom profile from Microsoft Intune, so we’ve used the Intune Management tool to export it, allowing you to import the CIS (L1) Section 3.5.1 - Windows 11 Intune 3.0.1 profile instead of having to create it. You can also find the amended CIS (L1) Section 1 - 3.9.1.1 - Windows 11 Intune 3.0.1 there whilst you’re at it.

Interactive Logon Messages
#

More breaking of Windows Autopilot, this time with pre-provisioned deployments, with another known and documented feature problem. Thanks CIS 😬.

CIS (L1) Local Policies Security Options - Windows 11 Intune 3.0.1
Category Setting Value
Local Policies Security Options Interactive Logon Message Text For Users Attempting To Log On Configured
Local Policies Security Options Interactive Logon Message Title For Users Attempting To Log On Configured

I know a logon message is important, and is included in other security baselines and not just for Windows devices either, but come on now, do we really need this?

Well yes if you want to stick with the CIS benchmark.

So once more to stripping out this setting into a separate profile, this time keeping the same configuration settings, but assigning this to all your corporate-owned devices, but excluding a group of Windows Autopilot devices configured for pre-provisioned deployments using rules based on the enrollmentProfileName associated with the device.

CIS (L1) Section 45.10-45.11 - Windows 11 Intune 3.0.1
Category Setting Value
Local Policies Security Options Interactive Logon Message Text For Users Attempting To Log On Configured
Local Policies Security Options Interactive Logon Message Title For Users Attempting To Log On Configured

Don’t forget to actually configure these settings, unlike in the CIS profiles where they’re just set to Test test test 😂:

Logon Message
Windows logon message setting in Microsoft Intune.

Virtualization Based Security
#

We’d encountered a rogue device restart during Windows Autopilot when configuring a BitLocker PIN, which did actually work to our advantage, but what caused them?

CIS (L1) Virtualization Based Technology - Windows 11 Intune 3.0.1
Category Setting Value
Device Guard Configure System Guard Launch Unmanaged Enables Secure Launch if supported by hardware
Device Guard Credential Guard Configured
Device Guard Enable Virtualization Based Security enable virtualization based security.
Device Guard Require Platform Security Features Turns on VBS with Secure Boot.

Yeah it’s those ones, that are specifically called out to cause device restarts.

These policies require a reboot… to work around this issue, the policies can be targeted to users instead of devices so that they apply later in the process.

Luckily for us we’ve been given a workaround, just assign the CIS (L1) Virtualization Based Technology - Windows 11 Intune 3.0.1 profile to a group of users instead of devices.

Strangely enough this isn’t mentioned in the CIS documentation anywhere, so thanks to Microsoft for looking out for us.

Disable Network Selection UI
#

We’d come across this issue one a while ago, with the below setting stopping users from connecting to a new wireless network at the logon screen. You’d think this wouldn’t be too much of an issue, even during User-Driven Windows Autopilot, but where it does become a problem though, is with pre-provisioning.

CIS (L1) Admin Templates - System - Windows 11 Intune 3.0.1
Category Setting Value
Administrative Templates > System > Logon Do not display network selection UI Enabled

With a user deploying their own device, they’re asked to connect to a wireless network (who has network cables in their own house? Jonathan apparently 😅) before starting Windows Autopilot, so this network will now be available at logon, and no need to select a new one.

With pre-provisioned deployments, only the network that was connected to during deployment, and/or wireless or wired networks deployed to the device from Microsoft Intune are available to connect to from the logon screen.

Meaning if you build devices on-premises, and then give them to end-users to take home, with the setting above, they won’t be able to connect to a new network from the logon screen.

Missing Network Logon Option
Windows logon screen with the no network logon prompt.

Saving changing this across all devices, as it only impacts Windows Autopilot devices, you can remove this setting from the benchmark profiles, and create a new policy with the below settings:

CIS (L1) Section 3.10.25.2 - Windows 11 Intune 3.0.1
Category Setting Value
Administrative Templates > System > Logon Do not display network selection UI Disabled

Then assign it to your corporate devices, excluding Dynamic Security Groups containing Windows Autopilot Devices where their profile allows the use of pre-provisioning as in the Interactive Logon Messages section.

This will enable these devices, and these only, to select a new network not previously connected to, before logging onto their device, which if they’ve been deployed somewhere other than the current location, means they can actually sign in 😆.

Despite this only being one setting to create, we’ve been nice and made the CIS (L1) Section 3.10.25.2 - Windows 11 Intune 3.0.1 profile available for you to import, along with the amended original profile CIS (L1) Admin Templates - System - Windows 11 Intune 3.0.1.

Windows Hello for Business
#

Now Windows Hello for Business isn’t strictly a Windows Autopilot thing, but if you’re deploying a Windows Hello policy to either your users, then they’re going to get prompted to configure Windows Hello when they sign in.

So we were happy to see the use of Windows Hello for Business as an authentication method, to add multi-factor authentication to Windows 11 accounts, recommend by CIS 🎉.

CIS (L1) Device Lock & WHFB - Windows 11 Intune 3.0.1
Category Setting Value
Windows Hello For Business Minimum PIN Length 6
Windows Hello For Business Require Security Device true
Windows Hello For Business Facial Features Use Enhanced Anti Spoofing true

You haven’t configured additional settings somewhere else that will impact the use of Windows Hello have you CIS?

Windows Hello for Business
Account options in Windows 11 unable to configure Windows Hello PIN.

What’s that? You have? You’re advising that Windows Hello should be used to protect accounts, but you’re stopping the use of convenience PINs, that are required to setup Windows Hello.

CIS (L1) Admin Templates - System - Windows 11 Intune 3.0.1
Category Setting Value
Administrative Templates > System > Logon Turn on convenience PIN sign-in Disabled

Are you ok CIS?

Quick fix though, just change the above setting if and only if you’re actively using Windows Hello for Business, from Disabled to Enabled:

CIS (L1) Admin Templates - System - Windows 11 Intune 3.0.1
Category Setting Value
Administrative Templates > System > Logon Turn on convenience PIN sign-in Enabled

Be aware though, there are settings in the CIS (L1) Device Lock & WHFB - Windows 11 Intune 3.0.1 profile, that will impact the configuration of Windows Hello if you don’t have a policy in place to require PIN complexity settings.

Device Lock Warning
CIS Benchmark Device Lock Warning.

Yeah, it’s these ones they’re talking about.

CIS (L1) Device Lock & WHFB - Windows 11 Intune 3.0.1
Category Setting Value
Device Lock Device Password Enabled Enabled
Device Lock Alphanumeric Device Password Required Password, Numeric PIN, or Alphanumeric PIN required.
Device Lock Device Password Expiration 365
Device Lock Device Password History 24
Device Lock Min Device Password Length 14
Device Lock Minimum Password Age 1

So make sure you’ve got a Windows Hello for Business policy already created and deployed to your users, with at least the below setting configured to enable Windows Hello for Business.

CIS (L1) Windows Hello for Business (User) - Windows 11 Intune 3.0.1
Category Setting Value
Windows Hello For Business Use Passport For Work (User) true

With the above configuration, your users will get the post logon Windows Hello experience following a successful Windows Autopilot deployment.

If you don’t want to force the setup of Windows Hello for Business, you can disable the post logon setup using a Custom Profile, though there are consequences.

Summary
#

We did say that the impact of the CIS Level 1 settings on Windows Autopilot was going to be a little difficult to deal with, but we got there, with some creative assignments, mild exclusions, and a little bit of common sense.

Security and end-user experience don’t tend to wander off hand in hand into the distance to live happily ever after, but there is now a way to deal with these issues using Microsoft Intune native tooling, and a good understanding of the application of the CIS benchmark.

The next chapter in this investigation of the CIS benchmark for Windows 11 covers the impact on the wider Windows 11 operating system, and happily there aren’t as many things that break functionality. There are however, some interesting choices.

Patching Gaps in the CIS Windows 11 Benchmark - This article is part of a series.
Part 2: This Article

Related

Patching Gaps in the CIS Windows 11 Benchmark - BitLocker
· loading
Microsoft Intune Windows 10 and later Security Center for Internet Security (CIS) Custom Profiles BitLocker Direct Memory Access Settings Catalog
Creating Reusable Groups of Firewall Settings for Microsoft Online Services
· loading
Microsoft Intune Windows 10 and later Security PowerShell Graph API Settings Catalog Firewall Automation
Keeping Windows Store Apps Updated with Microsoft Intune
· loading
Microsoft Intune Windows 10 and later Updates Remediation Scripts Apps PowerShell Windows Autopilot Security