Skip to main content
Version: 2.2.1-preview

AD-CFG-14 - Enrollment templates count should be retrievable

Overview​

Enrollment templates represent which certificate templates are available for users/computers to request through AD-integrated enrollment. If unnecessary or risky templates are available for enrollment, an attacker may enroll for certificates that enable authentication, code-signing abuse, or access to privileged resources.

Security Recommendation​

  • Keep the enrollment template set minimal and aligned with your approved PKI strategy.
  • Validate enrollment permissions and autoenrollment settings for each template that is enabled.
  • Remove templates from enrollment that are not required for business operations.
  • Monitor for unexpected changes to the number of enrollment templates.

How the Test Works​

  • Identifies enrollment-capable configuration in AD and enumerates enrollment templates exposed via that configuration.
  • Counts the number of available enrollment templates.
  • Compares the count to an environment baseline and flags unexpected increases (new template exposure) or decreases (possible misconfiguration/incident).

Test Metadata​

FieldValue
Test IDAD-CFG-14
SeverityInfo
SuiteActive Directory
CategoryAD.Config
PowerShell testTest-MtAdEnrollmentTemplatesCount
TagsAD, AD-CFG-14, AD.Config

Source​

  • Pester test: tests/ad/config/Test-MtAdEnrollmentTemplatesCount.Tests.ps1
  • PowerShell source: powershell/public/ad/config/Test-MtAdEnrollmentTemplatesCount.ps1