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)
| Goal | Plain meaning | If broken | Example |
|---|---|---|---|
| Confidentiality | Keep information secret from unauthorized parties | Data leak | Unencrypted database dump |
| Integrity | Prevent unauthorized modification | Tampered records | Grades changed |
| Availability | Keep information accessible to authorized parties | Downtime | DDoS knocks service offline |
Tradeoffs
These goals can conflict (e.g., more confidentiality can reduce availability).
2) Identity and access control pipeline
| Term | Plain meaning | Example |
|---|---|---|
| Subject | The actor (human or process) | User or running process |
| Object | The resource | File, data, function, device |
| Identification | Claim an identity | Username |
| Authentication | Prove the claim | Password, OTP |
| Authorization | Decide permissions | Allow read, deny write |
| Access control | Enforce the policy | ACL 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)
| Factor | What it is | Examples | Notes |
|---|---|---|---|
| Something you know | Secret knowledge | Password, PIN | Widely used |
| Something you have | A token/device | Smart card, OTP generator, UniCard, phone app | Physical or soft token |
| Something you are | Biometric trait | Fingerprint, face, retina | Can be spoofed |
| Context/location | Where you are | Inside 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
| Layer | Example |
|---|---|
| Physical | Gates, turnstiles |
| Network | Firewalls |
| Hardware | Memory management |
| Operating system | File system permissions |
| Application | Logins, database permissions |
6) Policy vs model
| Concept | Plain meaning |
|---|---|
| Security policy | Rules of what is allowed or forbidden |
| Security model | Formal 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 .
- Subject with label can read object with label only if
- Write-up (Star Property):
- Subject with label can write to object with label only if
dominates .
- Subject with label can write to object with label only if
- 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
| System | Idea | Example |
|---|---|---|
| DAC | Owners can change permissions | Unix/Linux files |
| Break-glass | Override in emergencies | Hospital “emergency access” |
| MAC (general) | Central labels + policy | Military 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.