Docsity

Design Principles - Lecture Notes | ECS 235A, Study notes of Computer Science

Partial preview of the text

Download Design Principles - Lecture Notes | ECS 235A and more Study notes Computer Science in PDF only on Docsity!

April 5, 2005 ECS 235, Computer and Information Slide # 1

Chapter 13: Design Principles

  • Overview
  • Principles
    • Least Privilege
    • Fail-Safe Defaults
    • Economy of Mechanism
    • Complete Mediation
    • Open Design
    • Separation of Privilege
    • Least Common Mechanism
    • Psychological Acceptability

April 5, 2005 ECS 235, Computer and Information Slide # 2

Overview

• Simplicity

  • Less to go wrong
  • Fewer possible inconsistencies
  • Easy to understand

• Restriction

  • Minimize access
  • Inhibit communication

April 5, 2005 ECS 235, Computer and Information Slide # 4

Fail-Safe Defaults

• Default action is to deny access

• If action fails, system as secure as when

action began

April 5, 2005 ECS 235, Computer and Information Slide # 5

Economy of Mechanism

• Keep it as simple as possible

  • KISS Principle

• Simpler means less can go wrong

  • And when errors occur, they are easier to

understand and fix

• Interfaces and interactions

April 5, 2005 ECS 235, Computer and Information Slide # 7

Open Design

• Security should not depend on secrecy of

design or implementation

  • Popularly misunderstood to mean that source

code should be public

  • “Security through obscurity”
  • Does not apply to information such as

passwords or cryptographic keys

April 5, 2005 ECS 235, Computer and Information Slide # 8

Separation of Privilege

• Require multiple conditions to grant

privilege

  • Separation of duty
  • Defense in depth

April 5, 2005 ECS 235, Computer and Information Slide # 10

Psychological Acceptability

• Security mechanisms should not add to

difficulty of accessing resource

  • Hide complexity introduced by security

mechanisms

  • Ease of installation, configuration, use
  • Human factors critical here

April 5, 2005 ECS 235, Computer and Information Slide # 11

Key Points

• Principles of secure design underlie all

security-related mechanisms

• Require:

  • Good understanding of goal of mechanism and

environment in which it is to be used

  • Careful analysis and design
  • Careful implementation

April 5, 2005 ECS 235, Computer and Information Slide # 13

Overview

• Protection state of system

  • Describes current settings, values of system

relevant to protection

• Access control matrix

  • Describes protection state precisely
  • Matrix describing rights of subjects
  • State transitions change elements of matrix

April 5, 2005 ECS 235, Computer and Information Slide # 14

Description

objects (entities) subjects s 1 s 2 … s n o 1 … o m s 1 … s n

  • Subjects S = { s 1 ,…, sn }
  • Objects O = { o 1 ,…, om }
  • Rights R = { r 1 ,…, rk }
  • Entries A [ si , oj ] ⊆ R
  • A [ si , oj ] = { rx , …, ry } means subject si has rights rx , …, ry over object oj

April 5, 2005 ECS 235, Computer and Information Slide # 16

Example 2

  • Procedures inc_ctr , dec_ctr , manage
  • Variable counter
  • Rights + , – , call counter inc_ctr dec_ctr manage inc_ctr + dec_ctr – manage call call call

April 5, 2005 ECS 235, Computer and Information Slide # 17

Boolean Expression Evaluation

• ACM controls access to database fields

  • Subjects have attributes
  • Verbs define type of access
  • Rules associated with objects, verb pair

• Subject attempts to access object

  • Rule for object, verb evaluated, grants or

denies access

April 5, 2005 ECS 235, Computer and Information Slide # 19

ACM at 3AM and 10AM

… picture … … annie

paint At 3AM, time condition met; ACM is: … picture … … annie

At 10AM, time condition not met; ACM is:

April 5, 2005 ECS 235, Computer and Information Slide # 20

History

Database: name position age salary Alice teacher 45 $40, Bob aide 20 $20, Cathy principal 37 $60, Dilbert teacher 50 $50, Eve teacher 33 $50, Queries: 1.sum(salary, “position = teacher”) = 140, 2.sum(salary, “age > 40 & position = teacher”) should not be answered (deduce Eve’s salary)