Add MT.1123 - BitLocker Full Disk Encryption Check#1583
Open
OfirGavish wants to merge 1 commit intomaester365:mainfrom
Open
Add MT.1123 - BitLocker Full Disk Encryption Check#1583OfirGavish wants to merge 1 commit intomaester365:mainfrom
OfirGavish wants to merge 1 commit intomaester365:mainfrom
Conversation
Up to standards ✅🟢 Issues
|
b58eab3 to
8954167
Compare
8954167 to
11969d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Add MT.1123 - BitLocker Full Disk Encryption Check
Summary
Adds a new Intune test MT.1123 that verifies at least one Intune Endpoint Security > Disk Encryption policy enforces BitLocker with full disk encryption type for OS drives — not just that BitLocker is configured, but that the encryption type is explicitly set to protect the entire drive.
Motivation
BitLocker Drive Encryption is a critical security control, but the encryption type setting makes all the difference:
There is currently no Maester test to verify that BitLocker is configured via Intune, let alone that the encryption type is set correctly. This test fills that gap by:
configurationPoliciesGraph API (Endpoint Security > Disk Encryption blade)templateReference.templateFamily = "endpointSecurityDiskEncryption"configurationPolicies('{id}')/settings?$expand=settingDefinitionsSystemDrivesEncryptionType,FixedDrivesEncryptionType,RequireDeviceEncryption,EncryptionMethodByDriveTypeGraph API Approach
This test uses the
configurationPoliciesAPI (the same API used by the Intune admin center's Endpoint Security > Disk Encryption blade), NOT the olderdeviceConfigurationsAPI. TheconfigurationPoliciesAPI exposes the full BitLocker CSP settings including:SystemDrivesEncryptionType— OS drive encryption type (Full / Used Space Only / Allow user to choose)FixedDrivesEncryptionType— Fixed drive encryption typeRequireDeviceEncryption— Whether encryption is requiredEncryptionMethodByDriveType— Cipher strength (XTS-AES 128/256, AES-CBC 128/256)This eliminates the previous limitation where the older Endpoint Protection API (
windows10EndpointProtectionConfiguration) did not expose the encryption type setting.Files Changed
powershell/public/maester/intune/Test-MtBitLockerFullDiskEncryption.ps1powershell/public/maester/intune/Test-MtBitLockerFullDiskEncryption.mdtests/Maester/Intune/Test-MtIntunePlatform.Tests.ps1MT.1123test entrytests/maester-config.jsonMT.1123severity configwebsite/versioned_docs/version-2.0.0/tests/maester/MT.1123.mdTest Details
MT.1123,Maester,IntuneDeviceManagementConfiguration.Read.AllWhat the test checks
deviceManagement/configurationPoliciesvia the beta Graph APItemplateReference.templateFamily = "endpointSecurityDiskEncryption")configurationPolicies('{id}')/settings?$expand=settingDefinitionsRequireDeviceEncryption— whether encryption is requiredSystemDrivesEncryptionType→ child dropdown — OS drive encryption type (Full / Used Space Only / Allow user to choose)FixedDrivesEncryptionType→ child dropdown — Fixed drive encryption typeEncryptionMethodByDriveType→ child dropdowns — cipher strength per drive typeTest output example
Remediation guidance
The test documentation includes step-by-step instructions to:
Related
Checklist
Get-MtLicenseInformation,Invoke-MtGraphRequest,Add-MtTestResultDetail)configurationPoliciesAPI (same as Intune admin center Disk Encryption blade)%TestResult%placeholderTest-MtIntunePlatform.Tests.ps1with proper tagmaester-config.jsonFunctionsToExportupdated inMaester.psd1