Free CompTIA SY0-701 Practice Questions 2026 - Page 17
A systems administrator is auditing all company servers to ensure. They meet the minimum security baseline While auditing a Linux server, the systems administrator observes the /etc/shadow file has permissions beyond the baseline recommendation. Which of the following commands should the systems administrator use to resolve this issue?
A. chmod
B. grep
C. dd
D. passwd
Explanation:
The chmod (change mode) command is used to modify the permissions of files and directories in Linux. The /etc/shadow file contains encrypted user passwords and is highly sensitive. The minimum security baseline typically requires strict permissions (e.g., 640 or 600) to prevent unauthorized access. If the permissions are too permissive (e.g., world-readable), chmod is the correct tool to restrict them.
Why not B?
grep: grep is used for searching text within files. It does not change file permissions and is irrelevant to fixing permission issues.
Why not C?
dd: dd is a utility for copying and converting raw data (e.g., disk cloning). It is not used for modifying file permissions.
Why not D?
passwd: The passwd command is used to change user passwords. While it interacts with /etc/shadow, it does not alter the file's permissions.
Reference:
Domain 3.3: "Given a scenario, implement security hardening practices." The SY0-701 objectives emphasize hardening systems by configuring proper file permissions. The chmod command is a fundamental tool for enforcing security baselines on Linux systems.
After a security awareness training session, a user called the IT help desk and reported a suspicious call. The suspicious caller stated that the Chief Financial Officer wanted credit card information in order to close an invoice. Which of the following topics did the user recognize from the training?
A. Insider threat
B. Email phishing
C. Social engineering
D. Executive whaling
Explanation:
Social engineering is the broad term for any technique that uses psychological manipulation to trick people into divulging confidential information or performing actions that compromise security. The scenario describes a phone call where the caller is using deception (pretending to act on behalf of the CFO and creating a false sense of urgency) to manipulate the user into providing credit card information. This is a classic social engineering attack.
Why the other options are incorrect:
A. Insider threat:
An insider threat involves a current or former employee, contractor, or business partner who has inside access and misuses that access to harm the organization. The scenario describes an external caller, not an insider.
B. Email phishing:
This is a specific type of social engineering attack that is carried out via email. The attack in the question was conducted over the phone, making this answer too narrow. The user recognized the broader manipulative tactic, not just the email-based version.
D. Executive whaling (or Whaling):
This is a highly targeted form of phishing aimed at high-level executives like the CFO. However, in this case, the attacker is pretending to represent the CFO to target a regular employee. The employee themself is not the "whale" or primary target; they are the means to get to the information. The user recognized the manipulative attempt, not necessarily that it was a whaling attack aimed at them.
Reference:
This question tests the understanding of social engineering techniques, a critical component of security awareness training.
This falls under Domain 5.2: Explain the importance of personnel security and security awareness training of the CompTIA Security+ SY0-701 exam objectives.
Recognizing and reporting all forms of social engineering (vishing, phishing, smishing, etc.) is a primary goal of effective security awareness programs. The user correctly identified the hallmarks of a social engineering attempt: authority, urgency, and a request for sensitive information.
Which of the following best describe why a process would require a two-person integrity security control?
A. To Increase the chance that the activity will be completed in half of the time the process would take only one user to complete
B. To permit two users from another department to observe the activity that is being performed by an authorized user
C. To reduce the risk that the procedures are performed incorrectly or by an unauthorized user
D. To allow one person to perform the activity while being recorded on the CCTV camera
Explanation:
The principle of two-person integrity (also known as two-person control or the two-man rule) is a security control designed to ensure that no single individual can complete a sensitive or high-risk task alone. This control directly addresses two key risks:
Malicious Activity:
It prevents a single unauthorized or rogue individual from performing a harmful action (e.g., transferring large sums of money, initiating a critical system change, accessing a secure vault).
Human Error:
It provides a built-in verification step, as the second person can review and confirm that the procedure is being performed correctly, thereby reducing the chance of mistakes.
The core purpose is to enforce collusion for sensitive operations, significantly increasing the difficulty of compromising the process, whether through error or malice.
Analysis of Incorrect Options:
A. To increase the chance that the activity will be completed in half of the time:
This is incorrect. Involving a second person typically increases the time required to complete a task due to the necessary coordination and verification steps. Speed or efficiency is not the goal of this control; security and oversight are.
B. To permit two users from another department to observe:
This describes an audit or oversight function, not two-person integrity. The control requires two authorized participants who are both actively involved in the process, not passive observers from another department.
D. To allow one person to perform the activity while being recorded:
This describes a detective control (CCTV monitoring) that records activity for review after the fact. Two-person integrity is a preventive control that actively prevents the task from being completed without simultaneous, collaborative action from two authorized individuals.
Reference:
This concept falls under Domain 1.0: General Security Concepts, specifically related to security controls. Two-person integrity is a classic example of a preventive administrative control designed to enforce separation of duties for critical tasks. It is a fundamental principle in high-security environments like financial institutions, nuclear facilities, and military operations.
A security analyst locates a potentially malicious video file on a server and needs to identify both the creation date and the file's creator. Which of the following actions would most likely give the security analyst the information required?
A. Obtain the file's SHA-256 hash.
B. Use hexdump on the file's contents.
C. Check endpoint logs.
D. Query the file's metadata.
Explanation:
Why D is Correct:
Metadata is data about data. For a file, metadata includes information such as the creation date, modification date, author, and other details embedded within the file itself. This information is stored in the file's headers and properties and can be accessed without needing external logs. Tools like exiftool (for various file types) or built-in system properties can reveal this metadata, directly providing the creation date and potentially the creator.
Why A is Incorrect:
Obtaining the SHA-256 hash of the file is useful for verifying the file's integrity and identifying known malware via hash databases. However, it does not provide any information about the creation date or the creator of the file.
Why B is Incorrect:
Using hexdump (or any hex editor) allows you to view the raw binary content of the file. While this might reveal some embedded metadata if you know where to look, it is a manual and error-prone process. Metadata is more efficiently and accurately extracted using dedicated tools rather than parsing hex dumps.
Why C is Incorrect:
Checking endpoint logs might show when the file was created or who accessed it, but this relies on the availability and integrity of logs. If logging was not enabled or logs were tampered with, this information may not be available. Metadata, however, is embedded in the file itself and is more directly accessible.
Reference:
This question falls under Domain 4.0: Operations and Incident Response, specifically covering digital forensics and investigation techniques. File metadata is a primary source of information for analysts during investigations, as it can provide crucial details about the origin and history of a file.
Which of the following allows for the attribution of messages to individuals?
A. Adaptive identity
B. Non-repudiation
C. Authentication
D. Access logs
Explanation:
The question asks about attributing messages to individuals, meaning providing proof that a specific person sent a message and cannot deny having sent it.
B. Non-repudiation is correct.
Non-repudiation is a cryptographic and legal concept that provides undeniable proof of the origin and integrity of a message. It ensures that the sender of a message cannot later deny having sent it. This is typically achieved through digital signatures, which use asymmetric cryptography to bind a message to a specific private key, and by extension, to its owner.
A. Adaptive identity is incorrect.
This is not a standard security term related to attribution. Identity adaptation might refer to dynamic access controls, but it does not provide proof of origin for messages.
C. Authentication is incorrect.
Authentication is the process of verifying a user's or system's identity (e.g., with a password or biometrics). It confirms who someone is at the time of login but does not, by itself, provide undeniable proof that a specific message came from them after the fact. Non-repudiation builds upon authentication.
D. Access logs are incorrect.
Access logs are records of who accessed what resource and when. They are a form of auditing and can provide evidence for investigation, but they are not a cryptographic mechanism that guarantees the origin and integrity of a specific message. Logs can be altered or disputed; non-repudiation provides much stronger, cryptographically verifiable evidence.
Reference:
CompTIA Security+ SY0-701 Objective 2.8: "Summarize cryptography concepts." Non-repudiation is a key service provided by digital signatures and public key infrastructure (PKI), ensuring that the sender of a message cannot deny their actions.
While investigating a recent security breach an analyst finds that an attacker gained access by SOL infection through a company website. Which of the following should the analyst recommend to the website developers to prevent this from reoccurring?
A. Secure cookies
B. Input sanitization
C. Code signing
D. Blocklist
Explanation:
The key detail in the question is that the breach was caused by an "SOL infection." This is a clear typo or misstatement; the intended term is SQL injection. SQL injection is a code injection technique that exploits vulnerabilities in an application's software by manipulating SQL queries sent to a database.
B. Input sanitization (Correct):
This is the primary and most effective defense against SQL injection attacks. Input sanitization involves cleaning and validating any user-supplied input to ensure it does not contain malicious characters or code that could alter the structure of an SQL query. Techniques include:
Prepared Statements (with Parameterized Queries):
This is the strongest method, where SQL code and data are sent separately, preventing the data from being interpreted as executable code.
Escaping User Input:
Adding a backslash before potentially dangerous characters in the input.
Whitelist Validation:
Only allowing input that matches a strict set of approved patterns
Why the other options are incorrect:
A. Secure cookies (Incorrect):
Secure cookies (with the Secure and HttpOnly flags) protect session tokens from being intercepted over unencrypted connections or accessed via client-side scripts. This helps prevent session hijacking but does nothing to stop SQL injection, which exploits how the server processes input, not how cookies are handled.
C. Code signing (Incorrect):
Code signing is used to verify the integrity and authenticity of software code to ensure it has not been tampered with after being signed by the developer. It is a method for establishing trust in software distribution (e.g., ensuring a downloaded application is legitimate). It does not prevent SQL injection vulnerabilities within the application's code itself.
D. Blocklist (Incorrect):
A blocklist (or blacklist) approach involves creating a list of known bad SQL keywords or patterns to reject. This is an inferior and often ineffective defense because it is easy for attackers to bypass by obfuscating their input (e.g., using variations, encoding, or alternative keywords). Input sanitization using whitelisting and parameterized queries is a much more robust and recommended approach.
Reference:
This question falls under Domain 3.0: Security Architecture, specifically covering secure application development and deployment. Mitig SQL injection is a core application security objective, and input validation/sanitization is the primary mitigation technique as outlined by resources like OWASP (Open Web Application Security Project).
The application development teams have been asked to answer the following questions:
• Does this application receive patches from an external source?
• Does this application contain open-source code?
• is this application accessible by external users?
• Does this application meet the corporate password standard?
Which of the following are these questions port of?
A. Risk control self-assessment
B. Risk management strategy
C. Risk acceptance
D. Risk matrix
Explanation: The questions listed are part of a Risk Control Self-Assessment (RCSA), which is a process where teams evaluate the risks associated with their operations and assess the effectiveness of existing controls. The questions focus on aspects such as patch management, the use of open-source code, external access, and compliance with corporate standards, all of which are critical for identifying and mitigating risks.
Which of the following explains why an attacker cannot easily decrypt passwords using a rainbow table attack?
A. Digital signatures
B. Salting
C. Hashing
D. Perfect forward secrecy
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 practices would be best to prevent an insider from introducing malicious code into a company's development process?
A. Code scanning for vulnerabilities
B. Open-source component usage
C. Quality assurance testing
D. Peer review and approval
Explanation:
Peer review and approval is a process where multiple developers examine and approve code changes before they are integrated into the main codebase. This practice is highly effective at preventing malicious code insertion by an insider because it introduces oversight and accountability. Other team members can detect suspicious or unauthorized changes, ensuring that only vetted and legitimate code is added. This collaborative scrutiny acts as a critical human-layer defense against insider threats.
Why the others are incorrect:
A. Code scanning for vulnerabilities:
This is an automated tool that checks for security flaws (e.g., SQL injection, buffer overflows) but is not designed to detect intentional malicious code inserted by an insider. It focuses on unintentional vulnerabilities, not malicious intent.
B. Open-source component usage:
While using open-source components can introduce risks (e.g., known vulnerabilities), it does not prevent an insider from adding malicious code. In fact, overreliance on open-source might increase attack surfaces if not properly vetted.
C. Quality assurance testing:
QA testing focuses on functionality, performance, and user experience, not necessarily on identifying malicious code. It is unlikely to catch intentionally hidden malicious logic unless specifically designed for security testing.
Reference:
This aligns with SY0-701 Objective 3.2 ("Given a scenario, implement host or application security solutions") and best practices in secure software development. Peer review is a cornerstone of DevSecOps, as emphasized in frameworks like NIST SSDF (Secure Software Development Framework), which recommends code review to mitigate risks, including insider threats.
The CIRT is reviewing an incident that involved a human resources recruiter exfiltration sensitive company data. The CIRT found that the recruiter was able to use HTTP over port 53 to upload documents to a web server. Which of the following security infrastructure devices could have identified and blocked this activity?
A. WAF utilizing SSL decryption
B. NGFW utilizing application inspection
C. UTM utilizing a threat feed
D. SD-WAN utilizing IPSec
Explanation: An NGFW (Next-Generation Firewall) utilizing application inspection could have identified and blocked the unusual use of HTTP over port 53. Application inspection allows NGFWs to analyze traffic at the application layer, identifying and blocking suspicious or non-standard protocol usage, such as HTTP traffic on DNS port 53. NGFW utilizing application inspection: Inspects traffic at the application layer and can block non-standard protocol usage, such as HTTP over port 53. WAF utilizing SSL decryption: Focuses on protecting web applications and decrypting SSL traffic but may not detect the use of HTTP over port 53. UTM utilizing a threat feed: Provides comprehensive security but may not focus specifically on application layer inspection. SD-WAN utilizing IPSec: Enhances secure WAN connections but is not primarily designed to inspect and block specific application traffic. Reference: CompTIA Security+ SY0-701 Exam Objectives, Domain 4.5 - Modify enterprise capabilities to enhance security (Next-generation firewall).
| Page 17 out of 91 Pages |