During an assessment, a penetration tester gathered OSINT for one of the IT systems administrators from the target company and managed to obtain valuable information, including corporate email addresses. Which of the following techniques should the penetration tester perform NEXT?
Correct Answer: D
Spear phishing is a type of targeted attack where the attacker sends emails that appear to come from a legitimate source, often a company or someone familiar to the target, with the goal of tricking the target into clicking on a malicious link or providing sensitive information. In this case, the penetration tester has already gathered OSINT on the IT system administrator, so they can use this information to craft a highly targeted spear phishing attack to try and gain access to the target system.
Question 102
In Python socket programming, SOCK_DGRAM type is:
Correct Answer: C
In Python socket programming, SOCK_DGRAM type is connectionless. This means that the socket does not establish a reliable connection between the sender and the receiver, and does not guarantee that the packets will arrive in order or without errors. SOCK_DGRAM type is used for UDP (User Datagram Protocol) sockets, which are faster and simpler than TCP (Transmission Control Protocol) sockets3.
Question 103
A penetration tester is working on an engagement in which a main objective is to collect confidential information that could be used to exfiltrate data and perform a ransomware attack. During the engagement, the tester is able to obtain an internal foothold on the target network. Which of the following is the next task the tester should complete to accomplish the objective?
Correct Answer: B
Given that the penetration tester has already obtained an internal foothold on the target network, the next logical step to achieve the objective of collecting confidential information and potentially exfiltrating data or performing a ransomware attack is to perform credential dumping. Here's why: Credential Dumping: Purpose: Credential dumping involves extracting password hashes and plaintext passwords from compromised systems. These credentials can be used to gain further access to sensitive data and critical systems within the network. Tools: Common tools used for credential dumping include Mimikatz, Windows Credential Editor, and ProcDump. Impact: With these credentials, the tester can move laterally across the network, escalate privileges, and access confidential information. Comparison with Other Options: Initiate a Social Engineering Campaign (A): Social engineering is typically an initial access technique rather than a follow-up action after gaining internal access. Compromise an Endpoint (C): The tester already has a foothold, so compromising another endpoint is less direct than credential dumping for accessing sensitive information. Share Enumeration (D): While share enumeration can provide useful information, it is less impactful than credential dumping in terms of gaining further access and achieving the main objective. Performing credential dumping is the most effective next step to escalate privileges and access sensitive data, making it the best choice.
Question 104
A penetration tester was able to compromise a server and escalate privileges. Which of the following should the tester perform AFTER concluding the activities on the specified target? (Choose two.)
Correct Answer: A,D
Question 105
During an assessment, a penetration tester wants to extend the vulnerability search to include the use of dynamic testing. Which of the following tools should the tester use?
Correct Answer: B
Dynamic Application Security Testing (DAST): Definition: DAST involves testing the application in its running state to identify vulnerabilities that could be exploited by an attacker. Purpose: Simulates attacks on a live application, examining how it behaves and identifying security weaknesses. ZAP (Zed Attack Proxy): Description: An open-source DAST tool developed by OWASP. Features: Capable of scanning web applications for vulnerabilities, including SQL injection, XSS, CSRF, and other common web application vulnerabilities. Usage: Ideal for dynamic testing as it interacts with the live application and identifies vulnerabilities that may not be visible in static code analysis. Other Tools: Mimikatz: Used for post-exploitation activities, specifically credential dumping on Windows systems. OllyDbg: A debugger used for reverse engineering and static analysis of binary files, not suitable for dynamic testing. SonarQube: A static code analysis tool used for SAST (Static Application Security Testing), not for dynamic testing. Pentest Reference: Web Application Security Testing: Utilizing DAST tools like ZAP to dynamically test and find vulnerabilities in running web applications. OWASP Tools: Leveraging open-source tools recommended by OWASP for comprehensive security testing. By using ZAP, the penetration tester can perform dynamic testing to identify runtime vulnerabilities in web applications, extending the scope of the vulnerability search.