ADCS.ESC.Assessment

0.1.0

Read-only security assessment for AD CS ESC1-ESC16 misconfigurations. Non-destructive.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name ADCS.ESC.Assessment

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name ADCS.ESC.Assessment

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Mustafa Emre GUL. All rights reserved.

Package Details

Author(s)

  • Mustafa Emre GUL

Tags

ADCS Security ESC Certificate Audit BlueTeam PKI ActiveDirectory

Functions

Invoke-ESCAssessment Export-EscCaData

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

v0.1.0 - Initial release (2026)

ADCS.ESC.Assessment is a read-only, non-destructive security assessment for
Active Directory Certificate Services (AD CS). It evaluates an environment
against the ESC1-ESC16 privilege-escalation misconfigurations, scores each
finding, and produces a self-contained HTML report plus machine-readable JSON.

Highlights
- Coverage for ESC1 through ESC16 (enrollee-supplied SAN, Any-Purpose EKU,
 enrollment agent, template/PKI/CA ACLs, EDITF_ATTRIBUTESUBJECTALTNAME2,
 ManageCA, web-enrollment NTLM relay, missing security extension, weak/explicit
 mappings, ICertPassage RPC encryption, HSM/shell access, OID group link,
 altSecurityIdentities, and EKUwu / CVE-2024-49019).
- Risk scoring (0-10 per finding) and an overall posture score (0-100 with an
 A-F grade).
- Live collection on Windows (RSAT ActiveDirectory preferred, DirectoryServices
 fallback) and an offline, fixture-based mode that runs on any platform (pwsh 7).
- Optional live-only CA extras: registry + issued-cert export (-ExportCaData),
 full read-only CA backup (-BackupCa), and unused-template analysis
 (-AnalyzeTemplateUsage).
- Exports two commands: Invoke-ESCAssessment and Export-EscCaData.

Safety
Read-only and non-destructive by design. No certificate is requested, issued,
or submitted, and no AD/CA object is modified. Permitted operations are limited
to LDAP search, certutil -getreg (read), registry reads, and HTTP GET/HEAD for
endpoint detection. Run only against environments you own or are authorized to test.

See docs/Invoke-ESCAssessment.md and docs/Export-EscCaData.md for full usage.

FileList

Version History

Version Downloads Last updated
0.1.0 (current version) 7 8/28/2026