Docsity

Identification and Authentication in Computer Security, Study notes of Computer Science

Toggle sidebar
bg1
ECS 289M Lecture 26
June 2, 2006
June 2, 2006 ECS 289M, Foundations of Computer
and Information Security
Slide 2
Requirements Assurance
• Specification describes of characteristics of
computer system or program
• Security specification specifies desired
security properties
• Must be clear, complete, unambiguous
– Something like “meets C2 security requirements”
not good: what are those requirements (actually,
34 of them!)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Identification and Authentication in Computer Security and more Study notes Computer Science in PDF only on Docsity!

ECS 289M Lecture 26

June 2 , 2006

June 2 , 2006 ECS 289 M, Foundations of Computer Slide 2

Requirements Assurance

• Specification describes of characteristics of

computer system or program

• Security specification specifies desired

security properties

• Must be clear, complete, unambiguous

  • Something like “meets C2 security requirements”

not good: what are those requirements (actually,

34 of them!)

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 3

Example

  • “Users of the system must be identified and

authenticated” is ambiguous

  • Type of id required—driver’s license, token?
  • What is to be authenticated—user, representation of identity, system?
  • Who is to do the authentication—system, guard?
  • “Users of the system must be identified to the system

and must have that identification authenticated by the

system” is less ambiguous

  • Under what conditions must the user be identified to the system—at login, time of day, or something else? June 2 , 2006 ECS 289 M, Foundations of Computer Slide 4

Example

  • “Users of the system must be identified to the system and must have that identification authenticated by the system before the system performs any functions on behalf of that identity” - Type of identification is user name - User identification (name) to be authenticated - System to authenticate - Authentication to be done at login (before system performs any action on behalf of user)

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 7

Example Stage 1

  • Map elements, state variables of BLP to entities in System X
    • Subject set S in BLP! set of processes
    • Object set O in BLP! set of inode objects, IPC objects, mail messages, processes as destinations, passive entities
    • Right set P in BLP! set of rights of system functions
      • Functions that create entities, write entities, have write w
      • Functions that read entities have right r
      • Functions that execute, search entities have right r June 2 , 2006 ECS 289 M, Foundations of Computer Slide 8

Example Stage 1

  • Access set b in BLP! types of access
    • Subjects can use rights r, w, a to access inode objects.
  • Access control matrix a for current state in BLP! current state of mandatory and discretionary controls
  • Functions fs , fo , and fc in BLP! three functions
    • f ( s ) is the maximum security level of subject s
    • current-level ( s ) is current security level of subject s
    • f ( o ) is the security level of object o
  • Hierarchy H in BLP! differently for different objects
    • Inode objects are hierarchical trees represented by the file system hierarchy
    • Other object types map to discrete points in the hierarchy

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 9

Example Stage 2

  • Define BLP properties in language of System X and show each property is consistent with BLP - MAC property of BLP! user having over an object: - read access iff user’s clearance dominates object’s classification - write access over an object iff object’s classification dominates user’s clearance. - DAC property of BLP! user having access to object iff owner of object has explicitly granted that user access to object June 2 , 2006 ECS 289 M, Foundations of Computer Slide 10

Example Stage 2

  • Label inheritance, user level changes specific to System X
    • Security level of newly created object inherited from creating subject
    • Security level of initial process at user login, security level of initial process after user level change, bounded by security level range defined for that user and for the terminal
    • Security level of newly spawned process inherited from parent, except for first process after a user level change
    • When user’s level raised, child process does not inherit write access to objects opened by parent
    • When user’s level lowered, all processes, accesses associated with higher privilege terminated

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 13

Example Stage 4

  • Designers show System X rules preserve security

properties

  • Show that the rules enforce the properties directly; or
  • Map the rules directly to a BLP rule or a sequence of BLP rules - 9 rules about current access - 5 rules about functions and security levels - 8 access permission rules - 8 more rules about subjects and objects
  • Designers must show that each rule is consistent with actions of System X. June 2 , 2006 ECS 289 M, Foundations of Computer Slide 14

Justifying Requirements

• Show policy complete and consistent

• Example: ITSEC suitability analysis

– Map threats to requirements and

assumptions

– Describe how references address threat

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 15

Example: System Y

Evaluation

  • Threat T1: A person not authorized to use the system

gains access to the system and its facilities by

impersonating an authorized user.

  • Requirement IA 1 : A user is permitted to begin a user session only if the user presents a valid unique identifier to the system and if the claimed identity of the user is authenticated by the system by authenticating the supplied password.
  • Requirement IA 2 : Before the first user/system interaction in a session, successful identification and authentication of the user take place. June 2 , 2006 ECS 289 M, Foundations of Computer Slide 16

System Y Assumptions

  • Assumption A1: The product must be configured such that only the approved group of users has physical access to the system.
  • Assumption A2: Only authorized users may physically remove from the system the media on which authentication data is stored.
  • Assumption A3: Users must not disclose their passwords to other individuals.
  • Assumption A4: Passwords generated by the administrator shall be distributed in a secure manner.

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 19

System Y Justifications

  1. The referenced assumptions prevent unauthorized users from gaining access by using a valid user’s identity and password. Assumption A 3 ensures that users keep their passwords secret. Assumption A 4 prevents unauthorized users from intercepting new passwords when those passwords are distributed to users. Finally, assumption A 2 prevents unauthorized access to authentication information stored on removable media.
  • These justifications provide an informal basis for asserting that, if the assumptions hold and the requirements are met, the threat is adequately handled. June 2 , 2006 ECS 289 M, Foundations of Computer Slide 20

Design Assurance

• Process of establishing that design of

system sufficient to enforce security

requirements

– Specify requirements (see above)

– Specify system design

– Examine how well design meets

requirements

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 21

Design Techniques

• Modularity

– Makes system design easier to analyze

– RVM: functions not related to security

distinct from modules supporting security

functionality

• Layering

– Makes system easier to understand

– Supports information hiding

June 2 , 2006 ECS 289 M, Foundations of Computer Slide 22

Layering

  • Develop specifications at each layer of abstraction
    • subsystem or component : special-purpose division of a larger entity
      • Example: for OS, memory manager, process manager; Web store: credit card handlers
    • subcomponent : part of a component
      • Example: I/O component has I/O managers and I/O drivers as subcomponents
    • module : set of related functions, data structures

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 25

Security Functions

  • Security functions summary specification identifies

high-level security functions defined for the system

  1. Description of individual security functions , complete enough to show the intent of the function; tie to requirements
  2. Overview of set of security functions describing how security functions work together to satisfy security requirements
  3. Mapping to requirements , specifying mapping between security functions and security requirements. June 2 , 2006 ECS 289 M, Foundations of Computer Slide 26

External Interface

  • High-level description of external interfaces to

system, component, subcomponent, or module

  1. Component overview identifying the component, its parent, how the component fits into the design
  2. Data descriptions identifying data types and structures needed to support the external interface descriptions specific to this component, and security issues or protection requirements relevant to data structures.
  3. Interface descriptions including commands, system calls, library calls, functions, and application program interfaces as well as exception conditions and effects

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 27

Example

  • Routine for error handling subsystem that adds an event to an existing log file Interface Name error_t add_logevent ( handle_t handle, data_t event ); Input Parameters handle valid handle returned from previous call to open_log event buffer of event data with records in logevent format June 2 , 2006 ECS 289 M, Foundations of Computer Slide 28

Example

Exceptions

  • Caller does not have permission to add to EVENT file.
  • There is inadequate memory to add to an EVENT file. Effects Event is added to EVENT log. Output Parameters status status_ok /* routine completed successfully / no_memory / insufficient memory (failed) / permission_denied / no permission (failed) */ Note add_logevent is a user-visible interface

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 31

Example: Detailed Component

Description

  • Audit logging subcomponent records auditable

events in a secure fashion. It checks whether

requested audit event meets conditions for recording.

  • Subcomponent formats audit record and includes all

attributes of security-relevant event; generates the

audit record in the predefined format

  • Audit logging subcomponent handles exception

conditions

  • Error writing to the log June 2 , 2006 ECS 289 M, Foundations of Computer Slide 32

Example

  • Audit logging subcomponent uses one global

structure:

structure audit_config /* defines configuration of / / which events to audit */

  • The audit logging subcomponent has two external

interfaces:

add_logevent() /* log an event / logevent() / ask to log event */

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 33

Example: Security Relevance

• Audit logging subcomponent monitors

security-relevant events and records

those events matching configurable

audit selection criteria

– Security-relevant events include attempts

to violate security policy, successful

completion of security-relevant actions

June 2 , 2006 ECS 289 M, Foundations of Computer Slide 34

Low-Level Design

  • Focus on internal logic, data structures, interfaces;

may include pseudocode

  1. Overview , giving the purpose of the module and its interrelations with other modules, especially dependencies on other modules
  2. Security relevance of the module , showing how the module addresses security issues
  3. Individual module interfaces , identifying all interfaces to the module, and those externally visible.

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 37

Example: Security Relevance

  • Audit logging subcomponent monitors security-

relevant events, records those events matching the

configurable audit selection criteria

  • Example: attempts to violate security policy
  • Example: successful completion of security-relevant actions
  • Audit logging subcomponent must ensure no audit

records are lost, and are protected from tampering

June 2 , 2006 ECS 289 M, Foundations of Computer Slide 38

Example: Individual Interfaces

• logevent () only external interface

verify function parameters

call check_selection_parameters to determine if

system has been configured to audit event

if check_selection_parameters then

call create_logevent

call write_logevent

return success or error number

else

return success

June 2 , 2006 ECS 289 M, Foundations of Computer and Information Security Slide 39

Example: Individual Interfaces

  • add_logevent () available only to privileged users verify caller has privilege/permission to use this function if caller does not have permission return permission_denied verify function parameters call write_logevent for each event record return success or error number from write_logevent June 2 , 2006 ECS 289 M, Foundations of Computer Slide 40

Internal Design

  • Introduction : purpose, scope, target audience
  • Component overview : identifies modules, data

structures; how data is transmitted; security

relevance and functionality

  • Detailed module designs
    • Module # 1 : module’s interrelations with other modules, local data structures, its control and data flows, security - Interface Designs : describes each interface - Interface 1a: security relevance, external visibility, purpose, effects, exceptions, error messages, and results