Docsity

Clark Wilson Integrity Model - Computer Security | ECS 153, Exams of Computer Science

Partial preview of the text

Download Clark Wilson Integrity Model - Computer Security | ECS 153 and more Exams Computer Science in PDF only on Docsity!

Clark-Wilson Integrity Model

  • Integrity defined by a set of constraints
    • Data in a consistent or valid state when it satisfies these
  • Example: Bank
    • D today’s deposits, W withdrawals, YB yesterday’s balance, TB today’s balance
    • Integrity constraint: D + YB – W
  • Well-formed transaction move system from one consistent state to another
  • Issue: who examines, certifies transactions done correctly?

Entities

  • CDIs: constrained data items
    • Data subject to integrity controls
  • UDIs: unconstrained data items
    • Data not subject to integrity controls
  • IVPs: integrity verification procedures
    • Procedures that test the CDIs conform to the integrity constraints
  • TPs: transaction procedures
    • Procedures that take the system from one valid state to another

Enforcement Rules 1 and 2

ER1 The system must maintain the certified relations and must ensure that only TPs certified to run on a CDI manipulate that CDI. ER2 The system must associate a user with each TP and set of CDIs. The TP may access those CDIs on behalf of the associated user. The TP cannot access that CDI on behalf of a user not associated with that TP and CDI.

  • System must maintain, enforce certified relation
  • System must also restrict access based on user ID ( allowed relation)

Users and Rules

CR3 The allowed relations must meet the

requirements imposed by the principle of

separation of duty.

ER3 The system must authenticate each user

attempting to execute a TP

  • Type of authentication undefined, and depends on the instantiation
  • Authentication not required before use of the system, but is required before manipulation of CDIs (requires using TPs)

Handling Untrusted Input

CR5 Any TP that takes as input a UDI may perform only valid transformations, or no transformations, for all possible values of the UDI. The transformation either rejects the UDI or transforms it into a CDI.

  • In bank, numbers entered at keyboard are UDIs, so cannot be input to TPs. TPs must validate numbers (to make them a CDI) before using them; if validation fails, TP rejects UDI

Separation of Duty In Model

ER4 Only the certifier of a TP may change

the list of entities associated with that

TP. No certifier of a TP, or of an entity

associated with that TP, may ever have

execute permission with respect to that

entity.

  • Enforces separation of duty with respect to

certified and allowed relations

Comparison With Requirements

4. CR4 provides logging; ER3 authenticates

trusted personnel doing installation; CR5,

ER4 control installation procedure

  • New program UDI before certification, CDI

(and TP) after

5. Log is CDI, so appropriate TP can

provide managers, auditors access

  • Access to state handled similarly

Comparison to Biba

• Biba

  • No notion of certification rules; trusted

subjects ensure actions obey rules

  • Untrusted data examined before being made

trusted

• Clark-Wilson

  • Explicit requirements that actions must meet
  • Trusted entity must certify method to upgrade

untrusted data (and not certify the data itself)

CDI Arrangement

• CDIs owned by root or some other unique

user

  • Again, no logins to that user’s account allowed

• CDI’s group contains users of TPs allowed

to manipulate CDI

• Now each TP can manipulate CDIs for

single user

Examples

  • Access to CDI constrained by user
    • In “allowed” triple, TP can be any TP
    • Put CDIs in a group containing all users authorized to modify CDI
  • Access to CDI constrained by TP
    • In “allowed” triple, user can be any user
    • CDIs allow access to the owner, the user owning the TP
    • Make the TP world executable

Key Points

• Integrity policies deal with trust

  • As trust is hard to quantify, these policies are

hard to evaluate completely

  • Look for assumptions and trusted users to find

possible weak points in their implementation

• Biba based on multilevel integrity

• Clark-Wilson focuses on separation of duty

and transactions

Overview

  • Classical Cryptography
    • Cæsar cipher
    • Vigènere cipher
    • DES
  • Public Key Cryptography
    • RSA
  • Cryptographic Checksums
    • HMAC

Example

  • Example: Cæsar cipher - M = { sequences of letters } - K = { i | i is an integer and 0 ≤ i ≤ 25 } - E = { Ek | k ∈ K and for all letters m , Ek ( m ) = ( m + k ) mod 26 } - D = { Dk | k ∈ K and for all letters c , Dk ( c ) = (26 + c – k ) mod 26 } - C = M

Attacks

  • Opponent whose goal is to break cryptosystem is

the adversary

  • Assume adversary knows algorithm used, but not key
  • Three types of attacks:
  • ciphertext only : adversary has only ciphertext; goal is to find plaintext, possibly key
  • known plaintext : adversary has ciphertext, corresponding plaintext; goal is to find key
  • chosen plaintext : adversary may supply plaintexts and obtain corresponding ciphertext; goal is to find key