20+ practice questions focused on Linux Privilege Escalation — one of the most tested topics on the OffSec PEN-200 / OSCP Concepts exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Linux Privilege Escalation PracticeYou are performing enumeration on a Linux host. Which TWO of the following methods are effective for discovering potentially exploitable Cron jobs that run with elevated privileges?
Explanation: Identifying insecure Cron jobs involves inspecting both system-wide and user-specific task schedulers. By analyzing /etc/crontab and the contents of /etc/cron.d/, an attacker can find scripts that execute with root privileges but are writable by low-privileged users. This is a critical enumeration step, as misconfigured Cron jobs are frequent vectors for achieving persistence and privilege escalation when permissions are not strictly enforced on the underlying script files.
You find a binary that uses the 'system()' function to call an absolute path, such as '/usr/bin/whois'. The binary is SUID root. How could you potentially exploit this if the system is not vulnerable to PATH manipulation?
Explanation: If PATH manipulation is blocked, you can use Shared Object Injection. By using 'strace' or 'ldd', you can determine which shared libraries the binary loads. If you can modify the environment variable LD_PRELOAD to point to a malicious library, you can force the binary to load your code before the original library functions, allowing for arbitrary execution with the SUID binary's permissions.
During your post-exploitation phase, you want to identify writable configuration files or directories that could lead to privilege escalation. Which THREE of the following locations should you prioritize checking?
Explanation: Identifying misconfigured permissions on system configuration files is critical. Files like /etc/passwd or /etc/shadow, or directories that control system services, are prime targets. If a low-privileged user can modify these files, they can add new users with UID 0 or change existing passwords. Proper enumeration of permissions ensures that you find these weak points, which are often overlooked by system administrators during standard configuration hardening processes.
You discover a world-writable file that is being read by a root-owned service. What is the most reliable way to escalate privileges in this scenario?
Explanation: If a root-owned service reads a world-writable configuration file, you can inject malicious directives into that file. When the service restarts or reloads its configuration, it will execute or apply the injected commands with root privileges. This is a high-impact vulnerability because it leverages the legitimate service behavior to gain system control, demonstrating the necessity of restricting write access to configuration files that are consumed by privileged processes.
You have gained a low-privileged shell on a Linux system and find a custom binary in /opt/scripts owned by root with the SUID bit set. The binary executes a system command using a relative path. Which method is most effective for gaining root privileges?
Explanation: Exploiting relative path vulnerabilities in SUID binaries relies on path hijacking. By modifying the PATH environment variable to point to a malicious directory and placing a fake executable there, the SUID binary executes the attacker's code with root permissions. This is a classic privilege escalation technique that demonstrates how misconfigured execution environments lead to total system compromise, a critical concept tested frequently during the OSCP exam.
+15 more Linux Privilege Escalation questions available
Practice all Linux Privilege Escalation questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Linux Privilege Escalation. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Linux Privilege Escalation questions on the PEN-200 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Linux Privilege Escalation is tested as part of the OffSec PEN-200 / OSCP Concepts blueprint. Practicing with targeted Linux Privilege Escalation questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free PEN-200 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Linux Privilege Escalation is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Linux Privilege Escalation practice session with instant scoring and detailed explanations.
Start Linux Privilege Escalation Practice →