Security Fundamentals and Risk
Understand what security is for, the core principles and vocabulary, how to think about risk in business terms, how security fits the development lifecycle, and how to set scope for an assessment.
Introduction
The Production Deployment Pipeline is complete and the release candidate is ready for a pilot. Then a pilot customer’s IT manager sends a short questionnaire: How do you separate our data from other customers? Who at your company can read it? What happens if one of your servers is compromised? Do you scan for vulnerabilities? Most teams discover they cannot answer these questions with evidence.
This lesson builds the foundation: the goals and principles of security, the vocabulary used throughout the course, a practical way to reason about risk, where security fits in the lifecycle, and how to scope the assessment you will produce.
Learning Objectives
- Explain security goals and the principles that guide secure design.
- Use the vocabulary of assets, threats, vulnerabilities, risk, and controls precisely.
- Reason about risk by likelihood and impact, and in business terms.
- Describe how security activities fit into each stage of development and delivery.
- Define the scope, assumptions, and rules of an assessment.
- Describe where AI helps and where it does not in security work.
1. What Security Is For
Security protects three properties, often called the CIA triad:
| Property | Meaning | Example failure in SignalDesk |
|---|---|---|
| Confidentiality | Only authorized people can read data | One customer sees another customer’s feedback |
| Integrity | Data and behavior change only in authorized ways | An attacker edits imported records or a summary |
| Availability | The system works when needed | A flood of uploads makes imports unusable |
Two more properties matter in practice:
- Accountability. You can tell who did what (audit logs).
- Privacy. Personal data is collected, used, and kept only as justified and promised.
Security is also a business property. It decides whether customers trust you with their data, whether you can pass a procurement review, and whether a mistake costs a day or a company. A security conversation that ignores the business cannot set sensible priorities.
2. Vocabulary
Use these terms precisely. Confusing them produces muddled discussions.
| Term | Meaning |
|---|---|
| Asset | Something worth protecting: data, credentials, availability, reputation |
| Threat | A potential cause of harm: an attacker, a mistake, a failure |
| Threat actor | Who might cause it: an outsider, a malicious user, an insider, a careless administrator |
| Vulnerability | A weakness that a threat could use |
| Exploit | A way of using a vulnerability |
| Attack surface | All the places where an attacker can interact with the system |
| Risk | The potential for loss, from the combination of likelihood and impact |
| Control | Anything that prevents, detects, or reduces a risk |
| Residual risk | The risk that remains after controls |
A vulnerability alone is not a risk. A serious flaw in a component that is unreachable and handles no sensitive data may matter little; a modest flaw on the login endpoint may matter a great deal. Risk always depends on context.
3. Principles of Secure Design
These principles apply to every system and are used in every later lesson:
- Least privilege. Every person, service, and process gets only the access it needs, for as long as it needs it.
- Defense in depth. Several independent layers, so one failure does not mean total failure.
- Secure by default. The default configuration is the safe one; weakening it requires a deliberate act.
- Fail safely. When something breaks, the system denies access and protects data instead of opening up.
- Minimize the attack surface. Fewer endpoints, features, ports, and dependencies mean fewer weaknesses.
- Never trust input. All data crossing a trust boundary is validated, including data from other services and from AI models.
- Separation of duties. No single person or credential can complete a sensitive action alone.
- Complete mediation. Every access is checked, every time, on the server.
- Keep it simple. Complex security mechanisms are harder to get right and to review.
- Assume breach. Design so that a compromise is detected, contained, and recoverable.
“Security through obscurity” is not on the list. A system whose safety depends on attackers not knowing how it works is fragile; assume the design is known and the keys are secret.
4. Thinking About Risk
Risk analysis does not need complex mathematics. Start with a simple structure:
1
Risk = how likely it is x how bad it would be
| Low impact | Medium impact | High impact | |
|---|---|---|---|
| High likelihood | Medium | High | Critical |
| Medium likelihood | Low | Medium | High |
| Low likelihood | Low | Low | Medium |
Questions that improve the estimate:
- Likelihood: Who could do this, and why would they? How easy is it? Is it exposed to the internet? Is there a known, used technique?
- Impact: What data or function is affected? How many customers? What are the legal, financial, and trust consequences? How long to recover?
For each risk, there are four responses:
- Mitigate: add or improve a control.
- Transfer: share the risk through insurance or contract (this does not remove it).
- Avoid: remove the feature or data that creates it.
- Accept: decide knowingly to live with it, with a named owner and a review date.
Accepting a risk is legitimate. Ignoring one is not. The difference is a written decision by a person with the authority to make it.
5. Security in the Lifecycle
Security done only at the end finds problems when they are most expensive to fix. Spread it across the lifecycle, a practice often called a secure development lifecycle or “shifting left”:
| Stage | Security activity | Course lesson |
|---|---|---|
| Discovery and requirements | Security and privacy requirements, abuse cases | 1, 2 |
| Architecture and design | Threat modeling, secure design review | 2, 3 |
| Implementation | Secure coding, code review, secrets and dependency hygiene | 5, 6, 7 |
| Testing | Static and dynamic analysis, security tests | 5, 8 |
| Build and delivery | Pipeline checks, image scanning, provenance, least-privilege pipeline | 5, 6 |
| Operation | Monitoring, incident response, patching | 9, operations course |
| Retirement | Data deletion, credential revocation | 3 |
Two cautions. First, “shift left” does not mean “skip the right”; testing a running system still finds things design reviews cannot. Second, security is not only the work of a security team; developers write most vulnerabilities and are best placed to prevent them.
6. Scope and Rules of an Assessment
An assessment without scope produces either an endless list or false comfort. Write down:
- System and boundaries: which components, environments, and data are included.
- Assets and priorities: what matters most.
- Threat actors considered: for SignalDesk, for example an anonymous internet user, a malicious or curious customer user, a compromised customer account, a careless administrator, and a compromised dependency.
- Standards and obligations: contractual commitments, privacy law, customer questionnaires.
- Methods: reviews, scans, tests; what is manual and what is automated.
- Exclusions: what is not examined, and why. Third-party services are typically assessed by reviewing their documentation and configuration, not by testing them.
- Authorization and rules of engagement: who approved testing, which environments are permitted, and what is forbidden (for example, testing production, using real customer data, or denial-of-service tests).
- Handling of findings: who is told, how, and how quickly. Findings are sensitive information.
For SignalDesk, the inputs are the architecture documentation and deployment view, the Production Deployment Pipeline, the QA strategy, and the documentation set. Mark any you do not have as illustrative.
7. Where AI Helps and Where It Does Not
Helps with
- Enumerating threats, attack paths, and abuse cases that a team may not think of.
- Explaining vulnerability classes, advisories, and scanner findings in plain language.
- Reviewing code and configuration for common weaknesses.
- Drafting security requirements, test cases, and checklists.
- Summarizing and clustering large numbers of findings.
- Translating between technical detail and business language.
Does not replace
- Knowing your real system, data flows, and deployment.
- Proving that a weakness is exploitable or that a fix works.
- Judging which risks the business should accept.
- Taking responsibility for decisions and disclosures.
- Awareness of the latest vulnerabilities; models have a knowledge cutoff, so check current advisories from authoritative sources.
Three dangers recur:
- False positives. The model describes a vulnerability that is not there, wasting time and eroding trust in real findings.
- False negatives. The model says code is secure. This statement is worth little; absence of reported findings is not evidence of absence of flaws.
- Plausible insecure code. Generated code often looks well structured and omits checks, uses weak defaults, or invents a library function.
There is also a data-handling issue: sending source code, logs, or vulnerability details to an external tool is itself a disclosure. Use approved tools and redact.
8. Using AI to Frame the Assessment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Act as an application security engineer helping to scope a
security assessment.
Inputs:
- System description and architecture summary: [paste]
- Data stored and processed, and its sensitivity: [paste]
- Deployment overview and pipeline summary: [paste]
- Customer commitments and questionnaires: [paste]
- Team size and security experience: [paste]
Tasks:
1. List the assets, ranked by how damaging their compromise would be.
2. List the threat actors that are realistic for this system, with
their likely goals.
3. Describe the attack surface as a list of entry points.
4. Propose a scope, exclusions, and rules of engagement.
5. Propose the three to five questions a customer's security
reviewer is most likely to ask, and what evidence would answer
each.
6. List questions you need answered before the scope can be final.
Do not assume technologies or controls that are not in the inputs.
Mark assumptions.
Check the output against the real system. Ask the people who built and operate it which entry points and data stores the documents leave out.
9. Practical Exercise
For SignalDesk (or your project):
- List the assets and rank them by the harm of compromise.
- Write the security goals as short statements (for example, “a user can only read data belonging to their own organization”).
- List the entry points that make up the attack surface.
- List the realistic threat actors and what each could want.
- Define the risk scale you will use (likelihood, impact, and how they combine) and the four risk responses.
- Run the AI scoping prompt, compare with your own work, and resolve differences by checking facts.
- Write the assessment scope, exclusions, and rules of engagement, and have a responsible person approve them.
- Create a security workspace folder: assets, goals, attack surface, risk scale, and scope.
Verification
You are ready to continue when:
- Assets are listed and ranked, and security goals are specific and testable.
- The attack surface lists real entry points, including administrative and internal ones.
- The risk scale is defined, and every response (mitigate, transfer, avoid, accept) has a rule about who decides.
- The scope states what is excluded and who authorized testing.
- You can explain in one sentence what you are protecting, from whom, and what you will examine.
Key Takeaways
- Security protects confidentiality, integrity, and availability, and serves the business’s trust.
- A vulnerability is not a risk until you consider exposure, likelihood, and impact.
- Principles such as least privilege and defense in depth guide every later decision.
- Accepting a risk is acceptable only as a written decision by someone with the authority.
- AI broadens your view and speeds your analysis; people verify, decide, and take responsibility.
What’s Next?
With scope and a risk vocabulary in place, we look at the system through an attacker’s eyes. The next lesson introduces threat modeling: a structured way to find what could go wrong before it does.