About

8.3 Integrity Models (Biba & Clark-Wilson)

Theory: Integrity Models (Biba & Clark-Wilson)

Access control (Week 6) answers who may change data. Integrity also needs rules about how data may change and which data may flow into trusted records. Security models write these rules down formally.

Why Do We Need Security Models?

A security model is a set of formal rules that describes how a system must behave to stay secure.

GoalModel(s)Notes
ConfidentialityBell-LaPadula (1973)Protects secrets; built for the military. Not covered in detail in this course.
IntegrityBiba (1977), Clark-Wilson (1987)Protect correctness. This week’s focus.

The Biba Model

Biba gives every subject (user, process) and every object (data) an integrity level, and controls how data moves between levels.

LevelMediCare Plus example
HIGHClinical record, lab system
MEDIUMStaff workstation data
LOWPatient portal, web forms

Two rules:

  1. No Read Down: a high-trust process should not read low-trust data. The lab system should not import values from an unchecked web form.
  2. No Write Up: a low-trust user cannot write to high-trust data. A patient portal user cannot edit the clinical record.

Goal of Biba: stop low-trust data from contaminating high-trust data. Data may flow down the levels, never up.

Diagram loads as you scroll.

Common mistake: mixing Biba up with Bell-LaPadula. Bell-LaPadula (confidentiality) is the reverse: no read up, no write down, to stop secrets leaking downwards. Biba (integrity) is no read down, no write up, to stop dirt flowing upwards.

Limits of Biba

  1. Hard to maintain: every user and every data item needs a level, and real organizations change too fast.
  2. Trusted insiders: a high-level user can still write wrong or false data. Biba cannot stop fraud or errors by authorized people.
  3. No business process: Biba says who may write, but not how the change must happen.

So we need a model built for business: Clark-Wilson.

Clark-Wilson: Four Key Terms

TermMeaningHospital example
CDI (Constrained Data Item)Data that must stay correctMedication orders
UDI (Unconstrained Data Item)Data from outside that is not trusted yetA form a patient typed online
TP (Transformation Procedure)The only approved way to change a CDIThe “Create Order” function
IVP (Integrity Verification Procedure)A check that CDIs are still correctNightly pharmacy reconciliation

Clark-Wilson: The Main Rules

  1. Well-formed transactions: data is changed only through approved procedures (TPs), never directly.
  2. Separation of duties: no single person can complete a whole critical process alone.
  3. Access triple: (User, TP, CDI). Each user may run only certain TPs on certain data.
  4. Audit: every TP writes a log, so every change can be traced.

Also: a UDI must be checked (validated) before it can become a CDI.

Diagram loads as you scroll.

Clark-Wilson in the Hospital

RoleTPWhat it does
DoctorTP1: Create OrderWrites the medication order
PharmacistTP2: Verify OrderChecks dose, allergy, interactions
NurseTP3: Record GivenScans patient and drug, gives dose

Because three different roles run the three TPs, no one person can create, approve and give a drug alone: that is separation of duties built into the process.

Biba vs. Clark-Wilson

BibaClark-Wilson
Main ideaIntegrity levels (labels)Business processes
Protects againstLow-trust data flowing upErrors and fraud by authorized users
Main toolsNo Read Down, No Write UpTPs, separation of duties, audit
Best fitMilitary, operating systems (e.g. Windows Mandatory Integrity Control)Banks, hospitals, business systems

Most real organizations use Clark-Wilson ideas every day, often without knowing the name: approval workflows, “four-eyes” checks, and audit logs are all Clark-Wilson.


Worked Examples

Exercise 1

In the HR system, the head nurse can enter her own overtime hours AND approve the payment for them. Which Clark-Wilson rule is broken?

A. Well-formed transaction B. Separation of duties C. Audit D. Integrity verification (IVP)

Show solution ↓
Solution
  1. The process has two steps: enter overtime (maker) and approve payment (checker).
  2. One person can do both steps, so she can complete the whole critical process alone and could pay herself for hours she did not work.
  3. The data may still be changed through proper TPs (so well-formed transactions hold) and may be logged (audit holds); the missing piece is a second, independent person.

Answer: B, separation of duties. Fix: a different manager must approve the head nurse’s own overtime.

Exercise 2

Apply Biba’s two rules to MediCare Plus:

  1. A lab system is configured to automatically import glucose values that patients type into a web form.
  2. A patient logged into the portal tries to edit his own diagnosis in the clinical record.
Show solution ↓
Solution

Place each subject and object on a level: lab system and clinical record = HIGH; patient portal and web forms = LOW.

  1. A HIGH process reading LOW data → violates No Read Down. Unchecked patient-typed values would contaminate trusted lab data.
  2. A LOW user writing to HIGH data → violates No Write Up.

Answer: 1 breaks No Read Down; 2 breaks No Write Up; both would let low-trust data contaminate high-trust data and must be blocked.

Exercise 3

A senior doctor has the highest integrity level in a Biba system. She enters a false diagnosis to support a fraudulent insurance claim. Can Biba stop this? Which model handles it better, and how?

Show solution ↓
Solution
  1. Biba only checks levels. A HIGH user writing to HIGH data is allowed, so Biba cannot stop it. This is the “trusted insider” limit of Biba.
  2. Clark-Wilson is designed for errors and fraud by authorized users:
    • Well-formed transactions: the diagnosis can be changed only through an approved TP.
    • Separation of duties: an insurance claim needs a second person (e.g. a coder or reviewer) to check it.
    • Audit: the TP logs who entered the diagnosis and when, so the fraud can be traced.
    • IVP: periodic checks (e.g. claims vs. treatment records) can detect mismatches.

Answer: No, Biba cannot stop fraud by a high-level user; Clark-Wilson handles it through TPs, separation of duties, audit and IVP.

Exercise 4

Classify each item as CDI, UDI, TP or IVP:

  1. A referral letter uploaded by a clinic outside the hospital
  2. The patient’s medication administration record
  3. The “Verify Order” function used by pharmacists
  4. A nightly job that compares drugs dispensed with medication orders
Show solution ↓
Solution
  1. Outside data, not yet trusted → UDI. It must be validated (e.g. checked by a doctor) before it becomes part of the record.
  2. Data that must stay correct → CDI.
  3. An approved procedure that changes a CDI (the order’s verification status) → TP.
  4. A check that CDIs are still correct → IVP.

Answer: 1 UDI, 2 CDI, 3 TP, 4 IVP.