Audit Windows devices against CIS benchmarks with Microsoft Intune

Use the Center for Internet Security (CIS) audit baseline in Microsoft Intune to assess Windows 11 devices against the CIS Microsoft Intune for Windows 11 Benchmark. Create an audit profile, assign it to device groups, and review the results to identify configuration gaps.

CIS auditing is in public preview. It's audit-only: assigning the profile doesn't configure settings or remediate findings.

Before you begin, review the tenant, license, device, and permission requirements in Prerequisites.

Prerequisites

Before you create an audit profile, confirm the following requirements:

  • Tenant and license: An Intune tenant with Microsoft Intune Advanced Analytics.

  • Devices: Windows 11 devices enrolled in Intune. For co-managed devices, set the Device configuration workload to Pilot Intune or Intune.

  • Permissions: To create and manage audit profiles, use an Intune role with the following permissions:

    • Organization > Read.
    • Security baselines > Assign, Create, Delete, Read, and Update.
    • Device configurations > View Reports to view audit reports.

    The Endpoint Security Manager built-in role includes the profile-management permissions. You can also add permissions to a custom role. Your role also needs access to the relevant scope tags and target device groups.

Create and assign a CIS audit profile

The preview uses version 5.0.0 of the CIS Microsoft Intune for Windows 11 Benchmark (Audit Only). This is the Intune-specific benchmark, not the separate Windows 11 Enterprise benchmark.

The profile audits 404 settings in one combined profile covering Level 1, Level 2, and BitLocker-related checks. You can't select a level, select individual settings, or change the expected values in the profile.

  1. Sign in to the Microsoft Intune admin center.
  2. Go to Endpoint security > Security baselines.
  3. Select CIS Microsoft Intune for Windows 11 Benchmark (Audit Only), and then select Create profile.
  4. On Basics, enter a descriptive Name, such as CIS audit - Windows clients. Optionally, enter a Description.
  5. On Configuration settings, review the audit scope. This profile audits the benchmark settings; you don't configure their values here.
  6. On Scope tags, add tags to control which administrators can access the profile.
  7. On Assignments, select the device groups to audit.
  8. On Review + create, review the profile and select Create.

Initial audit results can take 24 hours or longer to appear after assignment. Policy deployment and audit reporting are separate steps. Successful profile deployment alone isn't an audit result.

Review CIS audit results

Use Audit report to review benchmark findings. The standard configuration baseline reports, such as Device and user check-in status, Device assignment status, and Per setting status, aren't the audit-results view.

  1. Go to Endpoint security > Security baselines and select CIS Microsoft Intune for Windows 11 Benchmark (Audit Only).
  2. Select the profile you assigned.
  3. Open Audit report and generate the report. When a report already exists, use Generate again to refresh it with the latest available data.
  4. Use Search to find a setting. Review its name, Reference Id, and Success devices count.
  5. Select the device-count link for a setting to open the device results. Review the audit status and last check-in information for the devices you're investigating.

Interpret the results

Audit results describe a device's result for a particular benchmark check:

  • Pass: The observed device configuration meets the checked recommendation.
  • Fail: The observed device configuration doesn't meet the checked recommendation.

An evaluation error isn't a failed benchmark check. Don't count an error or a missing result as evidence that the device passes or fails.

Results aren't real-time. Review the report's generated timestamp and device check-in information when you interpret a finding. Generating a report doesn't mean every targeted device has returned a new evaluation.

The audit report shows the pass or fail result of each check but doesn't display the actual configuration value on the device.

Audit status values

Each device is evaluated per setting. In the IndustryBaselinePerSettingDeviceAuditList report, MaxSettingStatus is an integer. It represents the audit result for a setting on a device.

The table also shows equivalent Extensible Configuration Checklist Description Format (XCCDF) result categories. These categories don't describe a separate export format.

Status MaxSettingStatus Description XCCDF mapping
Unknown No separate value The device hasn't reported results for this setting yet. unknown
Not applicable 1 The setting doesn't apply to this device. notapplicable
Pass 2 The device passes this CIS check. pass
Fail 4 The device fails this CIS check. fail
Error 5 An error occurred while evaluating this setting on the device. error
Conflict No separate value A conflicting policy was detected for this setting. No direct equivalent

Export audit results

Export results when you need to review findings outside the admin center.

  1. Open the profile's Audit report.
  2. Select Export and save the exported results.

For programmatic access, use the CIS-specific examples in Use the Microsoft Graph API for CIS audit reports.

Use the Microsoft Graph API for CIS audit reports

Use Microsoft Graph to discover your CIS audit profile, retrieve summary and device results, or export results for that profile. Create and assign the profile in the admin center before retrieving its audit results.

The examples use the /beta endpoint and the shared IndustryBaseline report names. Filter requests by the PolicyId of your CIS profile. You don't need a Security Technical Implementation Guide (STIG) profile to retrieve CIS results.

Authenticate to Microsoft Graph for the tenant that contains the profile. Include an Authorization: Bearer {token} header with each request and Content-Type: application/json for POST requests. For authentication and consent, see Use the Microsoft Graph API. For template-read permissions, see List configuration policy templates.

For configuration reporting, DeviceManagementConfiguration.Read.All permits reading cached report results. Creating cached report configurations or export jobs requires DeviceManagementConfiguration.ReadWrite.All. These permissions apply to delegated work or school accounts and applications. See Create a cached report configuration and Get cached report results. Use only the permissions needed for your workflow.

Retrieve baseline metadata

List the baseline templates:

GET https://graph.microsoft.com/beta/deviceManagement/configurationPolicyTemplates?$filter=templateFamily eq 'baseline'

The response lists baseline templates, not only CIS templates. Select CIS Microsoft Intune for Windows 11 Benchmark (Audit Only) and the version that your profile uses. If the response contains @odata.nextLink, follow it to retrieve the remaining templates.

Field How to use it
displayName Identify the CIS audit baseline.
displayVersion Identify the benchmark version.
settingTemplateCount Review the number of setting templates in the baseline.
baseId Identify the template family across versions. Don't use this value as the version-specific template ID.
id Use this version-specific value as {templateId} in the next request.

Retrieve the PolicyId

List the audit profiles created from the selected template:

GET https://graph.microsoft.com/beta/deviceManagement/configurationPolicies?$filter=templateReference/templateId eq '{templateId}'

Replace {templateId} with the template's id, not its baseId. Select the CIS profile you want to report on. Use that profile's id as {PolicyId} in the following examples. Policy IDs are tenant-specific. If the response contains @odata.nextLink, follow it to retrieve the remaining profiles.

Retrieve the per-policy audit summary

Use IndustryBaselinePerSettingDeviceAuditSummary to retrieve setting names, setting IDs, and summary counts for the CIS profile.

  1. Create a cached report configuration:

    POST https://graph.microsoft.com/beta/deviceManagement/reports/cachedReportConfigurations
    Content-Type: application/json
    
    {
        "id": "IndustryBaselinePerSettingDeviceAuditSummary_{PolicyId}",
        "filter": "(PolicyId eq '{PolicyId}')",
        "orderBy": [],
        "select": ["SettingName", "SettingId", "NumberOfCompliantDevices"]
    }
    
  2. Check the report status until it is complete. If report generation fails, resolve the reported error before retrieving results:

    GET https://graph.microsoft.com/beta/deviceManagement/reports/cachedReportConfigurations('IndustryBaselinePerSettingDeviceAuditSummary_{PolicyId}')
    
  3. Retrieve the results:

    POST https://graph.microsoft.com/beta/deviceManagement/reports/getCachedReport
    Content-Type: application/json
    
    {
        "id": "IndustryBaselinePerSettingDeviceAuditSummary_{PolicyId}",
        "filter": "(PolicyId eq '{PolicyId}')",
        "orderBy": [],
        "select": ["SettingName", "SettingId", "NumberOfCompliantDevices"],
        "skip": 0,
        "top": 50
    }
    

    SettingId identifies the setting for the device-detail request. NumberOfCompliantDevices is the service-reported compliant-device count. Increase skip by top to retrieve subsequent pages until no rows remain. Read the returned Schema to identify the columns in Values.

Retrieve per-setting device details

Use IndustryBaselinePerSettingDeviceAuditList to retrieve device results for a setting. Replace {SettingId} with a setting ID from the summary and {PolicyId} with the same CIS profile ID.

  1. Create the cached report configuration:

    POST https://graph.microsoft.com/beta/deviceManagement/reports/cachedReportConfigurations
    Content-Type: application/json
    
    {
        "id": "IndustryBaselinePerSettingDeviceAuditList_{PolicyId}",
        "filter": "(PolicyId eq '{PolicyId}') and (SettingId eq '{SettingId}')",
        "orderBy": [],
        "select": ["DeviceName", "MaxSettingStatus", "PspdpuLastModifiedTimeUtc"]
    }
    
  2. Check the report status until it is complete. If report generation fails, resolve the reported error before retrieving results:

    GET https://graph.microsoft.com/beta/deviceManagement/reports/cachedReportConfigurations('IndustryBaselinePerSettingDeviceAuditList_{PolicyId}')
    
  3. Retrieve the results:

    POST https://graph.microsoft.com/beta/deviceManagement/reports/getCachedReport
    Content-Type: application/json
    
    {
        "id": "IndustryBaselinePerSettingDeviceAuditList_{PolicyId}",
        "filter": "(PolicyId eq '{PolicyId}') and (SettingId eq '{SettingId}')",
        "orderBy": [],
        "select": ["DeviceName", "MaxSettingStatus", "PspdpuLastModifiedTimeUtc"],
        "skip": 0,
        "top": 50
    }
    

    Read the returned Schema to identify the columns in Values. Increase skip by top to retrieve subsequent pages until no rows remain. Repeat the workflow for each setting you need, or use bulk export for all settings. For the numeric MaxSettingStatus mapping, see Audit status values.

Export CIS audit data in bulk

Use IndustryBaselinePerSettingDeviceAuditList with exportJobs to export results across all settings for the selected CIS profile. Don't include a SettingId filter when you want all settings.

  1. Create the export job:

    POST https://graph.microsoft.com/beta/deviceManagement/reports/exportJobs
    Content-Type: application/json
    
    {
        "reportName": "IndustryBaselinePerSettingDeviceAuditList",
        "filter": "(PolicyId eq '{PolicyId}')",
        "format": "csv",
        "select": ["PolicyId", "SettingId", "DeviceId", "MaxSettingStatus", "DeviceName", "PspdpuLastModifiedTimeUtc"]
    }
    
  2. Use the returned job id as {exportJobId} and check its status:

    GET https://graph.microsoft.com/beta/deviceManagement/reports/exportJobs('{exportJobId}')
    
  3. When status is completed, download the file from the response's url. If the job fails, resolve the reported error before starting another export.

For export permissions, request parameters, job status, and download handling, see Create an export job and Export Intune reports using Microsoft Graph APIs.