All Practice Exams

100+ Free HTB CAPE Practice Questions

Prepare for the HTB Certified Active Directory Pentesting Expert exam with instant access — no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
100+ Questions
100% Free

Loading practice questions...

2026 Statistics

Key Facts: HTB CAPE Exam

10 days

Lab Duration

Hack The Box

15 modules

Prep Path Length

HTB Academy

ESC1-8

ADCS Attack Classes Covered

CAPE Syllabus

Expert

Difficulty Rating

Hack The Box

Lifetime

Certification Validity

Hack The Box

10+

AD Attack Domains Tested

CAPE Exam Guide

HTB CAPE is a 10-day practical AD lab exam that proves expert-level skills in Active Directory penetration testing. Candidates must enumerate complex AD environments, chain Kerberos attacks, exploit ADCS misconfigurations (ESC1-8), abuse DACL relationships using BloodHound, relay NTLM to LDAP and ADCS endpoints, attack cross-forest trusts, and operate a Sliver C2 framework — all while avoiding detection and submitting a professional report.

Sample HTB CAPE Practice Questions

Try these sample questions to test your HTB CAPE exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.

1Which PowerView function enumerates all Active Directory users in the current domain?
A.Get-DomainUser
B.Get-ADUser
C.Get-DomainGroup
D.Invoke-UserHunter
Explanation: Get-DomainUser is the PowerView function that queries LDAP to return user objects in the current (or a specified) domain. It supports filtering by properties such as SamAccountName, adminCount, and servicePrincipalName. Get-ADUser is a built-in Active Directory module cmdlet, not PowerView.
2What LDAP filter would you use to find all accounts with a Service Principal Name (SPN) set, making them Kerberoasting targets?
A.(&(objectCategory=person)(objectClass=user)(servicePrincipalName=*))
B.(&(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=512))
C.(&(objectClass=computer)(servicePrincipalName=*))
D.(msDS-AllowedToDelegateTo=*)
Explanation: The LDAP filter (&(objectCategory=person)(objectClass=user)(servicePrincipalName=*)) returns all user accounts that have at least one SPN set. These accounts are Kerberoasting targets because the KDC will issue a TGS ticket encrypted with their NTLM hash, which can then be cracked offline.
3During Kerberoasting, which component of the ticket is cracked offline to recover a service account's plaintext password?
A.The TGS ticket's service-ticket portion encrypted with the service account's NTLM hash
B.The TGT encrypted with the KDC's krbtgt hash
C.The PAC encrypted with the domain controller's machine account hash
D.The AS-REQ pre-authentication timestamp
Explanation: When a TGS is requested for a service with an SPN, the KDC encrypts part of the response (the service ticket) using the RC4 or AES key derived from the service account's password hash. An attacker can request this ticket and crack the encrypted portion offline to recover the plaintext password.
4Which Impacket tool is used to perform AS-REP Roasting against accounts that do not require Kerberos pre-authentication?
A.GetNPUsers.py
B.GetTGT.py
C.GetUserSPNs.py
D.secretsdump.py
Explanation: GetNPUsers.py (No Pre-Auth Users) requests AS-REP hashes for accounts where the DONT_REQUIRE_PREAUTH flag is set in userAccountControl. The returned encrypted AS-REP blob can be cracked offline with Hashcat mode 18200 to recover the account's password.
5In BloodHound, what relationship edge indicates that a principal has the ability to modify the msDS-KeyCredentialLink attribute of another object, enabling a Shadow Credentials attack?
A.WriteDacl
B.WriteOwner
C.AddKeyCredentialLink
D.GenericWrite
Explanation: The AddKeyCredentialLink edge in BloodHound indicates that a principal can write to the msDS-KeyCredentialLink attribute of a target object. An attacker exploits this by adding a certificate credential to the target account, then authenticating as that account via PKINIT Kerberos to obtain its TGT and NT hash.
6What ADCS misconfiguration (ESC1) allows any domain user to enroll in a certificate template and specify an arbitrary Subject Alternative Name (SAN)?
A.The template has the CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT flag set and allows domain user enrollment with client authentication EKU
B.The template allows client authentication and the CA enforces manager approval
C.The certificate template uses only the machine authentication EKU
D.The CA is configured with the EDITF_ATTRIBUTESUBJECTALTNAME2 flag but template restricts enrollment
Explanation: ESC1 occurs when a certificate template has the CT_FLAG_ENROLLEE_SUPPLIES_SUBJECT flag set (allowing the requester to specify the SAN), combined with low-privileged enrollment rights (e.g., Domain Users) and a Client Authentication EKU. An attacker can request a certificate specifying any user's UPN in the SAN, then use that certificate to authenticate as that user.
7Which Certipy command is used to find vulnerable ADCS certificate templates and CA misconfigurations in a domain?
A.certipy find -username user@domain.local -password pass -dc-ip 10.10.10.1
B.certipy req -username user@domain.local -password pass -ca CA -template Template
C.certipy auth -pfx admin.pfx -dc-ip 10.10.10.1
D.certipy shadow auto -username user@domain.local -password pass -account target
Explanation: certipy find performs enumeration of ADCS configuration, certificate templates, CA permissions, and identifies misconfigurations that match ESC1 through ESC11 vulnerability categories. It outputs results in JSON and BloodHound-compatible formats.
8ESC8 in ADCS involves relaying NTLM authentication to which service to obtain a certificate for a privileged account?
A.The Web Enrollment HTTP endpoint of the AD Certificate Services CA
B.The LDAP service on a domain controller
C.The RPC endpoint of the CA using MS-ICPR
D.The SMB service on the CA server
Explanation: ESC8 exploits the AD CS Web Enrollment interface (typically running on HTTP without Extended Protection for Authentication). An attacker relays NTLM authentication from a machine account (e.g., a DC forced via PetitPotam or printerbug) to the CA's /certsrv/ endpoint to request a certificate on behalf of that machine, enabling domain compromise.
9Which tool is most commonly used in HTB CAPE path to perform NTLM relay attacks, including relaying to LDAP and ADCS endpoints?
A.ntlmrelayx.py
B.Responder
C.CrackMapExec
D.mitm6
Explanation: ntlmrelayx.py (part of Impacket) is the primary tool for relaying NTLM authentication to various services including LDAP, SMB, MSSQL, and ADCS HTTP endpoints. It supports automatic exploitation modes like RBCD setup, secretsdump, and shadow credentials once a relay succeeds.
10What is the purpose of the PetitPotam technique in an NTLM relay attack against AD CS?
A.To coerce authentication from a Windows machine using the MS-EFSRPC protocol, forcing it to send NTLM credentials
B.To extract LSA secrets from a domain controller using MS-LSAD
C.To enumerate shares on a target using SMB null sessions
D.To perform pass-the-ticket using Kerberos TGTs obtained from memory
Explanation: PetitPotam exploits the MS-EFSRPC (Encrypting File System Remote Protocol) to coerce a Windows machine (including domain controllers) into authenticating to an attacker-controlled server. The resulting NTLM authentication can then be relayed to ADCS Web Enrollment (ESC8) to obtain a certificate and compromise the domain.

About the HTB CAPE Exam

The HTB Certified Active Directory Pentesting Expert (CAPE) is Hack The Box's flagship certification for proving mastery in Active Directory penetration testing. The 10-day practical exam validates advanced skills across the full AD attack lifecycle: from enumeration and Kerberos abuse to ADCS exploitation, DACL manipulation, NTLM relay, cross-forest trust attacks, and C2 operations. This practice bank tests the conceptual knowledge underlying those techniques.

Assessment

Performance-based assessment

Time Limit

10 days lab + report window

Passing Score

Undisclosed

Exam Fee

HTB Academy subscription or standalone voucher (Hack The Box)

HTB CAPE Exam Content Outline

15%

AD Enumeration & LDAP

LDAP filters, PowerView functions, BloodHound data collection and analysis, identifying attack surface from directory data

20%

Kerberos Attacks

Kerberoasting, AS-REP Roasting, Golden and Silver Tickets, Pass-the-Ticket, unconstrained/constrained/RBCD delegation, S4U2Self/S4U2Proxy, Overpass-the-Hash, Diamond Tickets

15%

DACL & ACL Abuse

WriteDacl, GenericWrite, GenericAll, WriteOwner, ForceChangePassword, Shadow Credentials, AdminSDHolder persistence, logon script abuse

15%

NTLM Relay & Coerced Authentication

ntlmrelayx.py, Responder, PetitPotam, Printer Bug, mitm6 with DHCPv6/WPAD, relay to LDAP for RBCD and shadow credentials, relay to ADCS for ESC8

15%

ADCS Attacks

ESC1 through ESC8 CA and template misconfigurations, Certipy enumeration and exploitation, PKINIT-based authentication, UnPAC-the-Hash

10%

AD Trust Attacks

Child-to-parent domain compromise, SID History injection via Extra SIDs, inter-realm ticket forgery, trust key extraction, SID filtering bypass, selective authentication misconfiguration

10%

C2 Operations, Lateral Movement & Reporting

Sliver C2 implant generation and management, SOCKS5 pivoting, execute-assembly for in-memory tool execution, Pass-the-Hash with psexec/wmiexec, professional penetration test report writing

How to Pass the HTB CAPE Exam

What You Need to Know

  • Passing score: Undisclosed
  • Assessment: Performance-based assessment
  • Time limit: 10 days lab + report window
  • Exam fee: HTB Academy subscription or standalone voucher

Keys to Passing

  • Work through all 100 available questions
  • Review every answer and explanation
  • Track weak areas and revisit them
  • Use our AI tutor for tough concepts

HTB CAPE Study Tips from Top Performers

1Master BloodHound query writing — re-run collection every time you compromise a new account and look for newly visible attack paths
2Understand Kerberos deeply: TGT vs TGS, PAC structure, encryption types (RC4 vs AES), and how each attack exploits a specific protocol weakness
3Know every Certipy command for ADCS: find (enumeration), req (certificate request), auth (PKINIT auth + NT hash), and shadow (Shadow Credentials)
4Practice NTLM relay chains: Responder for capture, PetitPotam/PrinterBug for coercion, ntlmrelayx for relay to LDAP (RBCD) and ADCS (ESC8)
5Be fluent with Sliver C2: generate implants, manage sessions, use execute-assembly for .NET tools, and set up SOCKS5 proxies for pivoting with proxychains
6Understand DACL abuse end-to-end: from BloodHound edge identification (WriteDacl, GenericWrite, WriteOwner) to exploitation with PowerView or dacledit
7Practice AD trust attacks: child-to-parent using SID History Extra SIDs, trust key extraction, and inter-realm ticket forgery
8Start your report on day 1 — document every command, screenshot every flag, and write findings as you go rather than scrambling at the end
9Test all tools and payloads against Windows Defender before the exam — evasion techniques may be required for certain tooling

Frequently Asked Questions

What is the HTB CAPE exam format?

CAPE is a 10-day practical Active Directory lab engagement. Candidates connect to a complex enterprise AD environment and must enumerate targets, chain attack techniques (Kerberoasting, ADCS ESC attacks, DACL abuse, NTLM relay, trust attacks), capture flags, and operate a C2 framework. The exam concludes with submission of a professional penetration test report documenting all findings, attack chains, and remediation recommendations.

What is the recommended preparation for HTB CAPE?

HTB recommends completing the Active Directory Penetration Tester job-role path on HTB Academy, which covers 15 modules and 253 sections. Key areas to master include: BloodHound attack path analysis, Kerberos protocol internals and all major attack types, ADCS enumeration and ESC1-8 exploitation with Certipy, NTLM relay with ntlmrelayx.py and PetitPotam/PrinterBug coercion, DACL abuse across all common ACE types, Sliver C2 operations, and professional report writing.

How difficult is the HTB CAPE exam?

CAPE is rated 'Expert' difficulty and is considered one of the most technically demanding AD-focused certifications available. The exam tests chaining multiple techniques together across a complex multi-domain environment while dealing with active defenses like Windows Defender. Candidates report that the ability to chain techniques (not just know them in isolation) and write a comprehensive 200+ page report are the hardest aspects. Starting the report on day 1 rather than waiting until day 8 is strongly recommended.

What tools are central to the CAPE exam?

Core tools include: BloodHound/SharpHound (AD attack path enumeration), PowerView (LDAP/DACL enumeration and manipulation), Rubeus (Kerberos attacks: Kerberoasting, AS-REP roasting, ticket forgery, PtT), Impacket suite (ntlmrelayx, GetUserSPNs, GetNPUsers, secretsdump, getST, psexec), Certipy (ADCS enumeration and ESC exploitation), Sliver C2 (C2 framework), Mimikatz (credential extraction), and Responder with mitm6 (NTLM capture and relay setup).

Does the CAPE exam require a report submission?

Yes. CAPE requires submission of a professional penetration test report within the reporting window after the lab period ends. The report must document all discovered attack paths, exploitation evidence (screenshots, command output, flags), and remediation recommendations. Report quality is a graded component. Experienced CAPE candidates recommend using a structured template and documenting findings in real time during the lab, not after.

Is this practice exam like the real CAPE?

No — this is a multiple-choice knowledge practice exam. The real CAPE is a fully practical hands-on assessment in a live AD environment. This practice bank tests the underlying conceptual knowledge (Kerberos mechanics, ADCS vulnerability classes, DACL abuse paths, C2 framework operations) that informs practical exploitation. To pass CAPE, extensive hands-on practice in HTB Academy labs and Pro Labs (like RastaLabs, Offshore, and Cybernetics) is essential.