Using Impacket-Net to Enumerate and Modify Active Directory

· Original article ↗

Summary

A lab walkthrough shows how Impacket-Net uses NTLM hashes, Kerberos tickets, and AES keys to enumerate and modify Active Directory users, groups, and computers, then outlines hardening and monitoring measures.

Key points

  • Impacket-Net supports Active Directory authentication with NTLM hashes (Pass-the-Hash), cached Kerberos tickets, and AES keys.
  • The walkthrough demonstrates enumerating users, groups, and computers, including how low-privileged credentials can access directory information.
  • It shows account creation, disabling, deletion, and group-membership changes that could enable persistence or privilege escalation.
  • The article explains how creating machine accounts can support techniques such as Resource-Based Constrained Delegation and Shadow Credentials.
  • Recommended defenses include setting ms-DS-MachineAccountQuota to zero, enforcing LDAP signing and channel binding, and limiting privileges.
  • For detection, it recommends monitoring directory-change events and unusual SAMR or LDAP activity.

Article Details

Topic
Using impacket-net for Active Directory enumeration, account and group modification, and credential-based authentication

MITRE ATT&CK

Vendors

Products

Tools

Related Articles