Information Security · Unit 6
Authentication and Access Control
Exam-focused notes for Authentication and Access Control (Information Security, BIT303): what the TU syllabus asks and how it has actually been tested, with 13 solved past questions from this unit.
Authentication and Access Control in short
Authentication proves who a user is. Access control decides what that user may do. Together they guard every system. This chapter covers login methods, their weaknesses and the main access control models.
What this unit covers
- Authentication systems and components
- Challenge-response authentication
- Password-based authentication
- Biometric authentication
- Two-factor authentication
- Dictionary attacks and authentication issues
- Access control principles and models
- Role-based access control
- Attribute-based access control
- Subjects, objects and access rights
Two-factor authentication
2082 · 5 marks
Why do we need two factor authentication? Discuss about security issues for user authentication. [5]
2080 · 5 marks
Discuss about two factor authentication with an example. [5]
2079 · 5 marks
Write Short Notes on: a. Phishing Attack b. Two Factor Authentication [5]
Role-based access control
2082 · 5 marks
Differentiate between role based and attribute based access controls. [5]
Subjects, objects and access rights
2082 · 5 marks
What do you mean by subjects, objects and access rights? Discuss about ethical issues in cyber security. [2.5+2.5]
Show solved answerHide answer
Subjects, Objects, and Access Rights + Ethical Issues in Cyber Security
(a) Subjects, Objects, and Access Rights
Subject
A subject is an active entity that requests access to resources or objects in a system. Subjects are typically users, processes, or programs that initiate actions.
Examples:
- A logged-in user requesting a file
- A running process trying to read memory
- An application accessing a database
Object
An object is a passive entity that contains or receives information, and to which access is controlled.
Examples:
- Files, directories, databases
- Memory segments, printers, network ports
- Records in a database
Access Rights
Access rights (also called permissions or privileges) define the operations that a subject is allowed to perform on an object. They form the basis of access control policies.
Common Access Rights include:
| Access Right | Description |
|---|---|
| Read (R) | Subject can read/view 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 to the object |
Relationship
The relationship among subjects, objects, and access rights is often represented using an Access Control Matrix, where:
- Rows represent subjects
- Columns represent objects
- Cells contain the access rights
Example:
| File A | File B | Printer | |
|---|---|---|---|
| User1 | R, W | R | Execute |
| User2 | R | R, W | - |
(b) Ethical Issues in Cyber Security
Ethics in cyber security refers to the moral principles and standards that guide the behavior of individuals and organizations in the digital environment.
1. Privacy and Surveillance
- Collecting, monitoring, or tracking user data without consent raises serious ethical concerns.
- Organizations must balance security monitoring with the right to individual privacy.
- Example: Employers monitoring employee emails without disclosure.
2. Unauthorized Access (Hacking)
- Accessing systems without permission is both illegal and unethical, even if done with "good intentions" (e.g., grey-hat hacking).
- Ethical hacking (penetration testing) must be done only with explicit authorization.
3. Intellectual Property and Software Piracy
- Copying, distributing, or using software without proper licensing is unethical and illegal.
- Respecting copyrights and licenses is a fundamental ethical obligation.
4. Data Integrity and Honesty
- Manipulating, falsifying, or destroying data is unethical.
- Security professionals must ensure data accuracy and report vulnerabilities honestly.
5. Responsible Disclosure
- When a security researcher discovers a vulnerability, there is an ethical obligation to report it responsibly to the vendor before making it public, giving time for a fix.
- Selling vulnerabilities to malicious actors is highly unethical.
6. Cybercrime and Malware Development
- Creating and distributing malware, ransomware, or viruses to harm others is deeply unethical and criminal.
7. Social Engineering and Deception
- Using deception to manipulate people into revealing confidential information (phishing, pretexting) is unethical.
8. Professional Responsibility
- Security professionals have an ethical duty to protect user data, maintain confidentiality, and act in the public interest.
- Organizations must follow ethical guidelines such as those provided by ACM Code of Ethics or (ISC)2 Code of Ethics.
9. Equity and Access
- Denying access to digital resources based on discrimination is unethical.
- Cyber security measures should not be used to suppress free speech or target marginalized groups.
Summary Table
| Ethical Issue | Core Concern |
|---|---|
| Privacy | Right to personal data protection |
| Unauthorized Access | Consent and legality |
| Intellectual Property | Respect for ownership |
| Responsible Disclosure | Duty to protect the public |
| Malware | Harm prevention |
| Professional Responsibility | Trust and accountability |
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?[10]
Show solved answerHide answer
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
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.
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.
0 · 10 marks
Consider a system having users U1, U2, U3 & files F1, F2 and F3 as F4. User U1 can read and write files F2 and F3. User U2 can read all the files but can perform write operation on F2. The user U3 can perform read operation on F3 and append on file F4. Now prepare access control matrix, access control list and capability list.[10]
Show solved answerHide answer
Access Control Matrix, ACL, and Capability List
Given
Subjects (Users): U1, U2, U3 Objects (Files): F1, F2, F3, F4
Stated permissions:
- U1: read and write on F2 and F3
- U2: read all files (F1, F2, F3, F4); write on F2
- U3: read on F3; append on F4
All permissions fully specified. Nothing missing.
Solution
1. Access Control Matrix
Rows = subjects (users), Columns = objects (files). Each cell holds allowed operations.
| F1 | F2 | F3 | F4 | |
|---|---|---|---|---|
| U1 | -- | Read, Write | Read, Write | -- |
| U2 | Read | Read, Write | Read | Read |
| U3 | -- | -- | Read | Append |
-- denotes no access rights.
2. Access Control List (ACL)
Derived column-wise; each file stores the list of users and their rights.
F1 --> (U2: Read)
F2 --> (U1: Read, Write) --> (U2: Read, Write)
F3 --> (U1: Read, Write) --> (U2: Read) --> (U3: Read)
F4 --> (U2: Read) --> (U3: Append)
ACL is attached to each object (file); convenient for answering "who can access this file?"
3. Capability List
Derived row-wise; each user holds a list (capabilities/tickets) of files with rights.
U1 --> (F2: Read, Write) --> (F3: Read, Write)
U2 --> (F1: Read) --> (F2: Read, Write) --> (F3: Read) --> (F4: Read)
U3 --> (F3: Read) --> (F4: Append)
Capability list is attached to each subject (user); convenient for answering "what can this user access?"
Comparison Summary
| Feature | Access Matrix | ACL | Capability List |
|---|---|---|---|
| Perspective | Full 2D table | Per file (column) | Per user (row) |
| Stored with | System table | Each object | Each subject |
| Answers | Overview | Who can access file? | What can user access? |
All three representations encode the same rights, consistent with the given permissions.
Dictionary attacks and authentication issues
2081 · 5 marks
How online and offline dictionary attacks are done in password based authentication systems? [5]
Access control principles and models
2080 · 5 marks
Explain the different types of access control principles. [5]
Authentication systems and components
2080 · 5 marks
List some issues for user authentication. What is trust framework? [5]
Attribute-based access control
2079 · 5 marks
What is access control? Explain attribute based access control with example. [5]
Biometric authentication
2079 · 5 marks
Define authentication. How Biometric information can be used for authentication? [5]
Challenge-response authentication
0 · 5 marks
Define authentication system with its components. How challenge-response system can be used as an authentication system? [5]
Make Unit 6 stick
Practice BIT303 with flashcards & quizzes