All exams← All (ISC)² Certified Information Systems Security Professional notes

Software Development Security: (ISC)² Certified Information Systems Security Professional revision notes

Revision notes

## Software Development Security

Integrating security throughout the Software Development Life Cycle (SDLC) is paramount for building resilient applications. Security should not be an afterthought but an integral part of every phase, from initial requirements gathering to deployment and maintenance. This proactive approach, often termed "Shift Left", significantly reduces vulnerabilities and remediation costs by addressing security early.

## Secure SDLC Phases

  • Requirements: Define security requirements and use cases. Conduct Threat Modeling (e.g., STRIDE, DREAD) to identify potential threats and vulnerabilities early.
  • Design: Incorporate security architecture principles. Design for least privilege, defense in depth, and secure defaults. Ensure proper segregation of duties.
  • Implementation/Coding: Adhere to Secure Coding Practices. This includes robust input validation, proper output encoding to prevent XSS, secure error handling (avoiding verbose error messages), strong authentication and authorization mechanisms, and secure session management. Avoid common vulnerabilities like SQL Injection, Cross-Site Scripting (XSS), and Broken Authentication.
  • Testing: Conduct various security tests. Static Application Security Testing (SAST) analyzes source code without execution. Dynamic Application Security Testing (DAST) tests running applications from the outside. Interactive Application Security Testing (IAST) combines SAST and DAST. Penetration Testing simulates real-world attacks. Code Review (manual or automated) is critical.
  • Deployment: Secure configuration of servers, databases, and network components. Implement patch management and vulnerability scanning.
  • Maintenance: Continuous monitoring, logging, and incident response. Regular security updates and re-assessments.

## Modern Approaches and Acquisition

DevSecOps integrates security into the continuous integration/continuous delivery (CI/CD) pipeline, automating security checks and fostering collaboration. When acquiring Commercial Off-The-Shelf (COTS) or third-party software, thorough vendor assessment and supply chain security due diligence are essential to understand and mitigate inherent risks. APIs require specific security considerations, including strong authentication, authorization, and rate limiting. Database security involves access controls, encryption, and auditing.

Key facts

Flashcards

What is "Shift Left" in software development security?
Integrating security activities and considerations earlier in the Software Development Life Cycle (SDLC) to proactively identify and address vulnerabilities.
tap to reveal
Name two common types of application security testing.
Static Application Security Testing (SAST) and Dynamic Application Security Testing (DAST).
tap to reveal
What is the primary purpose of input validation?
To ensure that all user-supplied data conforms to expected formats, types, and ranges, preventing injection attacks and other data manipulation vulnerabilities.
tap to reveal
What is Threat Modeling?
A structured approach to identify potential threats, vulnerabilities, and countermeasures for a system or application during the design phase.
tap to reveal
What is DevSecOps?
An approach that integrates security practices into every phase of the DevOps pipeline, automating security checks and fostering collaboration between development, security, and operations teams.
tap to reveal
Give an example of a secure coding practice for preventing Cross-Site Scripting (XSS).
Output encoding (or escaping) all user-supplied data before displaying it in a web page.
tap to reveal
Why is secure error handling important?
To prevent the disclosure of sensitive system information (e.g., stack traces, database errors) to attackers, which could aid in further exploitation.
tap to reveal
What is the risk associated with using COTS or third-party software?
Inheriting unknown vulnerabilities or backdoors from the vendor, requiring thorough vendor assessment and supply chain security due diligence.
tap to reveal
Practice questions

Software Development Security: 5 practice questions

Q1. During which phase of the Secure Software Development Lifecycle (SDLC) is it most cost-effective to discover and remediate a security flaw?
  • A.  Testing
  • B.  Deployment
  • C.  Maintenance
  • D.  Requirements
Show answer & explanation
✓ Answer: D. Requirements
Identifying and addressing security issues during the requirements phase is the most cost-effective, as it prevents flaws from being designed and built into the system, avoiding expensive redesigns later.
Q2. A development team wants to analyze their application's source code for vulnerabilities like buffer overflows and race conditions without executing the program. Which testing methodology is most appropriate for this task?
  • A.  Penetration Testing
  • B.  Fuzz Testing
  • C.  Static Application Security Testing (SAST)
  • D.  Dynamic Application Security Testing (DAST)
Show answer & explanation
✓ Answer: C. Static Application Security Testing (SAST)
SAST, also known as white-box testing, analyzes an application's source code, byte code, or binary code for security vulnerabilities without running the application, which is ideal for finding issues like buffer overflows.
Q3. A web application's search feature directly concatenates user input into a database query string. This practice makes the application most vulnerable to which type of attack?
  • A.  Server-Side Request Forgery (SSRF)
  • B.  Cross-Site Request Forgery (CSRF)
  • C.  SQL Injection (SQLi)
  • D.  Cross-Site Scripting (XSS)
Show answer & explanation
✓ Answer: C. SQL Injection (SQLi)
Directly concatenating untrusted user input into a database query is the classic vulnerability that leads to SQL Injection, allowing an attacker to manipulate the query's logic and potentially access or modify data.
Q4. What is the primary security goal of integrating security practices into a DevOps pipeline, a practice commonly known as DevSecOps?
  • A.  To make security an integral, automated part of the software delivery process without impeding velocity.
  • B.  To replace all manual security reviews with automated tools to guarantee faster deployment.
  • C.  To shift all security responsibilities from the security team to the development team.
  • D.  To perform a single, comprehensive security audit just before the final release to production.
Show answer & explanation
✓ Answer: A. To make security an integral, automated part of the software delivery process without impeding velocity.
DevSecOps aims to embed security controls and practices seamlessly into the DevOps workflow, automating security to maintain development speed while improving the overall security posture from the start.
Q5. What is the primary purpose of using parameterized queries (or prepared statements) when an application interacts with a SQL database?
  • A.  To prevent SQL Injection attacks by separating the query logic from user-supplied data.
  • B.  To automatically enforce referential integrity between database tables.
  • C.  To simplify the process of writing complex multi-table join operations.
  • D.  To improve database performance by caching query execution plans.
Show answer & explanation
✓ Answer: A. To prevent SQL Injection attacks by separating the query logic from user-supplied data.
Parameterized queries ensure that user input is always treated as data, not as executable SQL code. This separation is the most effective defense against SQL Injection vulnerabilities.
Test yourself
See the (ISC)² Certified Information Systems Security Professional page

More (ISC)² Certified Information Systems Security Professional topics