Active Directory
Note: These are changes to your on-premises directory. SenseOn observes the endpoints and, where configured, the domain controllers. SenseOn detects the techniques that this page describes, but it does not configure Active Directory for you. Test each change on this page in a non-production forest first. Before you start, make a system state backup of your domain controllers. Make sure that the backup is good.
Active Directory is rarely the initial access point, but it is almost always the pivot. In the cases that SenseOn escalates, the pattern is consistent. First, an attacker compromises a single endpoint. Then the attacker enumerates the directory from that endpoint. Then the directory gives the attacker a path to Domain Administrator that usually existed for years. The controls on this page close the paths that occur again and again.
On this page, the sequence is more important than on other pages. Administrative tiering is the control that gives the other controls their value. It is also the control that takes months, not an afternoon. Start it early. Do the cheap items at the same time.
Administrative tiering
In a directory review after an incident, the most common problem is a Domain Administrator account that logged on interactively to an ordinary workstation. After this occurs, it is possible to recover the credential from that workstation. Then the compromise of any single endpoint becomes the compromise of the forest.
The principle is that a credential must never be on a system with less trust than the credential itself.
| Tier | Contains | May sign in to |
|---|---|---|
| Tier 0 | Domain controllers, AD Certificate Services, Entra Connect, backup infrastructure, anything that can grant Tier 0 access | Tier 0 systems only |
| Tier 1 | Servers and applications | Tier 1 and below |
| Tier 2 | User workstations | Tier 2 only |
Practical enforcement:
- Privileged Access Workstations. Tier 0 administration occurs from dedicated hardened workstations that do not browse the web or read email. This is the part that organisations skip. But this part makes tiering real, not only an aspiration.
- Deny logon rights. Use the
Deny log on locally,Deny log on through Remote Desktop Services,Deny log on as a batch jobandDeny log on as a serviceuser rights. Then higher-tier accounts cannot authenticate to lower-tier systems. These rights are the mechanism. Without them, the tier model is only a diagram. - Separate accounts per tier. One person has three accounts. The daily account of the person never holds privilege.
- Protected Users group. Membership of Protected Users forces Kerberos AES and prevents NTLM authentication. Windows also does not cache the credentials of these accounts. Test carefully, because it will break anything that relies on delegation or on NTLM.
- Account is sensitive and cannot be delegated. Set this on every privileged account. Then nobody can impersonate the account through a delegation path.
The current Microsoft name for this approach is the Enterprise Access Model. It extends tiering to cloud identity. The principle under it is the same.
Delegation
In most directories, Kerberos delegation is the incorrect configuration that attackers can exploit most reliably. It is also the one that administrators least frequently know about.
- Remove unconstrained delegation. A server with unconstrained delegation caches the ticket-granting ticket of each account that authenticates to it, also Domain Administrators. If an attacker compromises that one server, the attacker compromises the forest. Audit for unconstrained delegation and eliminate it. The only object with a legitimate reason to have it is the domain controller itself.
- Use resource-based constrained delegation where delegation is really necessary. You configure it on the resource, not on the account. Thus, the owner of the resource has the control.
- Audit
msDS-AllowedToActOnBehalfOfOtherIdentity. Write access to this attribute on a computer object is a direct path to SYSTEM on that computer. With a machine account quota that is not zero, it is an escalation route that attackers use frequently.
Machine account quota
The default value of ms-DS-MachineAccountQuota is 10. Thus, any authenticated user can join ten computers to the domain. A computer account is a prerequisite for several standard escalation techniques.
Set it to 0 on the domain object. Delegate machine join rights explicitly to the accounts and service that must have them. This is a change to a single attribute. After you delegate join rights correctly, it has almost no effect on legitimate work. It is the cheapest change on this page that gives a real improvement.
Service accounts and Kerberos
No privilege is necessary for Kerberoasting. Any authenticated user can request a service ticket for any account with a Service Principal Name. The user can then crack the ticket offline, at any time. There are no failed logons and there is nothing to cause an alert.
| Control | Detail |
|---|---|
| Use group Managed Service Accounts | gMSAs have 240-character randomly generated passwords, and the directory rotates them automatically. In practice, nobody can crack them. This is the real correction. Each service that supports a gMSA must use one. |
| Where a gMSA is impossible, use a long random password | 25 characters or more, randomly generated, and kept in a password manager. Rotate it. Because of the length, attackers cannot crack it offline. |
| Remove unnecessary SPNs | Audit accounts with an SPN. Many are historic, on services that you decommissioned long ago. |
| Never give a service account privileged group membership | If a Domain Administrator account is Kerberoastable, anyone with a wordlist can compromise the forest. This combination is common. Treat it as an emergency. |
| Disable RC4 for Kerberos | RC4 tickets are much faster to crack than AES tickets. First, make sure that nothing in the estate still depends on RC4. Then move to AES-only encryption types. |
| Audit for accounts without Kerberos pre-authentication | The Do not require Kerberos preauthentication flag makes AS-REP roasting possible. An authenticated session is not even necessary for AS-REP roasting. There is almost never a current reason to set this flag. |
Protocol hardening
These are the protocols that turn a foothold on one workstation into credentials for another.
| Control | Why |
|---|---|
| Disable LLMNR, NBT-NS and mDNS | Fallback protocols for name resolution. They broadcast to the local subnet, and anyone on the subnet can answer them. If an attacker poisons them, the attacker collects NTLM hashes with no interaction. In a DNS environment that works, they have no legitimate use. Disable LLMNR with Group Policy. Disable NBT-NS through a DHCP option or on each adapter. |
| Enforce SMB signing | Blocks NTLM relay over SMB. It is mandatory by default on domain controllers. More recent Windows releases now enable it by default. But frequently, member servers and clients do not enforce it. On high throughput file servers, there is a performance consideration. Thus, test it. Do not assume. |
| Enforce LDAP signing and channel binding | The LDAP equivalent, and the relay path to the directory itself. First, enable the related audit to find clients that will break. |
| Disable SMBv1 | Removed or off by default on supported Windows versions. Audit for it in all cases, because it remains in older appliances, scanners and storage devices. |
| Restrict NTLM | Audit NTLM usage first. Then restrict it progressively. In most estates, full removal is a long project. But the audit alone tells you where your legacy exposure is. Disable NTLMv1 completely. |
| Disable the Print Spooler on domain controllers | Do this unless the domain controller is really a print server. A domain controller must not be a print server. This removes the PrintNightmare class of vulnerability and a reliable coercion primitive. |
Active Directory Certificate Services
If you run AD CS, it is Tier 0. In a directory that is otherwise well managed, AD CS is frequently the shortest path to Domain Administrator. If a certificate template has an incorrect configuration, a low-privileged user can request a certificate that authenticates as a different person. This access continues after password resets, for the lifetime of the certificate.
The high-priority checks:
- Templates that allow the requester to supply the subject. A template with
ENROLLEE_SUPPLIES_SUBJECT, a client authentication EKU and broad enrolment rights gives direct impersonation of any account. This includes Domain Administrator. - Templates that do not require manager approval where they grant authentication capability.
- Overly broad enrolment permissions, especially permissions for Domain Users or Authenticated Users.
- Dangerous access control on the CA object and on template objects themselves.
- Web enrolment endpoints that are reachable over HTTP with NTLM authentication. These endpoints are relay targets. Apply the Microsoft certificate authentication hardening. Enable Extended Protection for Authentication.
- Strong certificate mapping. Make sure that the hardening for certificate-to-account mapping is in enforcement mode, not compatibility mode.
Audit with a recognised assessment tool. Compare the results with the guidance from Microsoft. Treat AD CS with the same care as a domain controller, because it is one.
Protect the synchronisation boundary
If you synchronise the directory to Microsoft Entra ID, the synchronisation infrastructure is Tier 0 in both directions.
- Entra Connect servers are Tier 0. Treat them as domain controllers. The synchronisation account holds directory-wide permissions.
- Do not synchronise on-premises privileged accounts to the cloud. Filter them out. A compromise of Active Directory must not automatically become a compromise of your tenant.
- Keep cloud administrative identities cloud-only, as Identity and Access describes.
- Password hash synchronisation is useful to enable, even if you use federation. It lets Entra ID Protection detect leaked credentials. It also gives a recovery path if the federation infrastructure is not available.
- If you use federation, the token signing infrastructure is Tier 0. Its certificates are your most valuable assets. With a stolen signing key, an attacker can mint tokens for any identity in the tenant. These tokens do not appear in your on-premises logs at all.
Recovery
Assume that you will have to rebuild the directory, because in a ransomware case this is usually necessary. The capability to recover is a security control.
- Offline or immutable backups of domain controller system state. Ransomware encrypts an online backup on a domain-joined server together with everything else.
- A written and tested forest recovery plan. Microsoft publishes a forest recovery guide. Do not read it for the first time during an incident.
- Test the restore, not the backup. A backup that you did not test is a hypothesis.
- Document where the recovery credentials live. Make sure that you can get to them when the directory is not available.
For how SenseOn responds, refer to the Ransomware playbook. For automated containment before the spread gets to this point, refer to Reflex.
Auditing and telemetry
If you cannot observe a hardening change, you cannot make sure that it works.
- Enable the advanced audit policy, not the legacy categories. Give priority to account logon, account management, directory service access, and process creation.
- Enable command line auditing with process creation events (4688). Without it, the event tells you that a process started, but not what it did.
- Forward domain controller events into SenseOn through Log Ingestion. Domain controller security logs are some of the sources with the highest value that you can connect. They are also the sources that are most frequently absent when we must have them.
- Deploy the Universal Sensor to domain controllers. Domain controllers are servers, and attackers target them. Directory attacks become visible in their process telemetry. Refer to Endpoint Requirements.
When the telemetry arrives in SenseOn, Hunt Lab is the fastest method to look for the conditions on this page across the estate.
Go live checklist
- [ ] System state backup of domain controllers taken and tested before any change
- [ ] Tiering model documented, with deny logon rights enforced by Group Policy
- [ ] Privileged accounts separated from day-to-day accounts
- [ ] Privileged accounts added to Protected Users and marked as sensitive and cannot be delegated
- [ ] Unconstrained delegation audited and removed from everything except domain controllers
- [ ]
ms-DS-MachineAccountQuotaset to 0, with join rights explicitly delegated - [ ] Service accounts with SPNs audited, migrated to gMSA where supported
- [ ] No privileged group membership on any Kerberoastable account
- [ ] RC4 disabled for Kerberos, after a check that there is no dependency
- [ ] Accounts without Kerberos pre-authentication found and corrected
- [ ] LLMNR, NBT-NS and mDNS disabled
- [ ] SMB signing and LDAP signing with channel binding enforced
- [ ] SMBv1 shown to be absent, NTLMv1 disabled, NTLM usage audited
- [ ] Print Spooler disabled on domain controllers
- [ ] AD CS templates and permissions reviewed, strong certificate mapping enforced
- [ ] Entra Connect treated as Tier 0, privileged accounts excluded from synchronisation
- [ ] Offline or immutable backups in place, forest recovery plan written and tested
- [ ] Advanced audit policy and command line auditing enabled, events arrive in SenseOn
- [ ] Universal Sensor deployed to all domain controllers
Related pages
- Identity and Access (Microsoft Entra ID) for the cloud directory and the synchronisation boundary.
- Windows Endpoints for the endpoint controls that stop the initial foothold.
- Log Ingestion to forward domain controller events into SenseOn.
- Ransomware playbook and Malware playbook.
Sources
We did a check of all URLs on 19 August 2026.
- Securing privileged access and the Enterprise Access Model
- Best practices for securing Active Directory
- Protected Users security group
- Group Managed Service Accounts overview
- Kerberos delegation
- Overview of Server Message Block signing
- Domain controller LDAP signing requirements
- Active Directory Forest Recovery Guide
- NCSC guidance on preventing lateral movement