CPSA ยท Windows domain reconnaissance and Active Directory
User enumeration via NetBIOS, SNMP and LDAP
Which services reveal account names and how to restrict them.
Key points
- Three services commonly leak account names.
- NetBIOS: the nbtstat -A name table can show the logged-on user.
- SNMP: a default or guessable community string such as public can disclose system and account data.
- LDAP: anonymous or weak binds may return user objects.
- Defences: filter UDP 137, 161 and TCP 389 at the boundary, disable unused NetBIOS and SNMP, SNMPv3 or unique strings, authenticated LDAP binds.
Practice questions
Which service can leak system and account details when it answers to the community string 'public'?
- SNMP
- NTP
- DHCP
- SMTP
Show answer
Answer: A. SNMP
SNMP agents use community strings as shared passwords; the default 'public' is a classic weakness. NTP, DHCP and SMTP have no community string concept.
Which services can reveal account names to an unauthenticated or weakly authenticated client?
- NetBIOS name service
- SNMP with a default community string
- LDAP that permits anonymous binds
- NTP time responses
- ICMP echo replies
Show answer
Answer: A. NetBIOS name service, B. SNMP with a default community string, C. LDAP that permits anonymous binds
Each of the first three can disclose names or objects. NTP and ICMP carry only time and reachability data.
Anonymous LDAP read access is harmless because the directory only holds public data.
Show answer
Answer: False
False. Account names, group memberships and computer names are valuable to an attacker preparing password attacks, so anonymous reads should be disabled.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
