BIT303 ยท 2081 ยท 10 marks
Define subjects, objects and access rights in access control with suitable examples. How role based access control is different from attribute based access control?
Define subjects, objects and access rights in access control with suitable examples. How role based access control is different from attribute based access control?[10]
Quick answer
Access control is a security mechanism that regulates who can use resources in a computing environment. It determines which users (or processes) are allowed to perform which operations on which resources. The three fundamental components of any access control model are: Subjects, Objects, and Access Rights.
Access Control: Subjects, Objects, Access Rights, RBAC vs ABAC
Note: No specific curriculum notes were found for this topic. The following answer is based on standard, correct Computer Science / Information Security principles as taught in BSc CSIT Operating Systems and Information Security courses.
Part 1: Subjects, Objects, and Access Rights in Access Control
1.1 Access Control - Brief Introduction
1.2 Subjects
A subject is an active entity that requests access to resources or data. Subjects initiate actions and can cause information to flow among objects or change the system state.
Characteristics:
- Subjects are always the initiators of an access request.
- A subject can be a user, a process, or a program acting on behalf of a user.
Examples:
| Subject | Description |
|---|---|
A logged-in user (e.g., alice) | Requests to read a file |
| A running process (e.g., a web server process) | Requests to open a socket |
| An application program | Requests to write to a database |
| An OS daemon | Requests to access hardware resources |
Example: When a student logs into a university portal and tries to view their marks, the student (user) is the subject.
1.3 Objects
An object is a passive entity that contains or receives information. Objects are the resources that subjects want to access.
Characteristics:
- Objects do not initiate actions; they are acted upon.
- Objects can be data containers, devices, or services.
Examples:
| Object | Description |
|---|---|
| Files and directories | A text file, a folder |
| Database records | A row in a student table |
| Hardware devices | Printer, disk drive |
| Memory segments | A shared memory block |
| Network resources | A socket, a port |
| Programs/executables | A compiled binary |
Example: In the same university portal scenario, the marks database record is the object being accessed.
1.4 Access Rights
Access rights (also called permissions or privileges) define the type of operations a subject is allowed to perform on an object. They form the link between subjects and objects.
Common Access Rights:
| Access Right | Meaning |
|---|---|
| Read (R) | Subject can view/read the object |
| Write (W) | Subject can modify the object |
| Execute (X) | Subject can run the object as a program |
| Delete (D) | Subject can remove the object |
| Create (C) | Subject can create new objects |
| Append (A) | Subject can add data without modifying existing data |
| Own | Subject has full control and can grant rights to others |
Access Control Matrix Example:
| File1.txt | Database | Printer | |
|---|---|---|---|
| Alice (Admin) | Read, Write, Delete | Read, Write | |
| Bob (Student) | Read | Read | -- |
| Process P1 | Read, Execute | -- |
Example: Alice has Read and Write rights on
File1.txt, meaning she can open and modify it. Bob has only Read right, so he can view but not change the file.
Part 2: Role-Based Access Control (RBAC) vs Attribute-Based Access Control (ABAC)
2.1 Role-Based Access Control (RBAC)
In RBAC, access decisions are based on the roles assigned to users. A role is a collection of permissions associated with a job function. Users are assigned roles, and roles are assigned permissions.
Key Concepts:
- User --> Role --> Permission (three-tier model)
- Roles represent job functions (e.g., Doctor, Nurse, Manager)
- A user can have multiple roles
- Permissions are attached to roles, not directly to users
Example:
Role: "Doctor"
Permissions: Read patient records, Write prescriptions, View lab results
Role: "Receptionist"
Permissions: Read patient name, Schedule appointments
User: Dr. Smith --> Assigned Role: Doctor
User: Mary --> Assigned Role: Receptionist
Dr. Smith can read patient records because the Doctor role has that permission, not because of any personal attribute.
2.2 Attribute-Based Access Control (ABAC)
In ABAC, access decisions are based on attributes of the subject, object, environment, and the action being performed. It uses policies that evaluate combinations of attributes.
Key Concepts:
- Uses attributes (key-value pairs) of:
- Subject attributes: role, department, clearance level, age
- Object attributes: classification, owner, sensitivity
- Environment attributes: time of day, location, IP address
- Action attributes: read, write, delete
- Policies are written as logical rules combining these attributes
Example:
Policy: "Allow access IF
subject.department == 'Cardiology'
AND object.type == 'PatientRecord'
AND object.ward == 'Cardiology'
AND environment.time BETWEEN 08:00 AND 20:00"
A doctor in Cardiology can access Cardiology patient records only during working hours.
2.3 Key Differences: RBAC vs ABAC
| Feature | RBAC | ABAC |
|---|---|---|
| Basis of Decision | User's assigned role | Combination of attributes (subject, object, environment) |
| Granularity | Coarse-grained (role level) | Fine-grained (attribute level) |
| Flexibility | Less flexible; roles must be predefined | Highly flexible; policies can be dynamic |
| Scalability | Can suffer from "role explosion" in large systems | Scales well without creating many roles |
| Policy Expression | Simple (user has role, role has permission) | Complex (boolean rules over many attributes) |
| Administration | Easy once roles are defined, adding a user means assigning a role | Harder, policies must be written, tested and maintained |
| Context Awareness | None, a role holds the same permissions at all times and places | Full, time, location, device and risk level can all be used |
| Performance | Fast, the check is a simple lookup | Slower, every request evaluates a policy |
| Standard | NIST RBAC model | XACML, ABAC policy languages |
| Best Suited For | Organisations with stable, well defined job functions | Dynamic environments needing fine grained, situation dependent control |
Conclusion
Access control rests on three elements: the subject is the active entity that requests access (a user, a process or a device acting on a user's behalf), the object is the passive resource being protected (a file, a table, a printer or a record), and the access right is the operation the subject is permitted to perform on that object (read, write, execute, delete or own). The reference monitor consults the access control policy on every request and permits it only if the triple (subject, object, right) is authorised.
RBAC and ABAC then differ in how that triple is decided. RBAC inserts a role between the user and the permission, so a user is granted a role and the role carries the permissions, which is simple to administer and audit but static. ABAC makes the decision at request time by evaluating a rule over the attributes of the subject, the object, the action and the environment, which gives fine grained and context aware control at the cost of more complex policy management. Many real systems combine the two, using roles as one of the attributes that an ABAC policy tests.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.