In short
- Most attacks on Windows networks end in Active Directory. A domain admin account is the attacker’s real goal.
- A useful assessment looks at four areas: privileged accounts, configuration weaknesses (“anomalies”), stale objects and trusts.
- You can check the basics yourself with the PowerShell commands below. They only read from AD.
- For a complete, repeatable picture, BindShield runs the checks for you and gives an A–F grade with fix steps. The free version needs no sign-up.
Why assess Active Directory
Active Directory decides who can sign in to what across your whole Windows estate. That makes it the first thing an attacker explores after getting a foothold, for example through a phishing e-mail on one laptop. From there they look for a short path to a privileged account: an old admin account with a weak password, a service account that can be cracked offline, a server that is trusted to impersonate any user.
These weaknesses build up quietly over years of normal administration. Nobody plans them; people leave, projects end, quick fixes stay. An assessment finds them before someone else does.
The four areas a good assessment covers
| Area | What it looks for | Examples |
|---|---|---|
| Privileged accounts | Who effectively has admin rights, and how well those accounts are protected | Members of Domain Admins, Kerberoastable admins, DCSync rights, delegation, krbtgt password age |
| Anomalies | Settings that make attacks easier | LDAP and SMB signing, certificate templates, GPO permissions, Print Spooler on domain controllers, unpatched vulnerabilities |
| Stale objects | Things that should no longer exist | Inactive users and computers, unsupported operating systems, accounts with no password required, legacy protocols |
| Trusts | How your domain relates to other domains and forests | SID filtering, trust encryption, delegation across trusts, old trust passwords |
Before you start
- Get permission in writing if the domain isn’t yours to manage, even for read-only checks.
- Use a domain-joined admin workstation or jump host with PowerShell 5.1 or 7 and the RSAT Active Directory module (
Import-Module ActiveDirectory). - A normal domain user can read most of what is below. Checks that run on a domain controller (signing, services) need admin rights there.
- Everything in this guide only reads. Don’t change anything until you have a list, an owner for each fix and a way back.
12 checks you can run today
Privileged accounts
1. Who is in the most powerful groups? Every member should be a named person who needs it today. Nested groups count too, which is why -Recursive matters.
foreach ($g in "Domain Admins","Enterprise Admins","Schema Admins","Administrators") {
Get-ADGroupMember -Identity $g -Recursive |
Select-Object @{n='Group';e={$g}}, Name, ObjectClass, SamAccountName
}
2. When was the krbtgt password last changed? If it is years old, anyone who ever stole it can still forge Kerberos tickets (“golden tickets”). Rotating it is safe when done properly: twice, with full replication in between.
Get-ADUser krbtgt -Properties PasswordLastSet | Select-Object PasswordLastSet
3. Which accounts can be Kerberoasted? Any domain user can request a ticket for an account with a service principal name (SPN) and try to crack its password offline. Admin accounts with SPNs and old passwords are the real danger.
$props = 'ServicePrincipalName','PasswordLastSet','AdminCount'
Get-ADUser -LDAPFilter "(servicePrincipalName=*)" -Properties $props |
Where-Object Name -ne 'krbtgt' |
Select-Object Name, AdminCount, PasswordLastSet,
@{n='SPNs';e={$_.ServicePrincipalName -join '; '}}
4. Which computers have unconstrained delegation? A server with unconstrained delegation keeps a copy of the Kerberos ticket of everyone who connects to it. Domain controllers need it; other servers almost never do.
$unconstrained = "(userAccountControl:1.2.840.113556.1.4.803:=524288)"
Get-ADComputer -LDAPFilter $unconstrained -Properties PrimaryGroupID, OperatingSystem |
Where-Object PrimaryGroupID -ne 516 |
Select-Object Name, OperatingSystem
5. Do admin accounts have passwords that never expire? AdminCount=1 marks accounts that are, or once were, in a protected admin group.
$filter = 'AdminCount -eq 1 -and PasswordNeverExpires -eq $true -and Enabled -eq $true'
Get-ADUser -Filter $filter -Properties PasswordLastSet |
Select-Object Name, PasswordLastSet
Stale objects
6. Enabled users who haven’t signed in for 90 days. Each one is a working password nobody is watching.
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly |
Where-Object Enabled | Select-Object Name, LastLogonDate
7. Computers that haven’t been seen for 90 days.
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -ComputersOnly |
Where-Object Enabled | Select-Object Name, LastLogonDate
8. Accounts that don’t need a password. The PasswordNotRequired flag lets an account have an empty password, whatever your password policy says.
Get-ADUser -Filter 'PasswordNotRequired -eq $true -and Enabled -eq $true' | Select-Object Name
9. Domain controllers on unsupported Windows versions. An unsupported DC no longer gets security fixes.
Get-ADDomainController -Filter * | Select-Object Name, OperatingSystem, OperatingSystemVersion
Anomalies
10. Is LDAP signing required on domain controllers? Without it, an attacker on the network can relay authentication to LDAP. Run on each DC (as admin); 2 means required.
$ntds = 'HKLM:\SYSTEM\CurrentControlSet\Services\NTDS\Parameters'
Get-ItemProperty $ntds -Name LDAPServerIntegrity
11. Is SMB signing required, and is the Print Spooler running on DCs? The Spooler on a domain controller has been the starting point of several well-known attacks and is rarely needed there.
Invoke-Command -ComputerName DC01 -ScriptBlock {
Get-SmbServerConfiguration | Select-Object RequireSecuritySignature
Get-Service Spooler | Select-Object Status, StartType
}
Trusts
12. Which trusts exist, and is SID filtering on? Every trust is a door. Check each one is still needed and that SID filtering protects external trusts.
Get-ADTrust -Filter * |
Select-Object Name, Direction, TrustType, ForestTransitive,
SIDFilteringQuarantined, SIDFilteringForestAware
Where manual checks fall short
These twelve checks catch a lot, but they are a starting point, not an assessment:
- Some of the most serious issues are hard to check by hand, such as certificate templates that let any user request a certificate for an admin (the ESC1–ESC4 family), DCSync rights given to the wrong accounts, or GPOs that ordinary users can edit.
- Raw lists aren’t priorities. A list of 300 inactive accounts doesn’t tell you which three findings to fix this week.
- It isn’t repeatable. Next month someone runs slightly different commands, and you can’t tell whether things got better or worse.
- Management wants a simple answer: how risky are we, and is it improving?
A free Active Directory assessment with BindShield
BindShield is our read-only assessment tool for Windows. It runs these checks and many more, 158 controls across the four areas, and produces one HTML report with an A–F grade, every finding ranked by risk, the affected objects, the MITRE ATT&CK technique each one enables, and step-by-step fixes.
- Free version: no sign-up, 10 key controls, the A–F score and a report. Run
.\BindShield.exe -Demoto see a full sample report first. - Professional (₹9,999 a year, one domain): all 158 controls, no watermark, scan comparison to see what changed since last month, JSON and CSV exports.
- Read-only and private: BindShield never writes to Active Directory, and the report stays on your machine. Only the details needed to activate a licence are ever sent to us.
Getting a first result takes about ten minutes: download the zip, unzip it on a domain-joined jump host and run .\BindShield.exe in PowerShell. You can also open a sample report to see what you’ll get.
Download BindShield free Buy Professional – ₹9,999 / year
What to fix first
- Anything that hands out domain admin directly: unexpected members of admin groups, DCSync rights, dangerous certificate templates, Kerberoastable admin accounts.
- Ways to steal credentials in transit: unconstrained delegation, LDAP and SMB signing, the Spooler on domain controllers.
- Clean-up that shrinks the attack surface: stale users and computers, accounts with no password required, old operating systems, unused trusts.
Test each change, start with a small group of objects, and keep a note of what you changed. Some fixes, such as requiring LDAP signing or rotating krbtgt, need a short check that older systems still work.
How often to assess
Monthly is a good rhythm for most organisations, and always after big changes: a merger, a new domain or trust, a migration, or a security incident. Comparing each run with the last one turns the assessment into a simple trend your team and management can follow.
Want the full list of what to harden? Use our Active Directory security checklist.
Want help with the findings?
Our infrastructure and security team can run the assessment with you and work through the fixes. Write to [email protected] or use our contact form.