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.
44.1 Security in Development
Security in Development is an important part of DevSecOps Fundamentals. 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 in Development. 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 in Development.
- 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 in Development 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 in Development. 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.
44.2 Source Control
Source Control is an important part of DevSecOps Fundamentals. 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 Source Control. 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 Source Control.
- 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 Source Control 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 Source Control. 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.
44.3 Build Pipelines
Build Pipelines affects how systems communicate and where trust boundaries exist. Security work starts by understanding normal paths and expected services, then limiting unnecessary exposure and watching for behavior that does not match the baseline.
Beginner picture: A network is like a city: roads carry traffic, addresses identify destinations, checkpoints restrict movement, and monitoring helps detect unusual activity.
Defensive example
A security team is reviewing Build Pipelines. 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 Pipelines.
- 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 Pipelines 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 Pipelines. 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.
44.4 Automated Tests
Automated Tests is an important part of DevSecOps Fundamentals. 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 Automated Tests. 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 Automated Tests.
- 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 Automated Tests 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 Automated Tests. 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.
44.5 Secrets
Secrets protects information or proves integrity using mathematical techniques. A beginner should focus on the purpose of each technique, where keys or secrets live, and what can go wrong if those secrets are exposed.
Beginner picture: Encryption is like locking a box, hashing is like creating a tamper-evident fingerprint, and a digital signature is like attaching a verifiable seal.
Defensive example
A security team is reviewing Secrets. 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 Secrets.
- 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 Secrets 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 Secrets. 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.
44.6 Dependency Security
Dependency Security 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 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 Dependency 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 Dependency 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 Dependency 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.
44.7 Artifact Integrity
Artifact Integrity is an important part of DevSecOps Fundamentals. 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 Artifact Integrity. 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 Artifact Integrity.
- 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 Artifact Integrity 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 Artifact Integrity. 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.
44.8 Release Gates
Release Gates is an important part of DevSecOps Fundamentals. 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 Gates. 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 Gates.
- 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 Gates 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 Gates. 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 DevSecOps Fundamentals. 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 in Development?
It helps protect assets, reduce risk, provide evidence, or support safe recovery depending on where it fits in the security lifecycle.
2. Why does Source Control 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 Build Pipelines?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
4. What is a common mistake with Automated Tests?
A common mistake is acting on one symptom without context or making several changes before recording evidence.
5. How do you verify work involving Secrets?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.
6. What is the purpose of Dependency 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 Artifact Integrity 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 Release Gates?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
9. What is a common mistake with Security in Development?
A common mistake is acting on one symptom without context or making several changes before recording evidence.
10. How do you verify work involving Source Control?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.
11. What is the purpose of Build Pipelines?
It helps protect assets, reduce risk, provide evidence, or support safe recovery depending on where it fits in the security lifecycle.
12. Why does Automated Tests 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 Secrets?
Confirm authorization, identify the asset and risk, protect evidence, and choose the lowest-risk defensive action.
14. What is a common mistake with Dependency 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 Artifact Integrity?
Repeat the relevant test, compare with expected behavior, check for unintended effects, and document the outcome.