Classification of AD CS components in the Administrative Tiering Model
If, in addition to Active Directory Certificate Services, the administrative tiering model is also implemented for the Active Directory directory service, the question arises as to how the individual PKI components are to be assigned to this model in order to be able to perform targeted security hardening.
| Component | Classification |
|---|---|
| Certification authority | Tier-0 |
| Authority Information Access (AIA) and CRL distribution points (CDP) | Tier-1 |
| Online Responder (Online Certificate Status Protocol, OCSP) | Tier-1 |
| Network Device Enrollment Service (NDES) | Tier-0 |
| Certificate Enrollment Web Services (Certificate Enrollment Policy Web Service, CEP and Certificate Enrollment Web Service, CES) | Tier-0 |
| Certification Authority Web Enrollment (CAWE) | Tier-0 |
Details on the classification of the certification authority
Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.
The certification authority is clearly Tier-0 for the following reasons:
- The role installation requires Enterprise Administrator permissions (can be delegated, see article "Delegate the installation of an Active Directory integrated certification authority").
- The configuration of certificate templates requires elevated rights in Active Directory (can be delegated, see article "Delegate the creation and management of certificate templates").
- Compromising the certification authority allows the attacker to issue arbitrary certificates and possibly take over the Active Directory forest (see article "Attack vector on the Active Directory directory service via the smart card logon mechanism ").
- As a rule, the certification authority is only accessed via systems from the internal network.
Details on the classification of Authority Information Access (AIA) and CRL distribution points (CDP)
The distribution points for Authority Information Access (AIA) and the CRL distribution points (CDP) are clearly Tier-1 for the following reasons:
- The systems require no direct access to the certification authority.
- The server does not have to be installed as a domain member.
- The systems may also be accessed by clients outside the internal network (e.g. Internet). The servers can be placed in a demilitarized zone (DMZ), for example.
Details on the classification of the Online Responder (Online Certificate Status Protocol, OCSP)
The Online Responder (Online Certificate Status Protocol, OCSP) is an alternative way of providing revocation status information for certificates. Thanks to OCSP, entities that want to check the revocation status of a certificate do not have to download the complete list of all revoked certificates, but can send a specific request for the certificate in question to the Online Responder. For a more detailed description, see the article "Basics: Online Responder (Online Certificate Status Protocol, OCSP) ".
The Online Responders (OCSP) are clearly Tier-1 for the following reasons:
- Although the Online Responder normally needs direct access to the certification authority, it does not have any elevated permissions in this regard. Access to the certification authority can also be prevented altogether. In this case, the server does not have to be installed as a domain member.
- Access may also come from clients outside the internal network (e.g. Internet). The servers can be placed in a demilitarized zone (DMZ), for example.
Details on the classification of the Network Device Enrollment Service (NDES)
The Network Device Enrollment Service (NDES) provides a way for devices that do not have an identity in Active Directory (for example, network devices such as routers, switches, printers, thin clients, or smartphones and tablets) to request certificates from a certification authority. For a more detailed description, see the article "Basics: Network Device Enrollment Service (NDES) ".
The Network Device Enrollment Service (NDES) is Tier-0 for the following reasons:
- Requires Enterprise Administrator permissions for role installation (can be bypassed, see article "Installing the Network Device Enrollment Service (NDES) without Enterprise Administrator permissions ").
- The server must be a domain member.
- The server has direct network access to the certification authority with rights to request certificates.
- The server has an Enrollment Agent certificate, which can be misused under certain circumstances to request certificates via Enroll on Behalf of (EOBO) .
Under certain circumstances, a downgrade to Tier-1 is possible if the following points are taken into account:
- The role is installed without Enterprise Administrator rights (see above, but this is not officially supported by the vendor).
- The connection to the administration web page of the NDES server is only allowed via Secure Sockets Layer (see article "Enabling Secure Sockets Layer (SSL) for the Network Device Enrollment Service (NDES) ").
- Hardened Registration Authority certificates (see article "Using custom Registration Authority (RA) certificate templates for the Network Device Enrollment Service (NDES) ") and device templates (see article "Configure Device Template for Network Device Enrollment Service (NDES) ") are used.
- The server is connected to a certification authority that has a correspondingly low trust level and is security hardened accordingly (see article "Security hardening of a certification authority").
- The connected certification authority is not a member of NTAuthCertificates in Active Directory.
- The possibilities for the certificate content that can be requested are restricted by name constraints of the certification authority or the TameMyCerts Policy Module for the certification authority .
Details on the classification of the Certificate Enrollment Policy Web Service (CEP)
The Certificate Enrollment Web Services (Certificate Enrollment Policy Web Service, CEP, and Certificate Enrollment Web Service, CES) enable the automatic request and renewal of certificates from a certification authority via a web-based interface. This eliminates the need for direct contact with the certification authority via Remote Procedure Call (RPC). For a more detailed description, see the article "Basics: Requesting certificates via Certificate Enrollment Web Services (CEP, CES) ".
The Certificate Enrollment Policy Web Service (CEP) is Tier-0 for the following reasons:
- The role installation requires Enterprise Administrator permissions. There is no workaround for this either.
- Must be a domain member.
- (Requires no direct access to the certification authority)
Details on the classification of the Certificate Enrollment Web Service (CES)
The Certificate Enrollment Web Service (CES) is Tier-0 for the following reasons:
- The role installation requires Enterprise Administrator permissions. There is no workaround for this either.
- Must be a domain member.
- Has direct network access to the certification authority.
- Requires Kerberos delegation with or without protocol transition, depending on the configuration (see article "Overview of the possible delegation settings for the Certificate Enrollment Web Service (CES)").
Details on the classification of Certification Authority Web Enrollment (CAWE)
Certification Authority Web Enrollment (CAWE) is a website that enables enrollees to send their certificate requests to a certification authority via a web interface. It is thus particularly suitable for submitting manual certificate requests. For a more detailed description, see the article "Basics: Certification Authority Web Enrollment (CAWE)".
Certification Authority Web Enrollment is a very old feature from Windows 2000 times - and was last adapted with the release of Windows Server 2003. Accordingly, the code is old and potentially insecure. Likewise, the feature supports no certificate templates with version 3 or newer - this means that certificate templates that use functions introduced with Windows Vista / Windows Server 2008 or newer cannot be used. It is recommended not to use Certification Authority Web Enrollment and instead request certificates via built-in tools or the PSCertificateEnrollment PowerShell module.
Certification Authority Web Enrollment (CAWE) is Tier-0 for the following reasons:
- Must either be installed directly on the certification authority (not recommended) or requires Kerberos delegation with protocol transition to work properly (see article "Overview of the possible delegation settings for Certification Authority Web Enrollment (CAWE)").
- Must be a domain member.
- Has direct network access to the certification authority.
- Delegation settings can be used to attack the certification authority under certain circumstances.
A downgrade to Tier-1 is possible if only Basic authentication is used, so that Kerberos delegation with protocol transition is not required.
