Docsity

CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL (CSSLP), Exams of Nursing

Toggle sidebar
bg1
CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL
(CSSLP)
ACTUAL EXAM QUESTIONS AND CORRECT SOLUTIONS WITH
DETAILED RATIONALES (100% VERIFIED ANSWERS) ALREADY
GRADED A+
1. During which phase of the software development lifecycle should security requirements
first be identified and documented?
A) Implementation
B) Testing
C) Requirements gathering and planning
D) Deployment
Correct Answer: C
Rationale: Security requirements must be defined early in the SDLC—during requirements
gathering and planning—to ensure that security controls are designed and implemented from
the start. Adding security after implementation is more costly and less effective.
2. Which security principle ensures that data has not been altered in an unauthorized manner
during storage or transmission?
A) Confidentiality
B) Integrity
C) Availability
D) Authentication
Correct Answer: B
Rationale: Integrity ensures that information is accurate, complete, and unaltered except by
authorized parties. Confidentiality prevents unauthorized disclosure; availability ensures
access when needed; authentication verifies identity.
3. In threat modeling, the DREAD methodology is used to:
A) Identify trust boundaries
B) Prioritize threats based on risk scores
C) Map data flows
D) Develop security requirements
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

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

CERTIFIED SECURE SOFTWARE LIFECYCLE PROFESSIONAL

(CSSLP)

ACTUAL EXAM QUESTIONS AND CORRECT SOLUTIONS WITH

DETAILED RATIONALES (100% VERIFIED ANSWERS) ALREADY

GRADED A+

  1. During which phase of the software development lifecycle should security requirements first be identified and documented? A) Implementation B) Testing C) Requirements gathering and planning D) Deployment Correct Answer: C Rationale: Security requirements must be defined early in the SDLC—during requirements gathering and planning—to ensure that security controls are designed and implemented from the start. Adding security after implementation is more costly and less effective.
  2. Which security principle ensures that data has not been altered in an unauthorized manner during storage or transmission? A) Confidentiality B) Integrity C) Availability D) Authentication Correct Answer: B Rationale: Integrity ensures that information is accurate, complete, and unaltered except by authorized parties. Confidentiality prevents unauthorized disclosure; availability ensures access when needed; authentication verifies identity.
  3. In threat modeling, the DREAD methodology is used to: A) Identify trust boundaries B) Prioritize threats based on risk scores C) Map data flows D) Develop security requirements

Correct Answer: B Rationale: DREAD (Damage potential, Reproducibility, Exploitability, Affected users, Discoverability) is a threat-rating model that assigns numeric scores to threats so they can be prioritized for mitigation. It does not directly identify trust boundaries or map data flows.

  1. Which vulnerability arises when untrusted data is concatenated directly into a SQL query and executed by the database? A) Cross-site scripting B) SQL injection C) Buffer overflow D) Session fixation Correct Answer: B Rationale: SQL injection occurs when an application passes user-supplied data directly to a SQL interpreter without proper parameterization, allowing an attacker to manipulate the query. Parameterized queries or stored procedures prevent this.
  2. What is the most effective defense against cross-site scripting (XSS)? A) Using HTTPS everywhere B) Contextual output encoding based on where data is placed in the page C) Using cookies with the Secure attribute D) Implementing a web application firewall Correct Answer: B Rationale: Contextual output encoding (HTML, JavaScript, URL, CSS) prevents the browser from interpreting untrusted data as code. A WAF can help but is not a substitute for proper output encoding. HTTPS and Secure cookies do not directly prevent XSS.
  3. In secure coding, what is “canonicalization”? A) Encrypting a file path B) Resolving a file path to its simplest, unambiguous form before validating access C) Compiling source code D) Signing a binary Correct Answer: B Rationale: Canonicalization resolves paths, symbolic links, and relative references (e.g., “../”) to their canonical form so that access controls can be applied correctly and path traversal attacks can be detected. Failing to canonicalize can allow unauthorized file access.
  4. Which type of security testing analyzes source code or bytecode without executing the program? A) Dynamic application security testing (DAST)

SQL injection, command injection) by monitoring execution context. It operates from inside the application, complementing external defenses like WAFs.

  1. Which NIST publication provides a Secure Software Development Framework (SSDF)? A) NIST SP 800- 53 B) NIST SP 800- 218 C) NIST SP 800- 61 D) NIST SP 800- 30 Correct Answer: B Rationale: NIST SP 800-218, the Secure Software Development Framework, outlines a set of high-level practices for integrating security into software development. SP 800-53 is for security controls; SP 800-61 is incident response; SP 800-30 is risk assessment.
  2. According to the OWASP Top 10, which risk category includes SQL, NoSQL, OS command, and LDAP injection? A) Broken Authentication B) Injection C) Security Misconfiguration D) Cross-Site Scripting Correct Answer: B Rationale: “Injection” is a broad category covering any attack where untrusted data is sent to an interpreter as part of a command or query. SQL, NoSQL, OS command, and LDAP injection are all examples. Broken Authentication, Security Misconfiguration, and XSS are separate categories.
  3. In password storage, what is the purpose of a “salt”? A) To encrypt the password B) To add random data to the password before hashing, preventing identical passwords from producing identical hashes C) To compress the password D) To make the password longer Correct Answer: B Rationale: A salt is a unique random value added to each password before hashing. This ensures that even if two users have the same password, their hashes differ, and it defeats precomputed rainbow table attacks. Salting does not encrypt or compress.
  4. Which of the following is an adaptive password hashing algorithm designed specifically for password storage? A) MD

B) SHA- 256

C) Argon D) AES Correct Answer: C Rationale: Argon2 is a key derivation function designed to be memory-hard and resistant to GPU cracking. MD5 and SHA-256 are general-purpose hash functions that are too fast for password storage without key stretching. AES is a symmetric encryption algorithm, not a hashing algorithm.

  1. In a CI/CD pipeline, at which stage should Software Composition Analysis (SCA) tools scan open source dependencies for known vulnerabilities? A) After deployment to production B) During the build stage, before the image is pushed to a registry C) Only after a vulnerability is reported D) During the design phase Correct Answer: B Rationale: SCA should run early and continuously—ideally during the build or integration stage—so that vulnerable or outdated libraries are identified before the application is deployed. Post-deployment scanning is reactive and increases risk.
  2. Which of the following is a common weakness in microservices architectures that can lead to unauthorized access between services? A) Too many instances B) Inadequate service-to-service authentication and authorization C) Use of container orchestration D) High network latency Correct Answer: B Rationale: Microservices often communicate over internal networks where perimeter security is insufficient. If each service does not authenticate and authorize its callers (e.g., via mutual TLS or an API gateway), an attacker who compromises one service can move laterally. The other options are operational concerns, not direct security weaknesses.
  3. Which protocol or framework is commonly used for token-based authentication and authorization in modern APIs? A) FTP B) OAuth 2.0 and OpenID Connect C) Telnet D) SNMP

A) Discretionary Access Control (DAC) B) Role-Based Access Control (RBAC) C) Mandatory Access Control (MAC) D) Attribute-Based Access Control (ABAC) Correct Answer: C Rationale: MAC enforces access decisions centrally based on security classifications and clearances; users cannot override policy. DAC gives the object owner discretion; RBAC grants access through roles; ABAC evaluates attributes (user, resource, environment).

  1. Which access control model grants permissions based on a user’s role within the organization? A) Discretionary Access Control (DAC) B) Role-Based Access Control (RBAC) C) Mandatory Access Control (MAC) D) Rule-Based Access Control Correct Answer: B Rationale: RBAC assigns permissions to roles, and users are assigned to roles. This simplifies administration and supports least privilege. DAC relies on the object owner; MAC uses labels; rule-based access control uses rules (often part of ABAC/MAC).
  2. A software flaw that allows an attacker to exploit the gap between checking a resource and using it is known as: A) Buffer overflow B) Time-of-check to time-of-use (TOCTOU) race condition C) SQL injection D) Cross-site request forgery Correct Answer: B Rationale: TOCTOU race conditions occur when a program checks a condition (e.g., file permission) and then uses the resource, but the resource changes in between. This can allow an attacker to bypass access controls. The other vulnerabilities are different classes.
  3. Which of the following is a common mitigation for buffer overflow vulnerabilities? A) Using unsafe string functions like strcpy B) Enabling Address Space Layout Randomization (ASLR) and Data Execution Prevention (DEP) C) Disabling all compiler warnings D) Storing user input in fixed-size buffers without bounds checks Correct Answer: B Rationale: ASLR randomizes memory addresses, and DEP prevents execution of data pages,

both making exploitation of buffer overflows much more difficult. Safe functions (strncpy, snprintf), bounds checking, and compiler protections (stack canaries) are also key. The other options increase risk.

  1. Which type of fuzzing uses knowledge of the input format to generate more structured test cases? A) Dumb fuzzing B) Mutation fuzzing C) Grammar-based (smart) fuzzing D) Black-box fuzzing Correct Answer: C Rationale: Grammar-based fuzzing knows the expected input syntax and generates inputs that are mostly valid but with targeted mutations, reaching deeper code paths than random/dumb fuzzing. Mutation fuzzing alters existing valid inputs; black-box indicates no internal knowledge.
  2. Which standard provides secure coding guidelines for the C programming language? A) OWASP ASVS B) MISRA C C) ISO 9001 D) PCI DSS Correct Answer: B Rationale: MISRA C provides rules for safe C programming, particularly in safety-critical and embedded systems. OWASP ASVS is for application security verification; ISO 9001 is quality management; PCI DSS is for payment card security.
  3. Which of the following is a fundamental secure coding principle? A) Trust all client-side input B) Validate all input before use C) Ignore error conditions D) Use weak cryptography for performance Correct Answer: B Rationale: Validating and sanitizing all input from external sources is a core secure coding practice. Trusting client-side input, ignoring errors, and using weak cryptography are anti-patterns that introduce vulnerabilities.
  4. Which HTTP response header can significantly reduce the risk of XSS by controlling which scripts can execute in a page? A) X-Frame-Options

protecting it from interception over unencrypted networks. HttpOnly protects against JavaScript access; SameSite controls cross-site requests.

  1. Which cookie attribute helps mitigate Cross-Site Request Forgery (CSRF) by restricting cross-site cookie sending? A) Secure B) HttpOnly C) SameSite D) Max-Age Correct Answer: C Rationale: SameSite=Lax or SameSite=Strict prevents the browser from sending the cookie on cross-site requests, which reduces CSRF risk. Secure and HttpOnly do not directly address CSRF. Max-Age sets expiration.
  2. Which vulnerability occurs when a server-side application accepts a URL as input and fetches it, allowing an attacker to access internal resources or metadata endpoints? A) Cross-site request forgery B) Server-side request forgery (SSRF) C) Open redirect D) Deserialization attack Correct Answer: B Rationale: SSRF tricks the server into making requests to unintended locations, often internal networks or cloud metadata services (e.g., 169.254.169.254). It can lead to data exfiltration or further compromise. The other options are different attacks.
  3. Which of the following is the most effective defense against Cross-Site Request Forgery (CSRF)? A) Using GET requests for all state changes B) Including a unique anti-CSRF token in each state-changing form and validating it on the server C) Relying on the HTTP Referer header D) Disabling cookies entirely Correct Answer: B Rationale: A unique, unpredictable anti-CSRF token bound to the user’s session prevents an attacker from forging valid state-changing requests. GET requests should not change state; the Referer header can be spoofed or missing; disabling cookies breaks session management.
  4. Which vulnerability is caused by an XML parser processing external entity references from untrusted input?

A) SQL injection B) XML External Entity (XXE) injection C) Command injection D) LDAP injection Correct Answer: B Rationale: XXE occurs when an XML parser resolves external entities, allowing an attacker to read local files, cause SSRF, or conduct denial-of-service. Disabling DTDs and external entity processing is the primary mitigation.

  1. Which of the following is an example of insecure deserialization? A) Deserializing data from an untrusted source without validating its integrity, potentially allowing code execution or object tampering B) Encrypting data before serializing it C) Using a library for serialization D) Validating the structure of serialized data before deserialization Correct Answer: A Rationale: Insecure deserialization occurs when an application accepts serialized objects from untrusted sources and reconstructs them without proper validation. This can lead to arbitrary code execution, privilege escalation, or data tampering. The other options describe safe practices.
  2. Which design principle aims to reduce the number of entry points an attacker can use to compromise a system? A) Defense in depth B) Attack surface reduction C) Fail secure D) Separation of duties Correct Answer: B Rationale: Attack surface reduction minimizes exposed interfaces, ports, and services, making it harder for an attacker to find a way in. Defense in depth layers controls; fail secure is a failure mode; separation of duties prevents fraud.
  3. Which of the following is NOT a valid security control category? A) Administrative controls B) Technical controls C) Physical controls D) Cosmetic controls
  1. Which of the following is a software supply chain risk? A) Using only internally developed code B) A compromised third-party library that is incorporated into the application C) Conducting code reviews D) Signing release artifacts Correct Answer: B Rationale: Supply chain attacks target dependencies, build tools, or delivery pipelines. A malicious or vulnerable third-party component can undermine the entire application. The other options are secure practices.
  2. What does an SBOM (Software Bill of Materials) provide? A) A list of project stakeholders B) A detailed inventory of software components, libraries, and dependencies C) A financial budget for the project D) A marketing description of the software Correct Answer: B Rationale: An SBOM lists every component, library, and dependency in a software product, enabling teams to quickly identify vulnerable or outdated elements when new CVEs are disclosed. It is a key supply chain security artifact.
  3. Which standard provides a scoring system for describing the severity of software vulnerabilities? A) CVSS (Common Vulnerability Scoring System) B) CPE (Common Platform Enumeration) C) CWE (Common Weakness Enumeration) D) OWASP ASVS Correct Answer: A Rationale: CVSS assigns numeric scores (0–10) to vulnerabilities based on exploitability and impact. CPE identifies affected products; CWE classifies weakness types; ASVS is an application security verification standard.
  4. Which version of the Common Vulnerability Scoring System is widely used as of the 2026– 2027 testing cycle? A) CVSS v B) CVSS v C) CVSS v3.x D) CVSS v4.

Correct Answer: D Rationale: CVSS v4.0 was released in 2023 and is increasingly adopted. CVSS v3.x is also still used, but v4.0 is the current version. The other versions are outdated. So D is the most current.

  1. Which type of penetration testing is performed without any prior knowledge of the system, simulating an external attacker? A) White-box testing B) Gray-box testing C) Black-box testing D) Red-team exercise Correct Answer: C Rationale: Black-box testing provides no internal information, forcing the tester to discover the system as an outsider would. White-box provides full knowledge; gray-box partial; a red-team exercise is broader adversarial emulation, not a specific level of knowledge.
  2. Which type of penetration testing provides full knowledge of the system, including source code and architecture? A) Black-box B) White-box C) Gray-box D) Blind testing Correct Answer: B Rationale: White-box testing gives the tester complete internal knowledge, enabling thorough code-level analysis. Black-box has none; gray-box has some limited information; blind testing is black-box with no notification.
  3. According to the NIST incident response lifecycle, which phase occurs first? A) Detection and Analysis B) Containment, Eradication, and Recovery C) Preparation D) Post-Incident Activity Correct Answer: C Rationale: Preparation is the first phase and occurs before any incident, involving policy, tools, training, and planning. Once an incident occurs, Detection and Analysis begins. The other phases follow.
  4. Which phase of incident response includes actions to stop the spread of an attack and remove the root cause?

access control lists. A locked room is physical; training is administrative; a warning banner is deterrent/administrative.

  1. Which of the following is an administrative security control? A) Biometric door lock B) Intrusion detection system C) Written security policy D) Encryption at rest Correct Answer: C Rationale: Administrative controls involve management processes, policies, and procedures. A written security policy is administrative. Biometric locks are physical; IDS and encryption are technical.
  2. Which of the following is a detective security control? A) Firewall B) Intrusion detection system (IDS) C) Strong password policy D) Backup generator Correct Answer: B Rationale: Detective controls identify or record security events after they occur. An IDS detects suspicious activity. Firewalls and strong passwords are preventive; backup generator is a corrective/recovery control.
  3. Which of the following is a corrective security control? A) Access control list B) Security incident response plan C) Restoring data from backups after a ransomware attack D) Security awareness training Correct Answer: C Rationale: Corrective controls are actions taken to restore normal operations after an incident. Restoring from backups is corrective. ACL is preventive; incident response plan is administrative/preparative; training is preventive/administrative.
  4. Which encryption type is typically used for bulk data encryption because of its speed and efficiency? A) Symmetric encryption B) Asymmetric encryption C) Hashing D) Digital signatures

Correct Answer: A Rationale: Symmetric algorithms (e.g., AES) use a single shared key and are fast, making them suitable for encrypting large amounts of data. Asymmetric encryption is slower and used for key exchange and signatures. Hashing is one-way; digital signatures use asymmetric cryptography.

  1. Which of the following is an asymmetric encryption algorithm? A) AES B) RSA C) SHA- 256 D) ChaCha Correct Answer: B Rationale: RSA is an asymmetric algorithm using a public/private key pair. AES and ChaCha are symmetric; SHA-256 is a hash function, not encryption.
  2. Which encryption mode provides both confidentiality and integrity/authenticity in a single operation? A) ECB B) CBC C) GCM (Galois/Counter Mode) D) MD Correct Answer: C Rationale: GCM is an authenticated encryption mode that provides both confidentiality and data authenticity/integrity. ECB and CBC provide only confidentiality and have known weaknesses; MD5 is a hash, not an encryption mode.
  3. Which of the following is a key management best practice? A) Storing encryption keys on the same server as the encrypted data B) Enforcing separation of duties between key custodians and data owners C) Hard-coding keys into the application source code D) Never rotating keys Correct Answer: B Rationale: Separation of duties prevents any single individual from having full control over keys and data. Keys should be stored in a secure key management system, not with the data or in code. Keys must be rotated regularly.
  4. Which of the following is a common vulnerability in mobile applications? A) Insecure data storage on the device B) Use of HTTPS with certificate pinning
  1. Which security tool actively blocks detected intrusions rather than only alerting? A) Intrusion Detection System B) Intrusion Prevention System C) SIEM D) Log analyzer Correct Answer: B Rationale: An IPS is placed inline and can drop or reject malicious traffic in real time. An IDS is passive (monitor/alert). SIEM aggregates and correlates logs; a log analyzer reviews logs but does not block.
  2. Which of the following is an application-layer security control? A) Network firewall B) Input validation in the application code C) Physical access badge D) Server room lock Correct Answer: B Rationale: Application-layer controls are implemented within the software itself, such as input validation, authentication checks, and authorization. Network firewalls are infrastructure controls; badges and locks are physical.
  3. Which testing technique sends random, malformed, or unexpected data to a program to discover crashes or vulnerabilities? A) Unit testing B) Fuzzing C) Regression testing D) Load testing Correct Answer: B Rationale: Fuzzing is specifically designed to find input-handling flaws by feeding invalid data. Unit testing verifies individual functions; regression testing ensures existing functionality remains; load testing measures performance under stress.
  4. What is a primary benefit of performing threat modeling early in the SDLC? A) It eliminates the need for penetration testing. B) It identifies and prioritizes security risks before code is written, reducing remediation cost. C) It replaces the need for secure coding standards. D) It guarantees the application will be secure. Correct Answer: B Rationale: Threat modeling in the design phase uncovers potential threats and vulnerabilities

before implementation, allowing architects to design appropriate controls. It does not replace other security activities or guarantee security.

  1. Which of the following is a well-known threat modeling methodology? A) Agile B) STRIDE C) Waterfall D) Scrum Correct Answer: B Rationale: STRIDE is a threat classification scheme (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege). Agile, Waterfall, and Scrum are software development methodologies, not threat modeling methodologies (though other threat modeling methods exist like PASTA, DREAD).
  2. Which type of software vulnerability allows an attacker to execute arbitrary code on a target system? A) Information disclosure B) Remote code execution (RCE) C) Denial of service D) Directory listing Correct Answer: B Rationale: RCE vulnerabilities allow an attacker to run commands or code on the victim system, typically leading to full compromise. Information disclosure leaks data; DoS affects availability; directory listing exposes file names.
  3. Which application-layer denial-of-service attack involves sending partial HTTP requests and keeping connections open to exhaust server resources? A) SYN flood B) Slowloris C) UDP flood D) ICMP flood Correct Answer: B Rationale: Slowloris is an application-layer DoS that opens many connections and sends partial requests slowly. SYN flood is transport-layer; UDP/ICMP floods are network-layer. The question specifies application-layer, so Slowloris is correct.
  4. Which vulnerability allows an attacker to access files outside the intended directory by manipulating file paths (e.g., using “../”)? A) SQL injection