CPENT Active Directory Attacks Practice Question
An operator has compromised an account with GenericAll permissions over a computer object in Active Directory. How can this permission be leveraged to achieve code execution on the target host?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure msDS-AllowedToActOnBehalfOfOtherIdentity to point to a controlled account, enabling Resource-Based Constrained Delegation.
GenericAll permissions on a computer object allow an attacker to modify the servicePrincipalName attribute or reset the computer password, but more commonly allows writing explicit delegation or adding user rights. Alternatively, adding a user to local groups via WinRM or modifying msDS-AllowedToActOnBehalfOfOtherIdentity enables constrained delegation abuse.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Modify the user's PrimaryGroupID to map to Domain Admins directly.
Why it's wrong here
PrimaryGroupID changes apply to user objects, and computer objects cannot be made Domain Admins this way.
- ✗
Execute a DCSync attack against the computer object's registry hive.
Why it's wrong here
DCSync requires DS-Replication-Get-Changes privileges on the domain object, not GenericAll on a single computer.
- ✗
Directly modify the local SAM database of the target computer over RPC without credentials.
Why it's wrong here
SAM access requires administrative privileges on the remote host, not merely AD object permissions.
- ✓
Configure msDS-AllowedToActOnBehalfOfOtherIdentity to point to a controlled account, enabling Resource-Based Constrained Delegation.
Why this is correct
GenericAll grants full control, allowing modification of msDS-AllowedToActOnBehalfOfOtherIdentity to execute RBCD attacks.
About these practice questions
Courseiva writes every CPENT question from scratch — 274 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official EC-Council exam blueprint
This CPENT practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CPENT exam.