Get-NdesNtlmDisclosure

1.0

Sends an unauthenticated NTLM type-1 (negotiate) message to the NDES SCEP administration
endpoint and inspects the server's NTLM type-2 (challenge) response. When NTLM is enabled,
the type-2 challenge leaks sensitive host and domain details in its TargetInfo block,
including the server's NetBIOS and DNS computer names, the NetBIOS and DNS domain names,
the DNS forest
Sends an unauthenticated NTLM type-1 (negotiate) message to the NDES SCEP administration
endpoint and inspects the server's NTLM type-2 (challenge) response. When NTLM is enabled,
the type-2 challenge leaks sensitive host and domain details in its TargetInfo block,
including the server's NetBIOS and DNS computer names, the NetBIOS and DNS domain names,
the DNS forest name, and the operating system version.

This information disclosure occurs without any authentication and can be used by an
attacker to enumerate an organization's internal Active Directory namespace. The script
surfaces exactly what an unauthenticated client can retrieve so the exposure can be
assessed and remediated (for example, by disabling NTLM on the NDES endpoint).

The request is always sent over HTTPS to the default NDES SCEP administration endpoint
(/certsrv/mscep_admin), which is the resource that presents the NTLM challenge.

Show more

Installation Options

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

Install-Script -Name Get-NdesNtlmDisclosure -RequiredVersion 1.0

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

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

Copyright (C) 2026 Richard M. Hicks Consulting, Inc. All Rights Reserved.

Package Details

Author(s)

  • Richard Hicks

Tags

PKI certificates Intune Microsoft NDES SCEP NTLM ADCS

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.2 2 8/16/2026
1.1 5 8/16/2026
1.0 (current version) 4 8/15/2026