Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Certificate templates count should be retrievable

AD-CFG-13InfoActive DirectoryCertificate Services

Part of Active Directory · Active Directory · Certificate Services · All checks

Run this check
Invoke-Maester -TestId AD-CFG-13

Certificate templates define which certificate types can be issued and under what conditions. Overly permissive or unexpected templates can allow broader enrollment than intended, enabling privilege escalation through misconfigured enrollment permissions, risky EKUs, or unintended autoenrollment.

Operational

  • Establish and document the set of approved certificate templates for each CA.
  • Review template permissions (who can enroll, who can manage) and enrollment constraints at least quarterly.
  • Remove templates that are unused, deprecated, or risky (e.g., excessive EKUs, weak key protection settings, misconfigured subject name rules).
  • Alert on unexpected additions/removals or unusual counts of templates.
  • Queries Active Directory for configured certificate template objects.
  • Counts the total number of certificate templates present.
  • Compares the observed count to an expected baseline and flags unexpected deviations.
Every attribute of this check
FieldValue
Test IDAD-CFG-13
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureCertificate Services
AreaInfrastructure hardening
Resource typeCertificateAuthority
MITRE ATT&CKNone
PowerShell testTest-MtAdCertificateTemplatesCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:Configuration/*:ReadProperty