Secure Software by Design

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

40 Terms

1
New cards

Information Security

Protects data and governs access to it, focusing on confidentiality, integrity, availability, and authorized access.

2
New cards

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.

3
New cards

Secure by Design

An approach that incorporates security into software design decisions before implementation rather than adding security afterward.

4
New cards

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.

5
New cards

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.

6
New cards

Software Development Lifecycle

Idea → Design → Build → Test → Release.

7
New cards

Four Areas of the Security Mindset

Expected use, unexpected use, abuse, and failure.

8
New cards

Expected Use

What the user is trying to accomplish through normal software functionality.

9
New cards

Unexpected Use

How software behaves when faced with unusual inputs, unusual timing, or partial failures.

10
New cards

Abuse

The intentional misuse of a valid software feature.

11
New cards

Failure

The state a system enters when something breaks or does not function as intended.

12
New cards

Threat Modeling

A structured decision-making process used to define a system, anticipate threats, choose mitigations, and evaluate remaining risk.

13
New cards

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?

14
New cards

Scope

Defines which systems, components, data flows, services, and dependencies are included in a software design.

15
New cards

Assumptions

Beliefs or expectations about a system's environment, constraints, users, data sensitivity, and dependencies.

16
New cards

Why are unwritten assumptions dangerous?

Different teams may have different understandings of the same system, causing important security responsibilities to be overlooked.

17
New cards

Assets

Things a system must protect, including personal data, money, transactions, credentials, privileges, and operational capabilities.

18
New cards

Asset Prioritization

Determining which assets would cause the greatest harm if disclosed, changed, destroyed, unavailable, or misused.

19
New cards

Attack Surface

A point where untrusted interaction, input, or requests enter a system.

20
New cards

Trust Boundary

A transition between different levels of trust or privilege within or between systems.

21
New cards

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.

22
New cards

Authentication vs. Authorization

Authentication establishes identity, while authorization determines which actions or resources that identity is permitted to access.

23
New cards

Six Secure Design Principles

Least privilege, least information, secure by default, fail securely, complete mediation, and defense in depth.

24
New cards

Least Privilege

Users, services, and components should operate with only the privileges necessary to perform their current task.

25
New cards

Least Information

Software should request, process, and reveal only the information necessary to complete the current task.

26
New cards

Secure by Default

Software should begin with restrictive permissions, secure configurations, and protective features already enabled.

27
New cards

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.

28
New cards

Fail Open

When a required security check fails, the application allows the requested action to continue anyway.

29
New cards

Fail Safe

When a security-critical check cannot be completed, the application rejects, limits, or safely backs out of the action.

30
New cards

Complete Mediation

Every path to a protected asset or action must be governed by the same security and authorization decisions.

31
New cards

Defense in Depth

The use of multiple independent security layers so that the failure of one control does not result in a total compromise.

32
New cards

Four Layers of Defense in Depth

Authenticate the principal; authorize the specific action; limit exposed data or privileges; log, monitor, and detect unusual activity.

33
New cards

Security Requirements

Statements describing what must be protected, the desired protection outcome, and how much failure an organization can tolerate.

34
New cards

CIA Triad in Software Design

Confidentiality prevents unauthorized disclosure, integrity prevents unauthorized changes, and availability ensures necessary functions remain usable.

35
New cards

Secure Design Trade-offs

Balancing security with usability, performance, cost, compatibility, functionality, and operational needs.

36
New cards

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.

37
New cards

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.

38
New cards

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.

39
New cards

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.

40
New cards

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.