Docsity

CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL (CSSLP), Exams of Software Project Management

Toggle sidebar
bg1
CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL
(CSSLP) CERTIFICATION EXAMINATION ACTUAL EXAM
QUESTIONS AND CORRECT SOLUTIONS WITH DETAILED
RATIONALES (100% VERIFIED ANSWERS) ALREADY GRADED A+
1. Which of the following best defines the principle of "least privilege" in the context of
secure software design?
A) Users are granted access based on their seniority.
B) Every module, process, and user must be able to access only the information and resources
that are necessary for its legitimate purpose.
C) All users have full access to the system until an incident occurs.
D) Administrative privileges are shared among all developers.
Correct Answer: B
Rationale: The principle of least privilege (PoLP) ensures that any entity (user, process, or
system) has the minimum level of access required to perform its function. This reduces the
attack surface and limits potential damage from compromise. Granting access based on
seniority, full access, or shared admin privileges violates this principle.
2. A security architect is reviewing the software requirements for a new web application.
Which of the following is the best example of an "abuse case"?
A) A user logs in and views their profile.
B) An attacker attempts to bypass authentication by manipulating session tokens.
C) A database administrator performs a backup.
D) A user resets their password via a secure link.
Correct Answer: B
Rationale: An abuse case (or misuse case) describes a negative scenario—how an attacker
might intentionally misuse or attack the system. The other options are normal use cases or
administrative tasks.
3. During a threat modeling exercise, the team uses the STRIDE methodology. What does the
"E" in STRIDE stand for?
A) Encryption
B) Elevation of Privilege
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL (CSSLP) and more Exams Software Project Management in PDF only on Docsity!

CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL

(CSSLP) CERTIFICATION EXAMINATION ACTUAL EXAM

QUESTIONS AND CORRECT SOLUTIONS WITH DETAILED

RATIONALES (100% VERIFIED ANSWERS) ALREADY GRADED A+

  1. Which of the following best defines the principle of "least privilege" in the context of secure software design? A) Users are granted access based on their seniority. B) Every module, process, and user must be able to access only the information and resources that are necessary for its legitimate purpose. C) All users have full access to the system until an incident occurs. D) Administrative privileges are shared among all developers. Correct Answer: B Rationale: The principle of least privilege (PoLP) ensures that any entity (user, process, or system) has the minimum level of access required to perform its function. This reduces the attack surface and limits potential damage from compromise. Granting access based on seniority, full access, or shared admin privileges violates this principle.
  2. A security architect is reviewing the software requirements for a new web application. Which of the following is the best example of an "abuse case"? A) A user logs in and views their profile. B) An attacker attempts to bypass authentication by manipulating session tokens. C) A database administrator performs a backup. D) A user resets their password via a secure link. Correct Answer: B Rationale: An abuse case (or misuse case) describes a negative scenario—how an attacker might intentionally misuse or attack the system. The other options are normal use cases or administrative tasks.
  3. During a threat modeling exercise, the team uses the STRIDE methodology. What does the "E" in STRIDE stand for? A) Encryption B) Elevation of Privilege

C) Error handling D) Exposure Correct Answer: B Rationale: STRIDE stands for Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege. It is a widely used threat classification model developed by Microsoft.

  1. A software development team is implementing input validation for a web form. Which approach is considered the most secure? A) Blacklist validation (block known bad characters) B) Allow all input and sanitize later C) Whitelist validation (accept only known good characters/patterns) D) Client-side validation only Correct Answer: C Rationale: Whitelist validation defines a set of acceptable inputs and rejects everything else. This is far more secure than blacklisting, which can be bypassed by encoding or novel attack strings. Client-side validation is easily bypassed and must always be supplemented by server-side validation.
  2. Which of the following is a primary benefit of using a Software Bill of Materials (SBOM)? A) It reduces the cost of software development. B) It provides a detailed inventory of all components, libraries, and dependencies, enabling rapid vulnerability identification and remediation. C) It automatically fixes security vulnerabilities in third-party libraries. D) It replaces the need for code reviews. Correct Answer: B Rationale: An SBOM provides transparency into the software supply chain, allowing organizations to quickly determine whether they are affected by newly disclosed vulnerabilities (e.g., Log4j). It does not fix vulnerabilities automatically, reduce costs directly, or replace code reviews.
  3. A developer is writing code to handle user authentication. To prevent brute-force attacks, which countermeasure should be implemented? A) Use of HTTP instead of HTTPS B) Account lockout or rate limiting after a defined number of failed attempts C) Storing passwords in plaintext for easy retrieval D) Using predictable session identifiers
  1. An organization wants to integrate security into its DevOps pipeline. This approach is commonly known as: A) DevSecOps B) Waterfall C) Agile without security D) Scrum without security Correct Answer: A Rationale: DevSecOps embeds security practices and tools into every stage of the DevOps lifecycle, making security a shared responsibility rather than a separate phase. Waterfall and Agile/Scrum without security do not inherently integrate security.
  2. Which of the following is the most effective way to mitigate SQL injection attacks? A) Using a web application firewall (WAF) only B) Using parameterized queries (prepared statements) with proper input escaping C) Blacklisting certain SQL keywords D) Disabling all database logging Correct Answer: B Rationale: Parameterized queries ensure that user input is treated as data, not executable code, effectively preventing SQL injection. A WAF can provide an additional layer but is not a substitute for secure coding. Blacklisting is ineffective against obfuscated attacks.
  3. A software development team is conducting a risk assessment. Which of the following is an example of a "technical" risk? A) Lack of management support B) A component library with a known critical vulnerability C) Insufficient budget for the project D) Low team morale Correct Answer: B Rationale: Technical risks relate to the technology itself, such as vulnerabilities in libraries, inadequate performance, or architectural flaws. The other options are organizational or project risks.
  4. The "OWASP Top 10" is a document that: A) Lists the top 10 most secure programming languages B) Raises awareness of the most critical web application security risks C) Provides a list of approved security vendors D) Replaces the need for penetration testing

Correct Answer: B Rationale: The OWASP Top 10 is a regularly updated awareness document that describes the most prevalent and impactful security risks to web applications. It is a key resource for developers and security professionals.

  1. A developer needs to store passwords securely in a database. Which of the following is the best practice? A) Encrypt the passwords with a reversible algorithm and store the key on the same server. B) Hash the passwords using a strong, adaptive one-way hashing algorithm (e.g., bcrypt, Argon2) with a unique salt per password. C) Encode the passwords with base64. D) Store passwords in plaintext in a restricted table. Correct Answer: B Rationale: Salting and adaptive hashing protect against rainbow table and brute-force attacks. Encryption is reversible and introduces key management risks. Base64 is encoding, not encryption. Plaintext storage is unacceptable.
  2. In secure software lifecycle management, what is the primary purpose of a "security champion" within a development team? A) To replace the need for a dedicated security team B) To be a liaison and advocate for security practices, helping embed security into the team's daily work C) To write all the security policies for the organization D) To perform only penetration testing Correct Answer: B Rationale: Security champions are developers or team members with an interest in security who act as a bridge, promoting secure coding, facilitating training, and helping triage security findings. They don't replace a dedicated security team but augment the security culture.
  3. A web application sets cookies without the "HttpOnly" attribute. What risk does this introduce? A) The cookies can be transmitted over unencrypted connections. B) The cookies can be accessed by client-side scripts, increasing the risk of theft via cross-site scripting (XSS). C) The cookies will expire immediately. D) The cookies cannot be used for authentication. Correct Answer: B Rationale: The HttpOnly attribute prevents JavaScript from accessing cookies, mitigating the
  1. Which of the following is an example of a "secure software deployment" practice? A) Deploying directly from a developer's workstation to production B) Using a secure, automated CI/CD pipeline with integrity checks and signed artifacts C) Sharing production credentials over email D) Bypassing the staging environment for urgent fixes Correct Answer: B Rationale: Secure deployment involves automated pipelines, integrity verification (code signing), and separation of duties. The other options bypass controls and increase risk.
  2. What is the primary goal of "fuzzing" (fuzz testing)? A) To analyze source code for syntax errors B) To provide unexpected, random, or malformed data as input to a program to discover vulnerabilities and crashes C) To test the user interface for usability D) To measure the performance of the application Correct Answer: B Rationale: Fuzzing is a dynamic testing technique that sends invalid or random data to an application to trigger errors, crashes, or security flaws. It is highly effective at finding buffer overflows, format string bugs, and other input-handling issues.
  3. A software supplier provides a new release, but the customer suspects the binary has been tampered with during delivery. What can the supplier provide to enable verification of the binary's integrity? A) A text file with the version number B) A cryptographic hash (checksum) and a digital signature of the binary C) The source code D) A change log Correct Answer: B Rationale: A digital signature (signed hash) allows the customer to verify that the binary has not been altered and that it originated from the trusted supplier. A text file, source code, or change log does not provide integrity verification.
  4. Which of the following is a principle of "secure by default" for a software product? A) All features are enabled out of the box to maximize functionality. B) The software ships with the most secure settings enabled, and users must explicitly opt in to less secure configurations. C) The default password for administrative accounts is "admin". D) Security features are optional and require additional payment.

Correct Answer: B Rationale: "Secure by default" means the default configuration is the most secure one. Users should not need to take extra steps to secure the system; rather, they should deliberately choose to reduce security if they accept the risk.

  1. In a threat model, an "attack vector" refers to: A) The vulnerability in the code B) The path or means by which an attacker can gain access to a system C) The impact of a successful attack D) The likelihood of an attack Correct Answer: B Rationale: An attack vector is the method or pathway an attacker uses to exploit a vulnerability (e.g., phishing email, exposed API, SQL injection). It is not the vulnerability itself, the impact, or the likelihood.
  2. A developer is writing code that processes user-supplied filenames. To prevent path traversal attacks, the code should: A) Use the filename as provided without modification B) Reject filenames that contain "/" or ".." after canonicalizing the path, and use a whitelist of allowed characters C) Only check the file extension D) Run the application with root privileges Correct Answer: B Rationale: Path traversal (directory traversal) attacks allow attackers to access files outside the intended directory. Canonicalizing the path and validating that it stays within the allowed directory, and rejecting dangerous sequences like "../", mitigates this. Running as root is a bad practice.
  3. Which of the following is an appropriate use of security requirements traceability matrix (SRTM)? A) To track which developer is assigned to which task B) To map security requirements to design elements, test cases, and verification results, ensuring that all security requirements are addressed C) To monitor server uptime D) To manage user stories in Agile Correct Answer: B Rationale: An SRTM ensures that each security requirement is designed, implemented, and
  1. A software architect is designing a system that must comply with GDPR. Which data minimization principle should be applied? A) Collect as much data as possible for future analytics. B) Collect and process only the personal data that is necessary for the specified purpose. C) Retain personal data indefinitely. D) Share data freely with third parties. Correct Answer: B Rationale: GDPR's data minimization principle requires that personal data be "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed." The other options violate GDPR.
  2. In a CI/CD pipeline, where should container image scanning for vulnerabilities ideally be integrated? A) After the image is deployed to production B) At the end of the pipeline, just before release C) As early as possible, during the build stage, and before the image is pushed to a registry D) Only when a vulnerability is reported Correct Answer: C Rationale: Scanning images early in the pipeline (shift left) allows vulnerabilities to be fixed before the image is deployed, reducing cost and risk. Scanning post-deployment is reactive; scanning only when reported is too late.
  3. Which of the following is a characteristic of a "stateful" firewall, compared to a "stateless" firewall? A) A stateful firewall filters packets based solely on static rules. B) A stateful firewall keeps track of the state of active connections and makes decisions based on the context of the traffic. C) A stateful firewall is always hardware-based. D) A stateful firewall operates only at the application layer. Correct Answer: B Rationale: Stateful firewalls monitor the state of network connections and can allow return traffic that belongs to an established session, offering more granular control than stateless filtering. They are not always hardware-based or limited to the application layer.
  4. A developer is implementing session management. To prevent session fixation attacks, what should be done after a user authenticates? A) Keep the same session ID that was used before login. B) Regenerate the session identifier (session ID).

C) Increase the session timeout. D) Store the session ID in a cookie with the "Secure" flag. Correct Answer: B Rationale: Session fixation is prevented by issuing a new session ID upon successful authentication, so an attacker's pre-existing session ID is invalidated. The "Secure" flag helps with HTTPS, but does not prevent fixation.

  1. A security engineer is performing a risk assessment for a new application. The threat has a high likelihood but low impact. According to qualitative risk analysis, this risk would be classified as: A) Critical B) High C) Medium D) Low Correct Answer: C Rationale: Risk level is a combination of likelihood and impact. High likelihood × Low impact = Medium risk in most matrices. This requires monitoring but may not be the highest priority.
  2. Which of the following best describes "continuous integration" (CI) in the context of security? A) Manually merging code once a month B) Frequently integrating code changes into a shared repository, where automated builds and tests (including security tests) are run to detect issues early C) Deploying code directly to production without testing D) Running security tests only once a year Correct Answer: B Rationale: CI involves frequent integration and automated verification. Incorporating security tests (SAST, dependency scanning) into CI helps catch issues early, reducing the cost and risk of fixes.
  3. A developer wants to ensure that a user's personal data displayed in a web page is properly encoded to prevent cross-site scripting (XSS). Which encoding should be used when inserting data into HTML body context? A) URL encoding B) HTML entity encoding (e.g., < for <) C) Base64 encoding D) No encoding needed if the data is from a trusted source

A) A web application firewall B) Software Composition Analysis (SCA) C) A debugger D) A code formatter Correct Answer: B Rationale: SCA tools scan a project's dependencies and identify known vulnerabilities (CVEs) and license issues. They are essential for managing supply chain risks. A WAF, debugger, or formatter does not perform this function.

  1. A software component has a vulnerability that is publicly known but a patch has not yet been released. This is known as a: A) Zero-day vulnerability B) Legacy vulnerability C) Configuration error D) Design flaw Correct Answer: A Rationale: A zero-day vulnerability is one for which no patch exists, and it may be actively exploited. Legacy vulnerabilities have existing patches; configuration errors and design flaws are different categories.
  2. Which of the following is an example of a "security regression test"? A) A test that verifies new features work B) A test that checks that previously fixed security bugs have not been reintroduced by new code changes C) A test that measures application performance D) A test that runs only in production Correct Answer: B Rationale: Regression testing for security ensures that existing security fixes remain effective and are not undone by later modifications. It is critical in continuous integration.
  3. In a secure software design, what is the purpose of "input sanitization"? A) To beautify the user input B) To remove or neutralize potentially dangerous characters and enforce data format rules C) To log all input to a file D) To compress input data Correct Answer: B Rationale: Input sanitization cleanses user-supplied data to prevent injection attacks and other security issues. It is not about aesthetics, logging, or compression.
  1. Which of the following is a key principle of "fail secure"? A) If a system fails, it should grant all access so users are not locked out. B) If a system failure occurs, the system should default to a secure state (e.g., deny access) rather than an insecure one. C) The system should never fail. D) The system should always reboot automatically. Correct Answer: B Rationale: "Fail secure" means that when a failure occurs, the system's state is secure, typically by denying access or shutting down affected services, rather than opening up. This is the opposite of "fail open".
  2. An attacker crafts a URL that includes a malicious script in a parameter. When the URL is opened, the application reflects the script back in the response without proper encoding. This is an example of: A) Cross-site request forgery (CSRF) B) Reflected cross-site scripting (XSS) C) Server-side request forgery (SSRF) D) SQL injection Correct Answer: B Rationale: Reflected XSS occurs when user input is immediately returned by the application in a page and rendered as code. This is distinct from CSRF (which forges requests) and SSRF (which tricks the server into making requests).
  3. A security architect is designing an API. To ensure that an API consumer cannot repudiate a transaction, which security measure should be implemented? A) API keys B) Digital signatures with request logging C) Rate limiting D) CORS headers Correct Answer: B Rationale: Non-repudiation is achieved by ensuring that an action can be traced back to a specific entity, typically via digital signatures and secure logging. API keys authenticate but do not provide non-repudiation alone; rate limiting controls usage; CORS is for cross-origin requests.
  4. A developer uses a regular expression to validate an email address but it is vulnerable to ReDoS (Regular Expression Denial of Service). What is the best mitigation? A) Increase server memory

not a zero-day (no patch exists, but the software is still supported), configuration drift, or license issue (though license may also be a concern).

  1. A security team is evaluating a third-party library. Which of the following would be the best indicator of the library's security health? A) The library has a lot of stars on GitHub B) The library has frequent updates, a clear vulnerability disclosure and patching policy, and a responsive maintainer community C) The library is written in a popular language D) The library is free Correct Answer: B Rationale: Active maintenance, a clear security policy, and timely patching are strong indicators of a library's security. Popularity metrics and price do not equate to security.
  2. In secure software design, what does the term "attack surface" refer to? A) The total number of users of the application B) The sum of all exposed interfaces, services, and entry points that an attacker can use to compromise the system C) The physical size of the data center D) The number of lines of code Correct Answer: B Rationale: The attack surface is the set of points where an attacker can try to enter or extract data. Reducing the attack surface (e.g., by removing unnecessary services, APIs, or ports) is a key security principle.
  3. A software development team is using an Agile methodology. At what point in the sprint should security requirements be considered? A) Only during the final sprint review B) Throughout the sprint, including during backlog grooming, planning, development, and testing C) Only during the design phase of the release D) Security is not considered in Agile Correct Answer: B Rationale: In Agile, security is a continuous consideration. User stories should include security acceptance criteria; developers implement security; testers verify it. It's not a separate phase.
  4. Which of the following is the correct order of the incident response lifecycle phases as defined by NIST SP 800-61? A) Preparation; Detection and Analysis; Containment, Eradication, and Recovery;

Post-Incident Activity B) Detection; Prevention; Recovery; Post-Incident C) Containment; Analysis; Preparation; Recovery D) Preparation; Eradication; Detection; Post-Incident Correct Answer: A Rationale: The NIST IR lifecycle is: Preparation (before incident), Detection and Analysis, Containment/Eradication/Recovery, and Post-Incident Activity. The other sequences are incorrect.

  1. A developer wants to prevent cross-site request forgery (CSRF) in a web application. Which method is effective? A) Using a unique anti-CSRF token in each form submission and validating it on the server B) Relying on the HTTP Referer header C) Using only GET requests for state-changing operations D) Storing session tokens in cookies without any additional checks Correct Answer: A Rationale: Anti-CSRF tokens are a proven defense. The Referer header can be spoofed or absent. GET requests should not change state (they are more susceptible to CSRF). Cookies alone are not enough.
  2. In a threat model, a "data flow diagram" (DFD) is used to: A) Show the financial budget of the project B) Illustrate how data moves through the system, identifying trust boundaries and potential attack points C) Document the user interface design D) List all project stakeholders Correct Answer: B Rationale: DFDs are a core element of threat modeling, showing how data flows between processes, data stores, and external entities, and highlighting where threats may cross trust boundaries.
  3. Which of the following is an example of an "insecure deserialization" vulnerability? A) An application deserializes data from an untrusted source without validation, allowing an attacker to execute arbitrary code or tamper with object attributes. B) An application uses a strong encryption algorithm. C) An application properly validates all user input. D) An application stores passwords in a secure hash.

(capability) that references a specific object and access right. This is a different paradigm from role-based access control (RBAC). It naturally enforces least privilege.

  1. An organization is conducting a penetration test on its software. What is the primary goal of this activity? A) To prove that the software is completely secure B) To identify vulnerabilities by simulating real-world attacks, so they can be remediated C) To disrupt business operations D) To replace the need for secure coding Correct Answer: B Rationale: Penetration testing is a proactive security assessment that attempts to exploit vulnerabilities to demonstrate risk. It is not a guarantee of security, nor a replacement for secure development.
  2. A developer is writing a multithreaded application. To prevent race conditions that could lead to security vulnerabilities (e.g., time-of-check-time-of-use, TOCTOU), what synchronization mechanism should be used? A) No synchronization; rely on the operating system B) Use mutexes, semaphores, or other locking primitives to ensure atomic operations on shared resources C) Use global variables without protection D) Run all threads on a single core Correct Answer: B Rationale: Race conditions occur when multiple threads access shared data without proper synchronization. Using locks (mutexes, etc.) ensures that critical sections are executed atomically, preventing unpredictable outcomes and TOCTOU bugs.
  3. A cloud provider's shared responsibility model for IaaS states that the customer is responsible for: A) Physical security of the data center B) Security of the guest operating system, applications, and data C) Hypervisor security D) Network hardware security Correct Answer: B Rationale: In IaaS, the provider manages physical infrastructure and hypervisor; the customer manages everything from the OS upward, including patching, configurations, and application security.
  1. Which of the following is an example of a "security indicator" that can be monitored in a running application? A) The number of lines of code changed B) A sudden spike in failed login attempts, which could indicate a brute-force attack C) The color scheme of the application D) The developer's coding style Correct Answer: B Rationale: Security monitoring relies on detecting anomalies such as failed login spikes, unusual traffic patterns, or errors. These are indicators of potential attacks. Code metrics are not runtime security indicators.
  2. A software development team is deciding between writing a custom authentication system and using a well-known, established identity provider (IdP) library. From a security perspective, which is generally recommended? A) Write a custom system to keep it secret. B) Use a well-established library (e.g., OAuth2/OpenID Connect via a trusted IdP) because it has been reviewed and tested by many, and custom systems are error-prone. C) Custom and library are equally secure. D) Avoid authentication altogether. Correct Answer: B Rationale: Building secure authentication is extremely difficult. Leveraging proven frameworks and protocols (OAuth 2.0, OpenID Connect) and established libraries reduces the risk of introducing vulnerabilities. Custom solutions often fail.
  3. A security requirement states, "The system shall validate all input against a whitelist of allowed characters and length." Which testing technique would most effectively verify this requirement? A) Performance testing B) Fuzz testing with unexpected characters and oversized inputs C) Unit testing with only expected inputs D) Usability testing Correct Answer: B Rationale: Fuzz testing with malicious inputs is designed to break validation routines. Performance and usability tests do not verify security requirements. Unit testing with only expected inputs would not reveal weaknesses.
  4. A company discovers a critical vulnerability in a third-party library used in production. The library maintainer has not yet released a patch. What is the most appropriate immediate