Lecture 1-2 Foundations and Access Control (Simplified)

Quick map
  • CIA goals and tradeoffs
  • Identity -> authentication -> authorization -> access control
  • Authentication factors and examples
  • ACM, RBAC, hierarchical RBAC
  • Compartments, labels, lattices
  • Bell-LaPadula rules
  • DAC, break-glass, usage control

1) CIA triad (core goals)

GoalPlain meaningIf brokenExample
ConfidentialityKeep information secret from unauthorized partiesData leakUnencrypted database dump
IntegrityPrevent unauthorized modificationTampered recordsGrades changed
AvailabilityKeep information accessible to authorized partiesDowntimeDDoS knocks service offline
Tradeoffs

These goals can conflict (e.g., more confidentiality can reduce availability).

2) Identity and access control pipeline

TermPlain meaningExample
SubjectThe actor (human or process)User or running process
ObjectThe resourceFile, data, function, device
IdentificationClaim an identityUsername
AuthenticationProve the claimPassword, OTP
AuthorizationDecide permissionsAllow read, deny write
Access controlEnforce the policyACL check

Flow to remember:
Identification -> Authentication -> Authorization -> Access control enforcement.

Memory hook

Think: “Who are you?” -> “Prove it.” -> “What can you do?” -> “Enforce it.”

3) Authentication mechanisms (4 factors)

FactorWhat it isExamplesNotes
Something you knowSecret knowledgePassword, PINWidely used
Something you haveA token/deviceSmart card, OTP generator, UniCard, phone appPhysical or soft token
Something you areBiometric traitFingerprint, face, retinaCan be spoofed
Context/locationWhere you areInside secure building”You are here”

Passwords

  • Widely used but hard to remember.
  • Good passwords are long and random.
  • Good systems allow arbitrary length and store passwords hashed and salted.
  • Key questions: how to store/validate safely and how to access systems securely.

Hardware tokens

  • Examples: chip cards, OTP generators, UniCard.
  • Trend toward soft tokens (apps on phones).

Biometrics

  • Promising but not perfect.
  • Sensors can be tricked.
  • Legal/privacy issues (e.g., is a fingerprint protected speech?).

4) Access control basics

  • Access control specifies who can do what and must be enforced.
  • Real systems are complex: context/state matters, permissions change over time,
    obligations may be required, and bugs exist.

Simple access control relation

Example permission check:

5) Forms of access control

LayerExample
PhysicalGates, turnstiles
NetworkFirewalls
HardwareMemory management
Operating systemFile system permissions
ApplicationLogins, database permissions

6) Policy vs model

ConceptPlain meaning
Security policyRules of what is allowed or forbidden
Security modelFormal representation to reason about policies

7) Access Control Matrix (ACM)

  • Think of a table: subjects x objects, entries are privileges.
  • Protection state (relative to privileges P) is a triple with:
    • A set of current subjects
    • A set of current objects
    • A access control matrix , defining privileges for each

Formally, can be seen as:

  • a relation
  • equivalently, a function
Scaling issue

The matrix is conceptually clear but does not scale to millions of subjects/objects.

8) Role-Based Access Control (RBAC)

  • Core idea: users get roles; roles get permissions.
  • Decouples users from permissions, so it scales better.

Formalization:

  • a set of ROLES
  • a set of USERS
  • a relation
  • a relation

The access control model is:
i.e

Example:

Practice

What are the permissions of John? What are the permissions of Alice?

Extending RBAC

  • Role hierarchies.
  • Who can change permissions.
  • Context constraints (e.g., must be owner).
  • Users switching roles.

9) Hierarchical RBAC

Hierarchical RBAC adds a role hierarchy .

The access control model is:
i.e

Example hierarchy and assignments:

10) Compartments, labels, and ordering

  • Compartments (categories) implement “need-to-know” (e.g., SAT, EUR, ASI).
  • Labels can combine clearance + compartments.
  • You can only see information if you are cleared for all categories.

Examples of labeled info:

  • Top Secret, UK
  • Top Secret, Canada
  • Top Secret, UK and Canada

Partially ordered sets

  • A set with a relation , written , is partially ordered if:
    • Reflexive:
    • Transitive: if and then a
    • Anti-symmetric: if and . then
  • Examples:
    • Natural numbers with less-than-or-equal (total order).
    • Sets under subset relations (not total).
    • Natural numbers ordered by divisibility.

Lattices

  • A partially ordered where any two elements have a least upper
    bound and greatest lower bound.

Examples:

  • Natural numbers in an interval ().
  • Linear order of clearances .
  • Powerset of categories under inclusion (SAT, EUR, ASI).

Why lattices:

  • Find the minimal clearance needed to read two objects.
  • Find the maximal label an object can have that can still be read by two users.
  • Fit “need-to-know” + least privilege.

11) Bell-LaPadula (BLP) model (confidentiality, MAC)

  • Combines lattice labels with state transitions.
  • Read-down (Simple Security Policy):
    • Subject with label can read object with label only if
      dominates .
  • Write-up (Star Property):
    • Subject with label can write to object with label only if
      dominates .
  • Main insight: prohibiting write down prevents reclassification/leaks.
  • If implemented securely, no information leakage (no read up + no write down).
  • Limits: blocks some legitimate sharing from high to low.
    • Workarounds: temporary downgrade or trusted subjects.
  • MAC labels cannot be changed by normal subjects; used in systems like SELinux.

12) Other access control systems

SystemIdeaExample
DACOwners can change permissionsUnix/Linux files
Break-glassOverride in emergenciesHospital “emergency access”
MAC (general)Central labels + policyMilitary systems

13) Usage control (after access control)

  • Controls how you can use data after access.
  • Examples: “watch 3 times in 2 weeks,” “read but do not share.”
  • Techniques: DRM, watermarking, monitoring in trusted environments.
Quick exam checklist
  • Define CIA and explain tradeoffs.
  • Distinguish identification vs authentication vs authorization.
  • List the 4 auth factors with examples.
  • Explain ACM vs RBAC and why RBAC scales.
  • State BLP rules: no read up, no write down.
  • Explain labels, compartments, partial orders, and lattices.
  • Know DAC vs MAC vs RBAC use cases.