Jump to a topic
Chapter approach
This chapter teaches cybersecurity as a defensive discipline. The focus is understanding risk, evidence, controls, and safe response. Any hands-on practice should be performed only on systems and accounts you own or are explicitly authorized to use.
36.1 Security Requirements
Security Requirements is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Security Requirements. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Security Requirements.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Security Requirements as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Security Requirements. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.2 Threat Modeling
Threat Modeling is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Threat Modeling. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Threat Modeling.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Threat Modeling as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Threat Modeling. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.3 Code Review
Code Review is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Code Review. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Code Review.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Code Review as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Code Review. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.4 Dependency Review
Dependency Review extends security into modern applications and hosted environments. The same core ideas still apply—identity, least privilege, secure configuration, logging, data protection, change control, and clear responsibility.
Beginner picture: Moving a service to a new environment changes the building, not the need for locks, inventory, monitoring, safe construction, and emergency plans.
Defensive example
A security team is reviewing Dependency Review. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Dependency Review.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Dependency Review as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Dependency Review. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.5 Testing
Testing is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Testing. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Testing.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Testing as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Testing. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.6 Build Security
Build Security is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Build Security. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Build Security.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Build Security as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Build Security. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.7 Release Security
Release Security is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Release Security. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Release Security.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Release Security as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Release Security. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
36.8 Maintenance
Maintenance is an important part of Secure Software Development. For a beginner, learn four things first: what it protects, what could go wrong, what evidence shows a problem, and what safe defensive action reduces the risk.
Beginner picture: Cybersecurity becomes manageable when a large problem is broken into assets, threats, protections, evidence, and recovery steps.
Defensive example
A security team is reviewing Maintenance. Instead of assuming a problem, it first identifies the asset, expected behavior, available evidence, business impact, and the lowest-risk authorized action. This keeps the investigation evidence-based and defensible.
Safe security workflow
- Define the asset, user, service, or data connected to Maintenance.
- Write the expected normal behavior before deciding that something is suspicious.
- Collect evidence using read-only or low-risk checks whenever possible.
- Choose a defensive action that is authorized, reversible, and proportional to the risk.
- Verify the result, document the change, and escalate when the situation exceeds your role.
Common mistakes
- Treating Maintenance as a tool-only problem instead of considering people, process, and business impact.
- Making changes before preserving useful evidence or confirming authorization.
- Using one alert, score, or symptom as proof without context.
- Stopping after a technical change without verifying risk reduction or documenting the result.
Authorized practice
Use a private lab, synthetic data, or a paper exercise. Create a scenario involving Maintenance. List the asset, likely risk, existing control, evidence you would collect, the safest defensive action, and how you would verify success. Do not scan, test, access, or modify systems you do not own or have explicit permission to assess.
Chapter practice lab
Create a one-page defensive worksheet for Secure Software Development. Include the asset, threat or failure scenario, likely impact, current protection, evidence sources, authorized defensive action, verification, and documentation.
15 Review Questions & Answers
1. What is the purpose of Security Requirements?
It helps protect assets, reduce risk, provide evidence, or support safe recovery depending on where it fits in the security lifecycle.
2. Why does Threat Modeling matter to a beginner?
Because it connects a security concept to a practical decision: what to protect, what to watch, what to change, and how to verify the result.
3. What should happen before changing Code Review?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
4. What is a common mistake with Dependency Review?
A common mistake is acting on one symptom without context or making several changes before recording evidence.
5. How do you verify work involving Testing?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.
6. What is the purpose of Build Security?
It helps protect assets, reduce risk, provide evidence, or support safe recovery depending on where it fits in the security lifecycle.
7. Why does Release Security matter to a beginner?
Because it connects a security concept to a practical decision: what to protect, what to watch, what to change, and how to verify the result.
8. What should happen before changing Maintenance?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
9. What is a common mistake with Security Requirements?
A common mistake is acting on one symptom without context or making several changes before recording evidence.
10. How do you verify work involving Threat Modeling?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.
11. What is the purpose of Code Review?
It helps protect assets, reduce risk, provide evidence, or support safe recovery depending on where it fits in the security lifecycle.
12. Why does Dependency Review matter to a beginner?
Because it connects a security concept to a practical decision: what to protect, what to watch, what to change, and how to verify the result.
13. What should happen before changing Testing?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
14. What is a common mistake with Build Security?
A common mistake is acting on one symptom without context or making several changes before recording evidence.
15. How do you verify work involving Release Security?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.