Docsity

7Safe Certified Security Testing Associate CSTA Exam, Exams of Cybersecurity

Toggle sidebar
bg1
7Safe Certified Security Testing Associate CSTA Exam
**Question 1. Which of the following best describes the primary difference between white‑hat
and black‑hat hacking?**
A) White‑hat hackers work for profit, black‑hat hackers work for ideology
B) White‑hat hackers have written permission to test, black‑hat hackers do not
C) White‑hat hackers only use passive techniques, black‑hat hackers use active techniques
D) White‑hat hackers focus on physical security, black‑hat hackers focus on network security
Answer: B
Explanation: White‑hat (ethical) hackers operate under a signed Rules of Engagement, whereas
black‑hat hackers act without authorization.
**Question 2. In the context of a Rules of Engagement (RoE), which statement is true?**
A) The RoE must list every tool the tester may use.
B) The RoE defines the scope, timeline, and legal liabilities of the test.
C) The RoE is optional if the client signs a NDA.
D) The RoE only applies to internal network testing.
Answer: B
Explanation: A comprehensive RoE outlines scope, duration, deliverables, and liability, ensuring
both parties understand the limits of the engagement.
**Question 3. Which UK legislation primarily criminalizes unauthorized access to computer
systems?**
A) Data Protection Act 2018
B) Computer Misuse Act 1990
C) General Data Protection Regulation (GDPR)
D) Investigatory Powers Act 2016
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b

Partial preview of the text

Download 7Safe Certified Security Testing Associate CSTA Exam and more Exams Cybersecurity in PDF only on Docsity!

Question 1. Which of the following best describes the primary difference between white‑hat and black‑hat hacking? A) White‑hat hackers work for profit, black‑hat hackers work for ideology B) White‑hat hackers have written permission to test, black‑hat hackers do not C) White‑hat hackers only use passive techniques, black‑hat hackers use active techniques D) White‑hat hackers focus on physical security, black‑hat hackers focus on network security Answer: B Explanation: White‑hat (ethical) hackers operate under a signed Rules of Engagement, whereas black‑hat hackers act without authorization. Question 2. In the context of a Rules of Engagement (RoE), which statement is true? A) The RoE must list every tool the tester may use. B) The RoE defines the scope, timeline, and legal liabilities of the test. C) The RoE is optional if the client signs a NDA. D) The RoE only applies to internal network testing. Answer: B Explanation: A comprehensive RoE outlines scope, duration, deliverables, and liability, ensuring both parties understand the limits of the engagement. Question 3. Which UK legislation primarily criminalizes unauthorized access to computer systems? A) Data Protection Act 2018 B) Computer Misuse Act 1990 C) General Data Protection Regulation (GDPR) D) Investigatory Powers Act 2016 Answer: B

Explanation: The Computer Misuse Act makes it illegal to access computer material without permission, covering hacking activities. Question 4. Which of the following is NOT a core principle of the OSSTMM methodology? A) Operational Security B) Physical Security C) Data Integrity D) Interoperability Testing Answer: D Explanation: OSSTMM focuses on Operational, Physical, Data, and Personnel security; interoperability testing is not a core principle. Question 5. When performing passive reconnaissance, which technique is considered passive? A) Sending SYN packets to discover open ports B) Querying WHOIS records for domain registration details C) Running Nmap with the - sS flag D) Using Metasploit to exploit a discovered service Answer: B Explanation: WHOIS queries do not interact with the target system; they retrieve publicly available registration data. Question 6. Which DNS record type is most useful for discovering subdomains during enumeration? A) MX B) TXT C) CNAME

C) The service name and version running on a port D) The physical location of the server Answer: C Explanation: By connecting to a service and reading its initial response, testers can identify the service type and version. Question 10. Which tool is commonly used for network mapping and visualizing topology? A) Wireshark B) Nmap with the – oX option and Zenmap C) John the Ripper D) Hydra Answer: B Explanation: Zenmap provides a graphical view of Nmap scan results, allowing easy visualization of network topology. Question 11. Which vulnerability scanning tool is open source and often compared to Nessus? A) OpenVAS B) Burp Suite C) Metasploit D) Aircrack-ng Answer: A Explanation: OpenVAS (now part of Greenbone Security Manager) is a free alternative to Nessus for automated vulnerability detection. Question 12. When interpreting a scanner’s output, a “false positive” is defined as: A) A vulnerability that exists but was not detected.

B) A reported vulnerability that does not actually exist. C) A vulnerability that is present but has no exploit. D) A low‑severity finding that can be ignored. Answer: B Explanation: False positives are findings reported by the scanner that are not real vulnerabilities, requiring manual verification. Question 13. Which Windows misconfiguration is often flagged as a high‑risk vulnerability? A) Disabled Windows Firewall B) Enabled Remote Desktop Protocol (RDP) with weak password policy C) Default PowerShell execution policy set to Restricted D) Use of NTFS file system Answer: B Explanation: RDP exposed to the internet with weak credentials is a common entry point for attackers. Question 14. In Linux, which file commonly contains insecure permissions that could lead to privilege escalation? A) /etc/passwd B) /etc/shadow C) /etc/sudoers D) /var/log/syslog Answer: C Explanation: Misconfigured sudoers entries can allow non‑privileged users to execute commands as root.

Question 18. The Linux “Dirty COW” vulnerability (CVE‑ 2016 ‑5195) allows an attacker to: A) Execute arbitrary code as root via a buffer overflow. B) Gain root privileges by exploiting a race condition in the copy‑on‑write mechanism. C) Bypass sudo authentication using a malformed sudoers file. D) Escalate privileges through a set‑uid binary. Answer: B Explanation: Dirty COW is a race condition that lets unprivileged users write to read‑only memory, leading to root escalation. Question 19. Which post‑exploitation technique is used to maintain access on a compromised Windows machine? A) Installing a rootkit that hides files from Explorer. B) Creating a new user account with administrative privileges. C) Deleting event logs to hide activity. D) Dumping password hashes from SAM. Answer: B Explanation: Adding a privileged user provides a persistent backdoor for future logins. Question 20. A “rootkit” is primarily designed to: A) Encrypt files for ransomware. B) Hide the presence of malicious code from the operating system and security tools. C) Perform denial‑of‑service attacks. D) Exploit web application vulnerabilities. Answer: B Explanation: Rootkits modify OS components to conceal malicious processes, files, and network connections.

Question 21. Which log file on a Windows system records security‑related events such as logon attempts? A) Application.log B) System.log C) Security.evtx D) Setup.log Answer: C Explanation: The Security event log (Security.evtx) contains audit events like successful and failed logons. Question 22. Which of the following commands can be used to clear Windows Event Logs? A) net stop eventlog B) wevtutil cl Security C) del /s *.log D) reg delete HKLM\System\CurrentControlSet\Services\EventLog Answer: B Explanation: wevtutil cl clears the specified event log; “Security” clears the security log. Question 23. In the context of GDPR, which principle requires that personal data be processed only for a specific, explicit purpose? A) Data minimization B) Purpose limitation C) Accuracy D) Storage limitation Answer: B

D) The engagement is scheduled on a weekend. Answer: A Explanation: Without a signed, detailed Rules of Engagement, the tester lacks legal protection and may be liable for unauthorized activity. Question 27. Which OSI layer is primarily targeted when performing a TCP SYN scan? A) Application B) Transport C) Network D) Data Link Answer: B Explanation: SYN scans manipulate TCP flags, which are part of the Transport layer (Layer 4). Question 28. Which of the following best describes a “pivot” in post‑exploitation? A) Escalating privileges on the compromised host. B) Using the compromised host as a launch point to attack other internal systems. C) Installing a backdoor for future access. D) Clearing logs to hide activity. Answer: B Explanation: Pivoting leverages a foothold inside a network to reach otherwise inaccessible internal targets. Question 29. Which of the following is a common method to bypass antivirus detection for a payload? A) Use of a known exploit module in Metasploit. B) Encoding the payload with Base64. C) Encrypting the payload and using a loader script.

D) Changing the file extension to .txt. Answer: C Explanation: Encryption plus a custom loader can evade signature‑based detection by antivirus solutions. Question 30. Which Windows service, if misconfigured to allow “Anonymous Logon,” can be abused for lateral movement? A) Server (LanmanServer) B) Remote Desktop Services C) Windows Time (W32Time) D) DHCP Client Answer: A Explanation: The Server service shares resources; allowing anonymous access can let attackers enumerate shares and move laterally. Question 31. Which of the following is the most reliable way to verify that a vulnerability reported by a scanner is not a false positive? A) Rerun the scan with a different tool. B) Manually reproduce the exploit or check the affected service version. C) Accept the finding and mark it as high severity. D) Ignore it if the CVSS score is low. Answer: B Explanation: Manual verification (e.g., checking version numbers or attempting exploitation) confirms whether the issue truly exists. Question 32. In a web application, which HTTP header can be used to mitigate click‑jacking attacks? A) X‑Content‑Type‑Options

Question 35. Which of the following is the best practice for handling sensitive data discovered during a penetration test? A) Store it on a personal USB drive for later analysis. B) Immediately delete it without documentation. C) Encrypt it, limit access to the test team, and document its handling per the RoE. D) Upload it to a public cloud for backup. Answer: C Explanation: Protecting client data with encryption and access controls while maintaining documentation aligns with ethical standards. Question 36. Which of the following is a primary goal of the “defense in depth” strategy? A) Rely on a single firewall to block all attacks. B) Implement multiple layers of security controls to mitigate risk. C) Use only encryption to protect data. D) Disable all network services to reduce attack surface. Answer: B Explanation: Defense in depth uses overlapping security measures (network, host, application, data) to provide redundancy. Question 37. Which of the following is a common way to discover hidden directories on a web server? A) Using a SYN scan on port 80. B) Performing a directory brute‑force with tools like DirBuster. C) Sending ICMP echo requests to the server. D) Analyzing DNS zone transfers. Answer: B

Explanation: Directory brute‑forcing enumerates common paths (e.g., /admin, /backup) to locate hidden resources. Question 38. Which of the following protocols is most commonly used for secure remote command execution on Unix systems? A) Telnet B) FTP C) SSH D) RDP Answer: C Explanation: SSH provides encrypted remote shell access, whereas Telnet transmits credentials in clear text. Question 39. Which Windows registry key stores the list of services configured to start automatically? A) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services B) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run C) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce D) HKEY_USERS.DEFAULT\Control Panel\Desktop Answer: A Explanation: The Services key contains subkeys for each service, including startup type configuration. Question 40. Which of the following is a key difference between a vulnerability assessment and a penetration test? A) Vulnerability assessment always includes exploitation; penetration testing does not. B) Penetration testing attempts to exploit identified weaknesses, while vulnerability assessment focuses on identification and ranking.

C) The login page uses HTTPS. D) The website loads slowly under heavy traffic. Answer: B Explanation: An unescaped single quote often triggers a syntax error from the database, revealing an injection point. Question 44. Which of the following tools is primarily used for wireless network packet capture and analysis? A) Aircrack-ng B) sqlmap C) Nessus D) Metasploit Answer: A Explanation: Aircrack-ng suite includes tools like airodump-ng for capturing Wi‑Fi traffic. Question 45. Which of the following is a defensive measure against ARP spoofing? A) Enabling DHCP snooping on switches. B) Using static ARP entries on critical hosts. C) Disabling IPv6. D) Enabling port forwarding on the router. Answer: B Explanation: Static ARP entries prevent the host from accepting unsolicited ARP replies. Question 46. Which of the following is the most accurate description of a “zero‑day” vulnerability? A) A vulnerability that has been publicly disclosed for at least one day. B) A vulnerability that is known to the vendor but not yet patched.

C) A vulnerability that is exploited before the vendor releases a fix. D) A vulnerability that only affects systems older than zero years. Answer: C Explanation: Zero‑day exploits are used before a patch exists, giving defenders no prior protection. Question 47. Which of the following is an effective method for detecting a rootkit on a Linux system? A) Checking the /etc/passwd file for unusual entries. B) Using the chkrootkit or rkhunter utilities. C) Running netstat - an to view open ports. D) Looking at the system’s uptime. Answer: B Explanation: chkrootkit and rkhunter compare system binaries against known signatures to spot hidden modifications. Question 48. Which of the following best describes “defacement” in the context of web security? A) Overloading a server with traffic to cause downtime. B) Modifying a website’s content to display unauthorized messages. C) Injecting malicious code that steals user credentials. D) Encrypting files on the server and demanding ransom. Answer: B Explanation: Defacement replaces legitimate site content with attacker‑controlled messages. Question 49. Which of the following is a common sign that a Windows host has been compromised by a malicious PowerShell script?

Question 52. Which of the following is a primary advantage of using “credentialed scanning” during vulnerability assessment? A) It runs faster because it does not need to authenticate. B) It can discover deeper configuration issues that unauthenticated scans miss. C) It bypasses all firewalls automatically. D) It eliminates the need for a RoE. Answer: B Explanation: Credentialed scans log in to the target, allowing inspection of patches, configurations, and file permissions. Question 53. Which of the following best describes a “man‑in‑the‑middle” (MITM) attack on HTTPS traffic? A) The attacker replaces the server’s SSL certificate with a self‑signed one and the client trusts it. B) The attacker captures traffic but cannot decrypt it. C) The attacker downgrades the connection to HTTP. D) The attacker blocks all traffic between client and server. Answer: A Explanation: By presenting a fraudulent certificate that the client accepts (often via compromised CA), the attacker can decrypt and re‑encrypt traffic. Question 54. Which of the following Linux kernel parameters can be modified to mitigate SYN flood attacks? A) net.ipv4.tcp_syncookies B) net.ipv4.ip_forward C) net.ipv6.conf.all.disable_ipv D) kernel.sysrq

Answer: A Explanation: Enabling tcp_syncookies allows the kernel to respond to SYN requests without allocating resources, mitigating SYN floods. Question 55. Which of the following is the most reliable way to verify that a backdoor you installed works after a system reboot? A) Check the system’s event logs for a “backdoor installed” entry. B) Attempt to connect to the backdoor’s listening port from a remote machine. C) Run a network scan to see if the port is open. D) Look for the backdoor file in the temporary directory. Answer: B Explanation: Directly connecting to the service confirms it is active and reachable post‑reboot. Question 56. Which of the following best describes the purpose of a “kill chain” in penetration testing? A) A list of tools used during testing. B) A model that outlines the stages an attacker follows to achieve objectives. C) A sequence of firewall rules to block attacks. D) A method for encrypting data during exfiltration. Answer: B Explanation: The kill chain breaks down the attack process (recon, weaponization, delivery, etc.) to identify defensive gaps. Question 57. Which of the following HTTP response codes indicates that the server understood the request but refuses to fulfill it, often due to lack of permission? A) 200 OK B) 301 Moved Permanently