Which of the following explains why an attacker cannot easily decrypt passwords using a rainbow table attack?
Correct answer:
B. Salting
Explanation:
A rainbow table attack is a precomputation attack where an attacker uses a large table (a rainbow table) of precomputed hash values for every possible password. They compare the stolen hash values against this table to quickly find a matching password.
Salting is the technique that directly defends against this attack. A salt is a unique, random string of characters that is generated and added to each password before it is hashed.
Why it works:
Even if two users have the same password, their unique salts will result in completely different hash values. This means an attacker cannot use a single precomputed rainbow table for all passwords. They would need to create a new rainbow table for every possible salt value, which is computationally infeasible due to the enormous number of potential salts. This effectively renders rainbow table attacks useless.
Why the other options are incorrect:
A. Digital signatures:
Digital signatures are used to verify the authenticity and integrity of a message, software, or digital document. They are not related to password storage or defending against rainbow table attacks.
C. Hashing:
Hashing is the one-way function used to convert a password into a fixed-length string of characters. While hashing alone protects passwords from being easily "decrypted," it is not sufficient to stop rainbow table attacks. Without a salt, identical passwords will produce identical hashes, making them vulnerable to precomputed tables. Salting enhances the security of hashing.
D. Perfect forward secrecy (PFS):
PFS is a feature of specific key-agreement protocols (like in TLS). It ensures that a session key derived from a set of long-term keys cannot be compromised if one of the long-term keys is compromised in the future. It is related to securing communication sessions, not password storage.
Exam Objective Reference:
This question relates to Domain 2.0: Architecture and Design, specifically the concepts of cryptography and its uses. It tests the understanding of techniques like hashing and salting and their specific purposes in securing passwords against common attacks.
Which of the following is the most effective way to protect an application server running software that is no longer supported from network threats?
Correct answer:
A. Air gap
Explanation:
An air gap is a physical security measure that isolates a system or network from unsecured networks (e.g., the internet or other parts of the corporate network). For an application server running unsupported software (which no longer receives security patches and is highly vulnerable), air gapping is the most effective way to protect it from network-based threats. By disconnecting it entirely from any network, attackers cannot reach it remotely, eliminating the risk of exploitation via vulnerabilities.
Why the others are incorrect:
B. Barricade:
This refers to a physical barrier (e.g., a fence or wall) to prevent unauthorized physical access. It does not protect against network threats.
C. Port security:
This is a network switch feature that restricts access based on MAC addresses. It is useful for preventing unauthorized devices from connecting to a network port but does not protect the server itself from attacks if it is still connected to the network.
D. Screen subnet:
Also known as a DMZ (Demilitarized Zone), this is a segmented network area that hosts public-facing services. It provides some isolation but still allows controlled network access. An unsupported server in a DMZ remains vulnerable to attacks that bypass the DMZ's controls.
Reference:
This aligns with SY0-701 Objective 3.4 ("Given a scenario, implement secure network designs"). Air gapping is a extreme but effective measure for protecting critical or vulnerable systems, as recommended in guidelines like NIST SP 800-82 ("Guide to Industrial Control Systems Security") for high-risk environments. It is the ultimate form of network isolation.
An administrator needs to perform server hardening before deployment. Which of the following steps should the administrator take? (Select two).
Correct answer:
A. Disable default accounts.
C. Remove unnecessary services.
Explanation:
Server hardening is the process of securing a server by reducing its attack surface. This involves minimizing potential vulnerabilities that could be exploited. The steps chosen should be actions taken before deployment to achieve this goal.
Why A is Correct:
Default accounts (e.g., "admin," "guest") are well-known and are prime targets for attackers. Disabling or renaming them is a fundamental hardening step to prevent unauthorized access using these common credentials.
Why C is Correct:
Any running service or application represents a potential attack vector. Removing unnecessary services, software, and roles minimizes the number of ways an attacker can potentially compromise the server. This is a core principle of system hardening.
Why the Other Options Are Incorrect:
B. Add the server to the asset inventory:
This is a crucial step for asset management and will be done, but it is not a hardening technique. Hardening focuses on technical security configurations, not administrative tracking.
D. Document default passwords:
This is the opposite of hardening. Default passwords should be changed immediately and not documented in an insecure manner. Documenting them creates a security risk.
E. Send server logs to the SIEM:
This is an important step for monitoring and detection that should be configured after the server is deployed and on the network. It is not part of the pre-deployment hardening process.
F. Join the server to the corporate domain:
This is a configuration step for access and management that would be performed during or after deployment. It applies group policies (which may include security settings) but is not itself a specific hardening action taken on the server's base configuration.
Reference:
This question falls under Domain 2.0: Architecture and Design, specifically covering the concepts of secure systems design and deployment. Server hardening is a critical task within this domain, and the exam expects knowledge of its specific steps, such as disabling default accounts and removing unnecessary components.
Which of the following examples would be best mitigated by input sanitization?
Correct answer:
A. <script>alert ("Warning!") ,-</script>
Explanation:
Input sanitization is a defensive coding practice that involves cleaning, filtering, or rejecting user input to ensure it is safe to process. Its primary purpose is to prevent injection attacks by removing or neutralizing malicious characters and code.
The example <script>alert ("Warning!") ,-</script> is a classic, simple example of a cross-site scripting (XSS) payload. If a web application accepts this input from a user (e.g., in a comment field, search bar, or form) and then displays it to other users without sanitizing it, the malicious script would execute in their browsers. Input sanitization would mitigate this by stripping out or escaping the HTML <script> tags, rendering the input harmless text instead of executable code.
Why the other options are incorrect:
B. nmap - 10.11.1.130:
This is a command for a network scanning tool (Nmap). This would be best mitigated by network-level security controls like firewalls, intrusion prevention systems (IPS), and proper network segmentation—not by sanitizing input on a single application.
C. Email message:
"Click this link to get your free gift card.": This is a classic phishing attempt. This is best mitigated by user security awareness training (to teach users not to click suspicious links) and email security gateways (which filter and block malicious emails)—not by input sanitization, as the attack vector is user deception, not malicious data input into a form.
D. Browser message:
"Your connection is not private.": This is a browser warning indicating an issue with a website's SSL/TLS certificate (e.g., it is expired, self-signed, or doesn't match the domain). This is best resolved by the website administrator fixing the certificate issue. It is not something an application would mitigate through input sanitization, as it's a problem with the transport layer security, not malicious user input.
Reference:
This question tests knowledge of secure coding practices and application security.
This falls under Domain 3.2: Given a scenario, implement security applications for enterprise infrastructure and Domain 1.4: Given a scenario, analyze potential indicators of malicious activity of the CompTIA Security+ SY0-701 exam objectives.
Input sanitization is a primary defense against injection attacks, especially XSS, as outlined in frameworks like the OWASP Top 10, where injection flaws are consistently a critical security risk.
An accounting clerk sent money to an attacker's bank account after receiving fraudulent instructions to use a new account. Which of the following would most likely prevent this activity in the future?
Correct answer:
D. Updating processes for sending wire transfers
Explanation:
The scenario describes a Business Email Compromise (BEC) or phone-based social engineering attack (vishing), where the accounting clerk was tricked into sending money to a fraudulent account. The most effective prevention is to update the wire transfer process to include robust verification steps, such as:
Requiring multi-person approval for transfers.
Verifying changes to account details via a secondary, trusted channel (e.g., in-person confirmation or a pre-established phone number).
Implementing callback procedures to validate requests.
These measures add layers of authentication to prevent unauthorized transactions.
Why the others are incorrect:
A. Standardizing security incident reporting:
This improves response after an incident but does not prevent the initial social engineering attack.
B. Executing regular phishing campaigns:
These train users to recognize email phishing, but the attack occurred via phone (vishing), not email.
C. Implementing insider threat detection measures:
This focuses on malicious insiders, not external attackers using social engineering.
Reference:
This aligns with SY0-701 Objective 1.1 ("Compare and contrast common social engineering techniques"). Mitigating BEC/vishing attacks requires process controls like dual authorization and verification, as recommended by the FBI and financial institutions. Updated wire transfer procedures are a core defense against such fraud.
A systems administrator notices that one of the systems critical for processing customer transactions is running an end-of-life operating system. Which of the following techniques would increase enterprise security?
Correct answer:
B. Placing the system in an isolated VLAN
Explanation:
B) Placing the system in an isolated VLAN is the correct answer.
An end-of-life (EOL) operating system no longer receives security patches, making it highly vulnerable to exploits. While the ideal long-term solution is to upgrade or replace the system (decommissioning might not be feasible if it's critical for transactions), network segmentation via an isolated VLAN is a practical immediate control. This technique:
Limits the system's network exposure by restricting communication to only necessary hosts/services (e.g., placing it in a DMZ or dedicated segment).
Reduces the attack surface by preventing lateral movement from compromised systems to/from this vulnerable host.
Contains potential breaches, minimizing impact on the broader enterprise network.
Why the others are incorrect:
A) Installing HIDS (Host-based Intrusion Detection System):
While HIDS can monitor for suspicious activity on the host, it cannot patch the underlying EOL OS vulnerabilities. It is a detective control but does not prevent exploits targeting unpatched flaws.
C) Decommissioning the system:
Although decommissioning would eliminate the risk, the scenario states the system is critical for processing customer transactions. Decommissioning is likely not an option without causing business disruption, so it is not the best immediate security improvement.
D) Encrypting the system's hard drive:
Encryption protects data at rest (e.g., if the drive is stolen), but it does not mitigate risks related to network-based attacks, remote exploits, or vulnerabilities in the live OS. The system remains exposed to threats while operational.
Reference:
This question tests knowledge of Domain 2.4: Explain the importance of security concepts in an enterprise environment (addressing legacy systems) and Domain 3.3: Given a scenario, implement secure network designs (segmentation). Isolating vulnerable systems is a core compensating control when patching is not possible, as emphasized in risk management strategies.
Client files can only be accessed by employees who need to know the information and have specified roles in the company. Which of the following best describes this security concept?
Correct answer:
B. Confidentiality
Explanation:
Confidentiality is the security principle that ensures information is not disclosed or accessed by unauthorized individuals, devices, or processes. The scenario describes restricting access to client files only to employees with a specific "need to know" and designated roles. This is a classic example of enforcing confidentiality through access controls.
Why the other options are incorrect:
A. Availability:
This principle ensures that information and systems are accessible and operational when needed by authorized users. The scenario is focused on restricting access, not ensuring it is available.
C. Integrity:
This principle guards against improper modification or destruction of information, ensuring its accuracy and trustworthiness. The scenario is about who can see the files, not about protecting them from being altered.
D. Non-repudiation:
This is a concept that prevents an individual from denying having taken a specific action, such as sending a message or approving a transaction. It is typically achieved through digital signatures and auditing. The scenario does not involve proving an action was taken; it is solely about controlling read-access to information.
Reference:
This question tests the fundamental understanding of the CIA triad (Confidentiality, Integrity, Availability), which is the core of information security.
This is a key concept in Domain 2.1: Explain the importance of security concepts in an enterprise environment of the CompTIA Security+ SY0-701 exam objectives.
The "need-to-know" principle and role-based access are primary mechanisms for enforcing confidentiality, as outlined in various security frameworks like those from NIST.
Which of the following best describes the practice of researching laws and regulations related to information security operations within a specific industry?
Correct answer:
C. Due diligence
Explanation:
Due diligence is the proactive, ongoing process of researching, understanding, and complying with laws, regulations, and standards that apply to an organization's operations. In the context of information security, this involves continuously identifying and analyzing legal and regulatory requirements (such as GDPR, HIPAA, PCI DSS, etc.) that are relevant to the organization's specific industry and ensuring that security practices are aligned to meet those obligations.
Why not A? Compliance reporting: This is the act of demonstrating adherence to laws and regulations through reports, audits, or certifications. It is an output or result of performing due diligence, not the research process itself.
Why not B? GDPR: The General Data Protection Regulation (GDPR) is a specific regulation governing data privacy in the European Union. It is an example of a law that might be researched as part of due diligence, but it is not the term that describes the overall practice of researching all applicable laws and regulations.
Why not D? Attestation: This is a formal declaration or verification (often by a third party) that certain controls or processes are in place and effective. Like reporting, it is a method for proving compliance, not the research process behind it.
Reference:
Domain 5.5: "Explain the importance of compliance." The SY0-701 objectives emphasize the need for organizations to understand their legal and regulatory requirements. Due diligence is the foundational practice that ensures an organization is aware of these obligations and can build its security program accordingly.
A company needs to provide administrative access to internal resources while minimizing the traffic allowed through the security boundary. Which of the following methods is most secure?
Correct answer:
A. Implementing a bastion host
Explanation:
A bastion host is a specialized server designed to withstand attacks and provide a secure gateway for administrative access to internal resources from external networks (e.g., the internet). It is heavily hardened (minimized attack surface, strict access controls, extensive logging) and serves as a single point of entry for administrative traffic. By funneling all administrative access through this dedicated host, the company can:
Minimize traffic through the security boundary: Only traffic directed to the bastion host is allowed, reducing the exposure of internal resources.
Enforce strict security policies:
The bastion host can be configured with rigorous authentication (e.g., multi-factor authentication) and monitoring.
Isolate internal systems:
Direct access to internal resources is blocked; administrators must first access the bastion host, which then proxies or relays connections to internal systems under controlled conditions.
This approach is more secure than opening multiple administrative pathways into the network.
Analysis of Incorrect Options:
B. Deploying a perimeter network (DMZ):
A DMZ is a segmented network that hosts publicly accessible services (e.g., web servers, email servers). While it isolates these services from the internal network, it does not specifically secure administrative access to internal resources. Administrative access should not be provided from the DMZ; it should be further controlled via a bastion host or similar secure method.
C. Installing a WAF (Web Application Firewall):
A WAF protects web applications from attacks (e.g., SQL injection, XSS). It is irrelevant to securing general administrative access (e.g., SSH, RDP, database admin tools) unless the administrative interface is web-based. Even then, a WAF alone does not minimize traffic or provide the centralized control of a bastion host.
D. Utilizing single sign-on (SSO):
SSO improves usability and security by allowing users to authenticate once to access multiple applications. However, it does not restrict or minimize traffic through the security boundary; it only simplifies authentication. SSO could be used in conjunction with a bastion host for stronger access control but is not a substitute for it.
Reference:
This question falls under Domain 3.0: Security Architecture, specifically network design and secure access methodologies. Bastion hosts are a best practice for providing secure remote administrative access, aligning with principles of defense-in-depth and network segmentation. They are often part of a zero-trust architecture, where access is tightly controlled and monitored.
A company is expanding its threat surface program and allowing individuals to security test the company’s internet-facing application. The company will compensate researchers based on the vulnerabilities discovered. Which of the following best describes the program the company is setting up?
Correct answer:
B. Bug bounty
Explanation: A bug bounty is a program that rewards security researchers for finding and reporting vulnerabilities in an application or system. Bug bounties are often used by companies to improve their security posture and incentivize ethical hacking. A bug bounty program typically defines the scope, rules, and compensation for the researchers. References = CompTIA Security+ Study Guide with over 500 Practice Test Questions: Exam SY0-701, 9th Edition, Chapter 1, page 10. CompTIA Security+ (SY0-701) Certification Exam Objectives, Domain 1.1, page 2.
Practice Like It's Exam Day
Get exam-ready with a timed SY0 701 CompTIA Security+ mock exam designed to match the official exam's question format, question count, and time limit.