Active Directory Enumeration and Abuse with Samba’s net rpc

· Original article ↗

Summary

A practical walkthrough demonstrates how Samba’s net rpc can enumerate and modify Active Directory accounts, groups, privileges and registry settings, and explains the risks of misconfigured ACLs and defenses for domain controllers.

Key points

  • The walkthrough uses net rpc with valid credentials to enumerate example domain users, groups, shares and Windows user rights.
  • It explains how misconfigured ForceChangePassword and AddMember ACLs could let a standard user change another account’s password or gain Domain Admin membership.
  • It describes how assigning rights such as SeBackupPrivilege or SeImpersonatePrivilege can enable powerful access or persistence outside Domain Admin group membership.
  • A remote registry example changes fDenyTSConnections to enable RDP on a domain controller; the article recommends alerting on registry changes and unexpected RDP connections.
  • Recommended defenses include auditing ACLs and user-right assignments, restricting privileged accounts and RDP, monitoring relevant Windows events, and reviewing SYSVOL for GPP cPassword fields.

Article Details

Topic
Demonstration of Active Directory enumeration, account and group manipulation, privilege assignment, and remote registry changes using net rpc against a lab domain, with defensive mitigations.

MITRE ATT&CK

Products

Tools

Related Articles