No GPOs should contain a cpassword
AD-GPOREP-18CriticalActive DirectoryGroup Policy
Part of Active Directory · Active Directory · Group Policy · All checks
Invoke-Maester -TestId AD-GPOREP-18Overview
Section titled “Overview”Test-MtAdGpoCpasswordFoundDetails
Section titled “Test-MtAdGpoCpasswordFoundDetails”Returns details of GPOs that contain a cpassword.
Why This Test Matters
Section titled “Why This Test Matters”- Detective control: detects GPOs that contain a Cpassword which could be exploited if leaked.
- Cpasswords expose sensitive credentials and should be protected.
Control Type
Section titled “Control Type”Detective
Security Recommendation
Section titled “Security Recommendation”- Rotate or remove the cpasswords where necessary and apply proper protection controls.
How the Test Works
Section titled “How the Test Works”- Uses Get-MtADGpoState to obtain GPO data, filters for reports where CpasswordFound is true, and formats a Markdown table.
Related Tests
Section titled “Related Tests”Test-MtAdGpoCpasswordFoundCount- counts GPOs with cpasswords.
Related links
Section titled “Related links”- Microsoft Learn - Group Policy security
- ANSSI checkpoint: https://www.anssi.gouv.fr/
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-GPOREP-18 |
| Severity | Critical |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Group Policy |
| Area | Authentication |
| Resource type | GroupPolicy |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1552.006 Group Policy Preferences |
| Supports controls | nist-800-53-r5:IA-5(1), nist-800-53-r5:SC-28 |
| PowerShell test | Test-MtAdGpoCpasswordFoundDetails |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read |
Source
Section titled “Source”- Test:
tests/ad/gpo-state/Test.AD-GPOREP-18.ps1 - Documentation:
tests/ad/gpo-state/Test.AD-GPOREP-18.md
About this check
- Severity
- Critical
- Effort to fix
- Medium
- Impact on users
- Low
- Product
- Active Directory
- Feature
- Group Policy
- Area
- Authentication
- Suite
- Active Directory