Skip to main content
Version: 2.2.1-preview

AD-SUB-07 - Non-RFC1918 (public IP) subnets details should be retrievable

Overview​

Detailed information about public IP subnet usage helps:

  • Identify misconfigurations: Find subnets that should use private ranges
  • Assess security posture: Evaluate exposure of internal resources
  • Plan remediation: Prioritize subnet renumbering efforts
  • Document exceptions: Record legitimate uses of public IPs

Each public IP subnet should be reviewed for proper isolation and business justification.

Security Recommendation​

For each public IP subnet:

  1. Verify if the use is intentional and justified
  2. Ensure proper network isolation is in place
  3. Document the business requirement
  4. Plan migration to private ranges if appropriate
  5. Review firewall and NAT configurations

How the Test Works​

This test retrieves all subnets, identifies those using public IP ranges, and lists them with their site associations and descriptions.

  • Test-MtAdSubnetNonInternalCount - Counts public IP subnets
  • Test-MtAdSubnetTotalCount - Counts total subnets
  • Test-MtAdSubnetSiteAssociationCount - Counts sites with subnets

Test Metadata​

FieldValue
Test IDAD-SUB-07
SeverityInfo
SuiteActive Directory
CategoryAD.Site
PowerShell testTest-MtAdSubnetNonInternalDetails
TagsAD, AD-SUB-07, AD.Site

Source​

  • Pester test: tests/ad/site/Test-MtAdSubnetNonInternalDetails.Tests.ps1
  • PowerShell source: powershell/public/ad/site/Test-MtAdSubnetNonInternalDetails.ps1