AD-GPOREP-18 - No GPOs should contain a cpassword
Overviewβ
Test-MtAdGpoCpasswordFoundDetailsβ
Returns details of GPOs that contain a cpassword.
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β
Detective
Security Recommendationβ
- Rotate or remove the cpasswords where necessary and apply proper protection controls.
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β
Test-MtAdGpoCpasswordFoundCount- counts GPOs with cpasswords.
Related linksβ
- Microsoft Learn - Group Policy security
- ANSSI checkpoint: https://www.anssi.gouv.fr/
Test Metadataβ
| 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 |
Sourceβ
- Test:
tests/ad/gpo-state/Test.AD-GPOREP-18.ps1 - Documentation:
tests/ad/gpo-state/Test.AD-GPOREP-18.md
