Active Directory: privileged access, trusts and certificate services

Unit 3 of 5 in Active Directory, cloud and cluster assessment.

You will be able to prove local admin passwords are unique, restrict where administrators sign in without locking yourself out, and audit a trust and a certificate authority in a lab.

Lesson

One password everywhere is the finding

Microsoft's best-practice page lists local privileged accounts with the same credentials on every system as a risky configuration. Windows LAPS is the fix: its overview says it regularly rotates and manages local administrator account passwords, with benefits that include protection against pass-the-hash and lateral-traversal attacks, and it can back passwords up to Windows Server Active Directory using a fine-grained security model of access control lists and optional encryption.

Testing a fix like this means asking three questions of your lab: is each machine's password different, is it rotating, and who can read it. The last matters as much as the first two, because a store of every local admin password is itself a target. The lab keeps the list of readers tiny and proves uniqueness and rotation.

Where administrators sign in

The same best-practice page says credential theft targets permanently privileged accounts, and that users raise the risk by signing in to privileged accounts on unsecured computers or browsing the internet while signed in. Its guidance is to never administer a trusted system from a less-trusted host and to require multi-factor authentication for privileged tasks.

The assessment is a measurement: where have your privileged accounts actually signed in from? Then you restrict it in layers. Microsoft describes the Protected Users group as designed to protect against credential theft, applying non-configurable protections: credentials are not cached, NTLM and the weaker Kerberos encryption types are not used, delegation is not allowed, and tickets cannot be renewed past an initial four-hour lifetime. It also lists prerequisites such as a domain functional level of Windows Server 2012 R2 or later.

The page adds cautions that matter to an assessor writing a recommendation: never add service or computer accounts to the group, and do not add accounts already in the most privileged groups until you can guarantee that doing so will not lock them out, because members can authenticate only with Kerberos using AES and these limits cannot be worked around. That is why the lab uses a throwaway admin account, starts an authentication policy in audit mode, and keeps a way back.

Trusts: who else may authenticate in

A trust extends who can authenticate into a domain, so a trust to another forest belongs in the scope document and in the assessment. The Microsoft pages opened for this class did not describe trust settings in enough detail to cite, so this lesson says only what the lab does: it builds a second throwaway forest and a one-way trust between two labs you own, then audits direction, SID filtering and selective authentication, tightens them and re-tests. The lab names the setting and the command for each. If your own work ever touches a real trust, the owner of both sides needs to agree in writing.

A certificate authority is identity infrastructure

Microsoft describes Active Directory Certificate Services as a Windows Server role for issuing and managing public key infrastructure (PKI) certificates used in secure communication and authentication. Its features include certification authorities, a web page for requesting certificates, and request services for devices and for computers outside the domain. The X.509 certificates it issues can be used to authenticate users, computers and devices on a network.

Because a certificate authority issues certificates that can prove identity, the best-practice page's list of infrastructure that credential thieves target includes PKI servers. The audit therefore looks at templates (what each one controls and who may use them), the authority's flags and permissions, and the web page for requesting certificates from the authority, and fixes each finding. The lab uses a read-only audit tool and certutil on a certificate authority you built; it issues no certificates and relays nothing, and it names the finding categories its tool reports.

Key points

Sources

Lecture

Identity is the perimeter: Why logins are the wall: the identity layer these audits check from the directory side.

Practice in the labs

Fix and prove three privileged-access settings, audit a trust and a certificate authority, all in your own lab.

Knowledge check

  1. Which three questions does the LAPS test ask of a lab? Answer: Is each machine's password different, is it rotating, and who can read it. Uniqueness proves the shared-password finding is fixed, rotation proves it stays fixed, and the reader list protects the store of passwords.
  2. Microsoft warns against adding which kind of account to Protected Users? Answer: Service and computer accounts. For those accounts the password or key material is always available on the host, so membership gives no local protection.
  3. Why does the lab start an authentication policy in audit mode? Answer: To see what it would block before enforcing it, so you do not lock out administrators. Restricting admin sign-in can lock people out; measuring first and keeping a way back is part of the method.
  4. Why do certificate servers appear in an audit of directory identity? Answer: X.509 certificates can authenticate users, computers and devices, so the certificate authority that issues them is identity infrastructure. Microsoft describes its certificates as used for authentication, and lists PKI servers among the infrastructure credential thieves target.

Back to the syllabus or see all classes.

Related