DSInternals
- Capabilities
- Credential theftPrivilege escalation
- Platforms
- Windows
DSInternals is an open-source toolkit for interacting with Microsoft Active Directory and Directory Services, including through PowerShell. It is a legitimate administrative and security-assessment tool rather than a malware family, but its functionality can be abused during post-compromise operations. It supports obtaining Active Directory credential material, including password hashes, and modifying directory database attributes.
Its primary-group modification functionality can assign an account to a privileged primary group, such as Domain Admins. This operation also changes the account’s previous primary-group membership; it does not inherently provide an invisible membership change. Differences in how Active Directory tools enumerate primary-group membership can complicate monitoring.
Russian Foreign Intelligence Service actors, also tracked as APT29 or Midnight Blizzard, have used DSInternals to interact with Directory Services during operations involving compromised JetBrains TeamCity servers. Its inclusion among tools capable of extracting domain credential material does not by itself establish its deployment in other campaigns.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“SVR also used DSInternals open source tool to interact with Directory Services.”
“SVR also used DSInternals open source tool to interact with Directory Services.”
...the following tools could be used by an actor to obtain the same information: ... DSInternals (PowerShell)
Techniques & procedures
6 distinct techniques documented for this family, organized by ATT&CK tactic.
Privilege Escalation
1 technique
Privilege Escalation
Modification of Active Directory and Windows domain policies and elements.
Defense Impairment
1 technique
Defense Impairment
Modification of Active Directory and Windows domain policies and elements.
Credential Access
5 techniques
Credential Access
The technique can be performed offline and requires extraction of the ntds.dit file. It should be noted that the same information is retrieved using only the following command: Import-Module .\DSInternals.psd1 Get-ADDBServiceAccount -DatabasePath 'C:\tmp\ntds.dit'
Members of the Backup Operators built-in group hold both SeBackupPrivilege and SeRestorePrivilege... any attacker who breaches the Backup Operators group can back up the NTDS.DIT file directly from a DC.
MITRE ATT&CK catalogs it as T1003.006 (OS Credential Dumping: DCSync).
Golden dMSA, that enables threat actors to establish domain persistence by retrieving the hash value of passwords and Ticket Granting Tickets (TGT’s) for all delegated Managed Service Accounts in the domain.
Once an attacker has NTDS.DIT and the SYSTEM hive, they can use tools such as DSInternals or impacket-secretsdump to extract all domain credentials offline, including the krbtgt hash needed to launch a Golden Ticket attack.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.