AD-SUB-08 - Distinct first octets count should be retrievable
Overviewβ
Analyzing subnet distribution by first octet provides:
- Addressing scheme visibility: Understanding IP allocation patterns
- Network segmentation insight: How the network is logically divided
- Capacity planning: Identifying available address space
- Documentation: Supporting network topology documentation
Common patterns include using 10.x for corporate, 172.x for datacenters, etc.
Security Recommendationβ
- Document the IP addressing scheme and first octet allocation
- Plan address space to avoid conflicts during acquisitions
- Reserve address space for future growth
- Review addressing scheme during network architecture changes
How the Test Worksβ
This test extracts the first octet from all IPv4 subnets and counts the distinct values.
Related Testsβ
Test-MtAdSubnetFirstTwoOctetsCount- Analyzes /16 networksTest-MtAdSubnetFirstThreeOctetsCount- Analyzes /24 networksTest-MtAdSubnetTotalCount- Counts total subnets
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AD-SUB-08 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.Site |
| PowerShell test | Test-MtAdSubnetFirstOctetCount |
| Tags | AD, AD-SUB-08, AD.Site |
Sourceβ
- Pester test:
tests/ad/site/Test-MtAdSubnetFirstOctetCount.Tests.ps1 - PowerShell source:
powershell/public/ad/site/Test-MtAdSubnetFirstOctetCount.ps1

