Topic · 14 of 48 questions freePlanning and Scoping
Question 11Choose 1
As part of an engagement, a penetration tester wants to maintain access to a compromised system after rebooting. Which of the following techniques would be best for the tester to use?
Correct answer:
C. Creating a scheduled task
Explanation:
Maintaining access after rebooting the compromised system requires a persistence mechanism — something that automatically re-establishes a connection or executes malicious code every time the system starts up or a user logs in.
Creating a scheduled task (using schtasks.exe on Windows or cron/at on Linux) is one of the most reliable, widely used, and stealthy persistence techniques in penetration testing and red teaming.
Why It Is the Best Choice:
Scheduled tasks survive reboots and can be configured to run:
At system startup (/SC ONSTART)
At user logon (/SC ONLOGON)
Daily or weekly schedules
As SYSTEM or the current user
It can launch a reverse shell, download-and-execute payload, run a beacon, or re-establish command-and-control automatically.
It uses a native Windows utility (schtasks.exe), making it a living-off-the-land technique that does not require dropping additional tools.
It can be made stealthy by using legitimate-looking names such as “WindowsUpdateCheck” and running hidden.
This is a classic persistence technique covered in PT0-003 objectives.
Why the Other Options Are Incorrect:
A. Establishing a reverse shell
A reverse shell provides temporary remote access. However, once the system reboots or the process is terminated, the connection is lost. It does not automatically restart after reboot unless combined with a persistence mechanism. Not persistent by itself.
B. Executing a process injection attack
Process injection (such as DLL injection or process hollowing) is used for execution and defense evasion. It allows malicious code to run within another process’s memory but does not survive a reboot unless paired with a persistence mechanism. Not persistence on its own.
D. Performing a credential-dumping attack
Credential dumping extracts password hashes, Kerberos tickets, or plaintext credentials for lateral movement or privilege escalation. It provides access opportunities but does not maintain access after reboot. This is credential access, not persistence.
Key Learning Point:
Scheduled tasks are one of the most common and effective persistence techniques. They are frequently contrasted with non-persistent methods like reverse shells and process injection in certification exams.
Conclusion:
To maintain access after rebooting the system, the best technique among the options is creating a scheduled task.
Question 12Choose 1
During an engagement, a penetration tester found some weaknesses that were common across the customer’s entire environment. The weaknesses included the following:
Weaker password settings than the company standard
Systems without the company's endpoint security software installed
Operating systems that were not updated by the patch management system
Which of the following recommendations should the penetration tester provide to address the root issue?
Correct answer:
B. Implement a configuration management system.
Explanation:
The weaknesses identified — weak passwords, missing endpoint protection, and unpatched systems — indicate a lack of centralized enforcement and monitoring of configuration standards. This points to an issue with configuration drift (systems not adhering to baseline security configurations).
A configuration management system helps ensure that all systems are consistently configured according to the organization’s standards. It automates deployment, maintains compliance, and prevents configuration drift.
Key points:
It enforces password policies.
It ensures endpoint protection software is installed and active.
It guarantees that systems receive updates and patches as defined in the baseline.
By implementing configuration management, the organization can address the root cause of inconsistent configurations across its environment.
Why the Other Options Are Incorrect: A. Add all systems to the vulnerability management system:
A vulnerability management system helps identify vulnerabilities, but it doesn’t enforce configuration standards or correct them automatically. It’s reactive rather than proactive.
C. Deploy an endpoint detection and response (EDR) system:
EDR focuses on detecting and responding to endpoint threats, not on ensuring consistent configuration or enforcing password and patching policies.
D. Patch the out-of-date operating systems:
Patching is necessary but only addresses one of the symptoms. It doesn’t solve the broader issue of inconsistent configurations or missing security software.
Reference:
CompTIA PenTest+ (PT0-003) Exam Objective 5.3: "Explain post-report delivery activities."
NIST SP 800-128: Guide for Security-Focused Configuration Management of Information Systems
CIS Controls v8 – Control 4: Secure Configuration of Enterprise Assets and Software
✅ Summary:
The root issue is inconsistent system configurations — the best solution is to implement a configuration management system (Option B).
Question 13Choose 1
A tester is performing an external phishing assessment on the top executives at a company. Two-factor authentication is enabled on the executives’ accounts that are in the scope of work. Which of the following should the tester do to get access to these accounts?
Correct answer:
A. Configure an external domain using a typosquatting technique. Configure Evilginx to bypass two-factor authentication using a phishlet that simulates the mail portal for the company.
Explanation:
This scenario describes a targeted phishing attack (spear phishing) against executives with two-factor authentication (2FA) enabled. Standard credential harvesting, where you simply steal a username and password, would fail at the 2FA prompt. To succeed, the tester needs a technique that can intercept both the credentials and the 2FA token in real-time.
Typosquatting Domain: Using a domain that looks similar to the company's legitimate domain (e.g., c0mpany.com instead of company.com) is a classic social engineering tactic to increase the likelihood that a victim will click the link and not notice the deception in the URL.
Evilginx: Evilginx is a modern phishing tool specifically designed as a man-in-the-middle (MITM) attack framework. It sits between the victim and the legitimate service (like the company's mail portal).
The victim clicks a link to the typosquatted domain, which points to the tester's Evilginx server.
Evilginx proxies all traffic to the real mail portal. The victim sees a perfect replica because it is the real site, just passed through the attacker's proxy.
The victim enters their username and password. Evilginx captures them and forwards them to the real site.
The real site responds with a 2FA challenge. Evilginx proxies this challenge to the victim.
The victim enters the 2FA code (e.g., from an authenticator app). Evilginx captures this token.
At this moment, Evilginx has a valid, authenticated session cookie. It steals this cookie and uses it to impersonate the victim, effectively bypassing the need for the password and 2FA code in the future.
A "phishlet" in Evilginx is a configuration file that tells the tool how to properly mimic a specific website (like Office 365 or Gmail), making it the correct tool for this specific job.
Analysis of Incorrect Options B. Configure Gophish to use an external domain. Clone the email portal web page from the company and get the two-factor authentication code using a brute-force attack method.
Why it's wrong: Gophish is excellent for credential harvesting but cannot inherently bypass 2FA. It presents a cloned (static) login page. Once the victim submits credentials, the attack is over. The tester would have the username and password but no 2FA code. Brute-forcing a time-based or app-generated 2FA code is computationally infeasible due to the short time window and large number of possibilities.
C. Configure an external domain using a typosquatting technique. Configure SET to bypass two-factor authentication using a phishlet that simulates the mail portal for the company.
Why it's wrong:The Social-Engineer Toolkit (SET) is a powerful tool, but its primary function for web attacks is credential harvesting via cloned sites, similar to Gophish. While it can be integrated with other tools, SET itself does not natively use the concept of "phishlets" or perform real-time MITM attacks to steal session cookies. "Phishlet" is a term specific to Evilginx. SET is not the best tool for this specific 2FA-bypass objective.
D. Configure Gophish to use an external domain. Clone the email portal web page from the company and get the two-factor authentication code using a vishing method.
Why it's wrong:This is a disjointed and highly unreliable attack chain. Gophish would harvest the credentials, but then the attacker would need to perform a separate, real-time vishing (phone call) attack to trick the user into reading their 2FA code aloud. This is a different attack vector altogether, requires immediate interaction, and is much more likely to raise suspicion and fail compared to a seamless, automated MITM attack like Evilginx.
Reference:
This question falls under CompTIA PenTest+ (PT0-003) Domain 3.0: Attacks and Exploits, specifically:
3.1 Given a scenario, research attack vectors and perform appropriate attacks.
3.4 Explain social engineering attack techniques.
Question 14Choose 1
A penetration tester is developing the rules of engagement for a potential client. Which of the following would most likely be a function of the rules of engagement?
Correct answer:
A. Testing window
Explanation:
The Rules of Engagement (RoE) is a foundational document in a penetration test that outlines the how, when, and where of the testing activities. It acts as a set of permissions and guidelines for the penetration testers to operate within, ensuring the test is conducted safely, legally, and effectively.
A testing window is a classic and core component of the RoE. It explicitly defines the specific days and times when offensive security testing is permitted (e.g., "Saturday 10:00 PM - Sunday 6:00 AM" or "Weekdays 7:00 PM - 12:00 AM"). This is crucial for several reasons:
Minimizing Business Impact: It schedules testing during off-peak or maintenance hours to reduce the risk of disrupting critical business operations.
Safety and Coordination: It allows the client's IT and security teams to be on high alert, knowing that any system anomalies during that window are likely part of the authorized test and not a real attack. Defining Scope in Time: It clearly limits the tester's authorized activities to a specific timeframe.
Analysis of Incorrect Options B. Terms of service: The Terms of Service (ToS) is a legal agreement between a service provider and its end-users, governing the use of a website or application. It is not a document that defines the parameters of a professional security assessment between a client and a testing firm. The legal agreement between the client and the tester is the Master Service Agreement (MSA) or Statement of Work (SOW), not the ToS.
C. Authorization letter: Also known as a "get-out-of-jail-free card," the authorization letter is a separate, critical document. While the RoE details the rules, the authorization letter is the formal, signed document from a person of authority (e.g., CISO, CEO) that grants explicit permission for the test to occur. The tester must carry this letter at all times during the engagement. It is a product of the agreed-upon RoE but is a distinct artifact.
D. Shared responsibilities: This is a component typically found in the Statement of Work (SOW) or the Master Service Agreement (MSA). The SOW outlines what each party is responsible for (e.g., the tester is responsible for conducting the test and producing the report; the client is responsible for providing system access and point-of-contact information). While related, "shared responsibilities" are more contractual and project-management oriented, whereas the RoE is more tactical and operational.
Reference:
This question falls under CompTIA PenTest+ (PT0-003) Domain 1.0: Planning and Scoping, specifically objective 1.2 Explain the importance of scoping and organizational/customer requirements.
That's the last free question in Planning and Scoping
You've seen the free 30% of this topic (14 of 48 questions). Get complete access for every question, explanation and the timed mock exam.