1/39
Looks like no tags are added yet.
Information Security
Protects data and governs access to it, focusing on confidentiality, integrity, availability, and authorized access.
Software Security
Focuses on the design, implementation, and operation of software systems that can be trusted to enforce security correctly, including when things go wrong.
Secure by Design
An approach that incorporates security into software design decisions before implementation rather than adding security afterward.
Why should security be considered early in software design?
Early security decisions allow teams to change architecture, scope, data flows, and assumptions before fixes become expensive or require compromises.
How does an ordinary software bug become a vulnerability?
A hidden assumption fails, the failure crosses a security boundary, and an attacker intentionally exploits the failure.
Software Development Lifecycle
Idea → Design → Build → Test → Release.
Four Areas of the Security Mindset
Expected use, unexpected use, abuse, and failure.
Expected Use
What the user is trying to accomplish through normal software functionality.
Unexpected Use
How software behaves when faced with unusual inputs, unusual timing, or partial failures.
Abuse
The intentional misuse of a valid software feature.
Failure
The state a system enters when something breaks or does not function as intended.
Threat Modeling
A structured decision-making process used to define a system, anticipate threats, choose mitigations, and evaluate remaining risk.
Four Questions of Threat Modeling
What are we working on? What can go wrong? What are we going to do about it? Did we do a good job?
Scope
Defines which systems, components, data flows, services, and dependencies are included in a software design.
Assumptions
Beliefs or expectations about a system's environment, constraints, users, data sensitivity, and dependencies.
Why are unwritten assumptions dangerous?
Different teams may have different understandings of the same system, causing important security responsibilities to be overlooked.
Assets
Things a system must protect, including personal data, money, transactions, credentials, privileges, and operational capabilities.
Asset Prioritization
Determining which assets would cause the greatest harm if disclosed, changed, destroyed, unavailable, or misused.
Attack Surface
A point where untrusted interaction, input, or requests enter a system.
Trust Boundary
A transition between different levels of trust or privilege within or between systems.
Why are low-to-high trust transitions particularly dangerous?
A small mistake at a trust boundary can grant unauthorized access or privileges and produce much larger consequences.
Authentication vs. Authorization
Authentication establishes identity, while authorization determines which actions or resources that identity is permitted to access.
Six Secure Design Principles
Least privilege, least information, secure by default, fail securely, complete mediation, and defense in depth.
Least Privilege
Users, services, and components should operate with only the privileges necessary to perform their current task.
Least Information
Software should request, process, and reveal only the information necessary to complete the current task.
Secure by Default
Software should begin with restrictive permissions, secure configurations, and protective features already enabled.
Fail Securely
When an error occurs or a security-critical check cannot be completed, the system should reject, limit, or safely back out of the action.
Fail Open
When a required security check fails, the application allows the requested action to continue anyway.
Fail Safe
When a security-critical check cannot be completed, the application rejects, limits, or safely backs out of the action.
Complete Mediation
Every path to a protected asset or action must be governed by the same security and authorization decisions.
Defense in Depth
The use of multiple independent security layers so that the failure of one control does not result in a total compromise.
Four Layers of Defense in Depth
Authenticate the principal; authorize the specific action; limit exposed data or privileges; log, monitor, and detect unusual activity.
Security Requirements
Statements describing what must be protected, the desired protection outcome, and how much failure an organization can tolerate.
CIA Triad in Software Design
Confidentiality prevents unauthorized disclosure, integrity prevents unauthorized changes, and availability ensures necessary functions remain usable.
Secure Design Trade-offs
Balancing security with usability, performance, cost, compatibility, functionality, and operational needs.
Security Across the Software Lifecycle
Document security requirements during design, verify secure defaults at release, monitor and update during operation, and reassess risks during change or retirement.
An application restricts access through its normal screen but allows restricted data to be accessed through an export function. Which principle is violated?
Complete Mediation. Every route to protected data must enforce the same authorization decision.
A payment application displays full bank account numbers when employees only need the last four digits. Which principle is violated?
Least Information. The application unnecessarily exposes sensitive information that is not required for the task.
An authorization service times out, and the application automatically approves a transaction. Which principle is violated?
Fail Securely. The application creates an unsafe failure state by allowing an action without verifying authorization.
A service operates with administrator privileges all day but only requires them for one short task. Which principle is violated?
Least Privilege. Elevated privileges should only be available when necessary to complete the task.