2081 3

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]

Information SecurityChapter 6: Authentication and Access ControlSubjects, objects and access rights

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:

SubjectDescription
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 programRequests to write to a database
An OS daemonRequests 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:

ObjectDescription
Files and directoriesA text file, a folder
Database recordsA row in a student table
Hardware devicesPrinter, disk drive
Memory segmentsA shared memory block
Network resourcesA socket, a port
Programs/executablesA 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 RightMeaning
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
OwnSubject has full control and can grant rights to others

Access Control Matrix Example:

File1.txtDatabasePrinter
Alice (Admin)Read, Write, DeleteRead, WritePrint
Bob (Student)ReadRead--
Process P1Read, Execute--Print

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

FeatureRBACABAC
Basis of DecisionUser's assigned roleCombination of attributes (subject, object, environment)
GranularityCoarse-grained (role level)Fine-grained (attribute level)
FlexibilityLess flexible; roles must be predefinedHighly flexible; policies can be dynamic
ScalabilityCan suffer from "role explosion" in large systemsScales well without creating many roles
Policy ExpressionSimple (user has role, role has permission)Complex (boolean rules over many attributes)
AdministrationEasy once roles are defined, adding a user means assigning a roleHarder, policies must be written, tested and maintained
Context AwarenessNone, a role holds the same permissions at all times and placesFull, time, location, device and risk level can all be used
PerformanceFast, the check is a simple lookupSlower, every request evaluates a policy
StandardNIST RBAC modelXACML, ABAC policy languages
Best Suited ForOrganisations with stable, well defined job functionsDynamic 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.