














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















1. What is the primary goal of integrating security into the Software Development Life Cycle (SDLC)? A. To eliminate all software vulnerabilities before deployment B. To shift security left by identifying and mitigating risks as early as possible in the development process C. To replace traditional QA testing with security testing D. To ensure all code is written in memory-safe languages Answer: B. To shift security left by identifying and mitigating risks as early as possible in the development process Rationale: The primary goal of an SSDLC is to "shift security left" – integrating security practices early in the development lifecycle during requirements, design, and development phases rather than waiting until deployment. This proactive approach reduces the cost and effort of fixing vulnerabilities. Complete elimination of all vulnerabilities (A) is unrealistic, security testing complements rather than replaces QA (C), and memory-safe languages are not the sole objective (D). 2. A software development team is implementing a new application and wants to ensure that users can only access data they are explicitly authorized to view. Which security principle is primarily being addressed? A. Availability B. Confidentiality C. Non-repudiation D. Accounting Answer: B. Confidentiality Rationale: Confidentiality ensures that information is not disclosed to unauthorized individuals, entities, or processes. Restricting data access to authorized users directly supports confidentiality. Availability (A) ensures timely access, non-repudiation (C) prevents denying actions, and accounting (D) involves logging and monitoring.
3. An application logs all user authentication attempts, successful data access, and administrative actions. This implementation primarily supports which AAA component? A. Authentication B. Authorization C. Accounting D. Auditing Answer: C. Accounting Rationale: Accounting (or auditing) involves tracking and logging user activities and resource usage for accountability and analysis. Authentication (A) verifies identity, authorization (B) determines access rights, and auditing (D) is synonymous with accounting in this context. 4. A company wants to ensure that if one security control fails, others remain to protect the system. This approach aligns with which fundamental security principle? A. Defense in depth B. Least privilege C. Fail-safe defaults D. Open design Answer: A. Defense in depth Rationale: Defense in depth implements multiple overlapping security layers so that the failure of one control does not compromise the entire system. Least privilege (B) limits access rights, fail-safe defaults (C) deny access by default, and open design (D) means security is not based on secrecy. 5. What is the primary purpose of threat modeling in secure software design? A. To optimize application performance B. To identify and mitigate potential security risks C. To reduce development costs D. To improve user interface design Answer: B. To identify and mitigate potential security risks Rationale: Threat modeling identifies potential security risks early in the SDLC, allowing developers to implement mitigations proactively. It is not primarily for performance optimization (A), cost reduction (C), or UI design (D).
C. Access should be based on seniority D. All users should have the same level of access Answer: B. Users and systems should have only the minimum access necessary Rationale: The Principle of Least Privilege mandates that users and systems be granted the minimum levels of access necessary to perform their functions. This reduces the attack surface and limits potential damage from breaches.
10. Which type of requirement specifies that credit card numbers displayed in the application will be masked to show only the last four digits? A. Security requirement B. Privacy requirement C. Compliance requirement D. Functional requirement Answer: B. Privacy requirement Rationale: Privacy requirements address the protection of personal information, including data masking, minimization, and proper handling of sensitive data. 11. Which type of requirement specifies that user passwords will require a minimum of 8 characters and must include uppercase, numbers, and special characters? A. Security requirement B. Privacy requirement C. Compliance requirement D. Usability requirement Answer: A. Security requirement Rationale: Security requirements specify technical controls such as password complexity, authentication, and access control. Privacy requirements (B) address personal data protection, compliance (C) addresses regulatory obligations, and usability (D) addresses user experience. 12. What is the primary benefit of integrating security into the requirements phase? A. It eliminates all security vulnerabilities B. It reduces the cost of fixing vulnerabilities C. It speeds up the development process D. It eliminates the need for testing
Answer: B. It reduces the cost of fixing vulnerabilities Rationale: Integrating security early in the requirements phase significantly reduces the cost of fixing vulnerabilities compared to finding them later in the SDLC. It does not eliminate all vulnerabilities (A), necessarily speed development (C), or eliminate testing needs (D).
13. What is the primary purpose of a Security Requirements Specification? A. To document user interface designs B. To define the security controls and features the software must implement C. To describe the marketing strategy D. To outline the project timeline Answer: B. To define the security controls and features the software must implement Rationale: A Security Requirements Specification documents the security controls, features, and requirements the software must implement to protect against identified threats. 14. What is the primary purpose of a security architecture review? A. To review the user interface design B. To evaluate the security of the software's architectural design C. To test the software's performance D. To review the project timeline Answer: B. To evaluate the security of the software's architectural design Rationale: A security architecture review evaluates the security of the software's architectural design to identify potential vulnerabilities and ensure security controls are properly implemented . 15. Which of the following is a benefit of using a secure SDLC framework? A. It guarantees 100% security B. It provides a structured approach to building security into software C. It eliminates the need for security testing D. It reduces development costs by 50% Answer: B. It provides a structured approach to building security into software Rationale: A secure SDLC framework provides a structured, repeatable approach to building security into software throughout the development lifecycle. It does not guarantee 100% security (A), eliminate testing (C), or guarantee specific cost reductions (D).
Answer: B. Tampering; implement message integrity verification with HMAC or digital signatures Rationale: Modifying data in transit is tampering, which is mitigated by cryptographic integrity mechanisms such as HMAC or digital signatures. Mutual TLS addresses spoofing, audit logging addresses repudiation, and rate limiting addresses denial of service.
19. What does the STRIDE model stand for in threat modeling? A. Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege B. Security, Testing, Reliability, Integration, Deployment, Encryption C. Scalability, Trust, Redundancy, Isolation, Debugging, Efficiency D. Standards, Threats, Risks, Incidents, Defenses, Exploitation Answer: A. Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege Rationale: STRIDE is a threat categorization framework developed by Microsoft to systematically identify six types of security threats. The correct acronym is Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, and Elevation of Privilege. 20. During the design phase, a team identifies that an attacker could potentially bypass authentication by manipulating URL parameters. What SDL activity should have prevented this? A. Secure coding training B. Threat modeling C. Dynamic testing D. Deployment review Answer: B. Threat modeling Rationale: Threat modeling during the design phase systematically identifies potential attack vectors, including parameter manipulation. This proactive identification allows teams to design appropriate mitigations before code is written. 21. Which of the following best describes the concept of "Shift Left" in security? A. Moving security testing to the right (later in the SDLC) B. Moving security activities to the left (earlier in the SDLC) C. Shifting security responsibilities to the operations team D. Reducing the number of security tests
Answer: B. Moving security activities to the left (earlier in the SDLC) Rationale: "Shift Left" means moving security activities earlier in the SDLC to identify and fix vulnerabilities sooner, reducing cost and risk. This is the opposite of moving activities later (A).
22. What is the primary goal of input sanitization in secure coding? A. To improve code readability B. To prevent injection attacks C. To reduce server load D. To enhance user experience Answer: B. To prevent injection attacks Rationale: Input sanitization removes or escapes malicious content from user inputs, preventing injection attacks like XSS or SQL injection. It is not primarily for code readability (A), server load (C), or user experience (D). 23. Which security practice helps prevent SQL injection attacks during input handling? A. Using dynamic SQL queries B. Parameterized queries C. Disabling all error messages D. Using stored procedures only Answer: B. Parameterized queries Rationale: Parameterized queries (also called prepared statements) separate code and data, preventing attackers from injecting malicious SQL commands. While stored procedures can help, they are not a complete solution by themselves. Dynamic SQL queries (A) are vulnerable. 24. Which OWASP Top 10 vulnerability involves executing malicious scripts in a user's browser? A. SQL Injection B. Cross-Site Scripting (XSS) C. Broken Authentication D. Insecure Deserialization Answer: B. Cross-Site Scripting (XSS) Rationale: Cross-Site Scripting (XSS) allows attackers to inject malicious scripts into web pages viewed by users. This is distinct from SQL Injection (A), which targets databases.
28. Which cryptographic algorithm is recommended for secure password hashing? A. MD B. SHA- 1 C. bcrypt D. DES Answer: C. bcrypt Rationale: bcrypt is a secure, adaptive hashing algorithm designed for password hashing, resistant to brute-force attacks. MD5 (A), SHA-1 (B), and DES (D) are considered weak for password storage. 29. Which best practice is recommended to remediate password storage vulnerabilities involving simple hash functions? A. Use unsalted hashes B. Use salting combined with strong hashing C. Store passwords in plain text for recovery D. Use reversible encryption only Answer: B. Use salting combined with strong hashing Rationale: Salting combined with strong hashing protects passwords from offline brute force attacks using GPUs. Unsalted hashes (A) are vulnerable to rainbow table attacks, plain text storage (C) is never secure, and reversible encryption (D) is not appropriate for password storage . 30. What is a best practice of secure coding related to session management? A. Use short, predictable session IDs B. Maintain the state of a user's interaction securely C. Store session data in URLs D. Disable session expiration Answer: B. Maintain the state of a user's interaction securely Rationale: Session management involves maintaining the state of a user's interaction with a system securely. Proper session management helps protect against session hijacking and session fixation attacks. Short predictable IDs (A), storing in URLs (C), and disabling expiration (D) are insecure practices.
31. A team uses DREAD to score a cross-site scripting (XSS) vulnerability in a banking application. The damage potential is rated 3 (high), reproducibility 3 (high), exploitability 2 (medium), affected users 3 (high), and discoverability 3 (high). What is the DREAD score, and what risk level does it indicate? A. 14; low risk B. 14; medium risk C. 14; high risk D. 15; critical risk Answer: C. 14; high risk Rationale: DREAD score = (3 + 3 + 2 + 3 + 3) = 14. The scale is 5-25, with 5-7 low, 8- 11 medium, 12-15 high, and 16-25 critical. A score of 14 falls in the high-risk category due to significant damage potential, broad user impact, and high discoverability. 32. Which DREAD category has a risk rating based on the threat exploit's potential level of harm? A. Damage potential B. Reproducibility C. Exploitability D. Discoverability Answer: A. Damage potential Rationale: The DREAD category that has a risk rating based on the threat exploit's potential level of harm is Damage potential. This category assesses the total damage or impact that a threat could cause if exploited. Reproducibility (B) assesses how easily the attack can be repeated, exploitability (C) assesses how easily the attack can be launched, and discoverability (D) assesses how easily the vulnerability can be found. 33. What is the DREAD threat modeling framework primarily used for? A. Categorizing threats into six types B. Rating and prioritizing security risks C. Simulating attack scenarios D. Assessing organizational risk maturity Answer: B. Rating and prioritizing security risks
C. Penetration testing of the deployed application D. Static analysis of the file upload code Answer: B. Abuse case modeling to identify malicious use scenarios Rationale: Abuse case modeling (also called misuse case modeling) is a threat modeling activity performed during the design phase to identify how attackers might abuse a feature. This proactive approach identifies potential security issues before code is written. Code review (A) and static analysis (D) occur later, and penetration testing (C) occurs after deployment.
37. During the requirements phase of a secure development lifecycle, a team documents potential ways attackers could misuse the system's authentication functionality. What is this activity called? A. Threat modeling B. Misuse case development C. Penetration testing D. Code review Answer: B. Misuse case development Rationale: Misuse cases (also called abuse cases) document how attackers might abuse system functionality, created during requirements engineering to identify security needs. Threat modeling (A) identifies threats systematically but is broader. Penetration testing (C) occurs post- implementation. Code review (D) examines source code. 38. What does a Data Flow Diagram (DFD) arrow symbolize in threat modeling? A. Trust boundaries B. Data stores C. The movement of data across system elements D. External entities Answer: C. The movement of data across system elements Rationale: Arrows in a Data Flow Diagram visually represent the movement of data across system elements, critical for understanding data flows during threat analysis. Trust boundaries (A) are typically represented by dotted lines, data stores (B) by parallel lines, and external entities (D) by rectangles. 39. Which threat modeling step involves categorizing threats and ranking them to prioritize remediations?
A. Identifying attack surfaces B. Analyzing data flows C. Rating and prioritizing threats D. Developing mitigations Answer: C. Rating and prioritizing threats Rationale: Rating threats helps focus effort on vulnerabilities that pose the highest risks to the system. This is typically done using frameworks like DREAD or CVSS. Identifying attack surfaces (A) and analyzing data flows (B) are earlier steps, and developing mitigations (D) follows prioritization.
40. Which of the following deliverables is produced during the Security Assessment phase (A1) of the SDL? A. Security testing reports B. The SDL Project Outline C. Customer engagement framework D. Open-source licensing review report Answer: B. The SDL Project Outline Rationale: The SDL Project Outline is a key planning deliverable from the Security Assessment phase (A1), aligning security activities with development milestones. Security testing reports (A) are produced after testing, and licensing review (D) occurs in later phases.
41. Which type of security analysis is performed by reviewing source code line-by-line after other security analysis techniques have been executed? A. Static analysis B. Dynamic analysis C. Fuzz testing D. Manual code review Answer: D. Manual Code Review Rationale: Manual code review involves reviewing source code line-by-line, typically after automated tools have been used. This allows human experts to find logic flaws and other issues that automated tools might miss. Static analysis (A) is automated, dynamic analysis (B) examines running applications, and fuzz testing (C) provides random inputs.
validation flaws. Static analysis (A) examines code without execution, code review (C) is manual, and architecture review (D) examines design.
45. What is fuzz testing primarily used for in the SDL? A. Checking code style compliance B. Triggering software with random or invalid data to detect resilience weaknesses C. Analyzing source code for vulnerabilities D. Testing user interface design Answer: B. Triggering software with random or invalid data to detect resilience weaknesses Rationale: Fuzz testing (or fuzzing) triggers software with random or invalid data to detect resilience weaknesses before release. It is effective at finding crashes, memory leaks, and input validation issues. Code style compliance (A), static analysis (C), and UI testing (D) are different activities. 46. Which BSIMM domain focuses on activities such as architecture analysis, code review, and security testing within development workflows? A. Governance B. SSDL Touchpoints C. Intelligence D. Deployment Answer: B. SSDL Touchpoints Rationale: The SSDL Touchpoints domain tracks secure coding and testing practices integrated in development processes, including architecture analysis, code review, and security testing. Governance (A) focuses on strategy and policy, Intelligence (C) on knowledge and training, and Deployment (D) on operations. 47. How does the Building Security In Maturity Model (BSIMM) differ from prescriptive models like OpenSAMM? A. BSIMM only applies to financial institutions B. BSIMM measures and benchmarks existing security practices; OpenSAMM provides a roadmap for improvement C. BSIMM is for development teams only D. There is no difference between the two
Answer: B. BSIMM measures and benchmarks existing security practices; OpenSAMM provides a roadmap for improvement Rationale: BSIMM is a descriptive model that measures and benchmarks existing security practices across organizations. OpenSAMM is a prescriptive model that provides a roadmap for improvement. BSIMM is not limited to financial institutions (A), and they serve different purposes.
48. Which OpenSAMM business function focuses on reviewing design artifacts to ensure they comply with organizational security standards? A. Verification B. Governance C. Deployment D. Operations Answer: A. Verification Rationale: The OpenSAMM Verification business function involves activities related to reviewing and testing to ensure software meets security standards, including design review, implementation review, and security testing. Governance (B) focuses on strategy, Deployment (C) on release, and Operations (D) on maintenance. 49. What is the purpose of policy compliance analysis during the Architecture phase (A2) of the SDL? A. To test code for security vulnerabilities B. To verify that architecture designs follow security policies and regulations early C. To review the user interface D. To analyze project budget Answer: B. To verify that architecture designs follow security policies and regulations early Rationale: Policy compliance analysis verifies that architecture designs follow security policies and regulations early to avoid costly redesigns. This proactive approach catches issues before development begins. Code testing (A), UI review (C), and budget analysis (D) are different activities. 50. In the Ship phase (A5) of the SDL, what is the main goal of the licensing review? A. To ensure code is optimized for performance B. To confirm legal compliance with all open-source components used in the software
prevented this? A. Secure coding training B. Threat modeling C. Dynamic testing D. Deployment review Answer: B. Threat modeling Rationale: Threat modeling during the design phase systematically identifies potential attack vectors, including parameter manipulation. This proactive identification allows teams to design appropriate mitigations before code is written. Secure coding training (A) is valuable but doesn't replace threat modeling, dynamic testing (C) occurs after code is written, and deployment review (D) is too late.
54. The software security group is conducting a maturity assessment using OWASP SAMM. They are currently focused on reviewing design artifacts to ensure they comply with organizational security standards. Which OpenSAMM business function is being assessed? A. Verification B. Governance C. Intelligence D. Deployment Answer: A. Verification Rationale: The OpenSAMM Verification business function involves activities related to reviewing and testing to ensure software meets required security standards and practices, including design review. This function encompasses tasks such as design review, implementation review, and security testing, aimed at verifying that security measures are correctly integrated. 55. What does the Building Security In Maturity Model (BSIMM) help organizations understand? A. How to write more efficient code B. How to measure and evolve their software security initiatives C. How to market security products D. How to reduce development time Answer: B. How to measure and evolve their software security initiatives Rationale: BSIMM is a study of real-world software security initiatives organized so companies can measure their initiatives and understand how to evolve them over time. It provides
benchmarking rather than prescribing specific practices. It does not focus on code efficiency (A), marketing (C), or development time reduction (D).
56. Which authentication mechanism is considered most secure for web applications? A. Password-based authentication B. Multi-factor authentication (MFA) C. Single sign-on (SSO) D. Session-based authentication Answer: B. Multi-factor authentication (MFA) Rationale: Multi-factor authentication (MFA) enhances security by requiring multiple verification methods (e.g., password plus token or biometric), reducing the risk of unauthorized access. Password-only authentication (A) is vulnerable to credential theft, SSO (C) is convenient but doesn't replace MFA, and session-based authentication (D) is a method, not a mechanism. 57. Which privacy impact statement requirement type defines processes to keep personal information updated and accurate? A. Data integrity requirements B. Access requirements C. Collection of personal information requirements D. Personal information retention requirements Answer: A. Data integrity requirements Rationale: Data integrity requirements within a privacy impact statement ensure that personal information is maintained in an accurate and up-to-date manner. Access requirements (B) address who can access data, collection requirements (C) address what is collected, and retention requirements (D) address how long data is kept. 58. A new product will require an administration section for a small number of users. Normal users should be able to view limited customer information and should not see admin functionality within the application. Which concept is being used? A. Principle of least privilege B. Defense in depth C. Separation of duties D. Role-Based Access Control (RBAC)