6 Authentication And Access Control

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.

Authentication and Access Control: notes

Authentication systems and components

Authentication is the process of checking that a user, device or message is really what it claims to be. It is different from authorisation, which decides what an authenticated user may do.

A user can prove identity with:

  • Something you know: a password or PIN.
  • Something you have: a smart card, phone or hardware token.
  • Something you are: a fingerprint, face or iris.
  • Somewhere you are: a location or network address (a weaker extra factor).

Components of an authentication system:

  • The user (claimant) who wants access.
  • The identifier, such as a user name.
  • The authentication information, such as a password or biometric template.
  • The authenticator, the software that checks the proof.
  • The credential store, a protected database of password hashes or templates.
  • The access control system, which acts on the result.

Common issues: stolen or weak passwords, reuse of passwords, replay of captured logins, fake login pages, lost tokens and insider misuse.

Challenge-response authentication

In challenge-response the secret is never sent over the network. The server sends a fresh random value, the challenge. The user returns a response computed from the challenge and the secret.

  • The client asks to log in.
  • The server sends a random number $R$ (a nonce).
  • The client computes $\text{resp} = H(\text{secret} ,|, R)$, or encrypts $R$ with a key, and sends it.
  • The server computes the same value and compares.

Because $R$ changes each time, an old captured response is useless. This stops replay attacks. Smart cards and many token systems work this way. A weak point remains if the secret is a guessable password, since an attacker who records a pair may guess the password offline.

Password-based authentication

The user types an ID and a password. The system stores not the password but a salted hash of it.

  • A salt is a random value stored with the hash. Two users with the same password then have different hashes, which defeats ready-made hash tables.
  • A slow hash (such as bcrypt or PBKDF2) makes each guess expensive.

Good practice: use long passwords, since length matters more than odd symbols. Block common passwords and limit failed attempts. Never show or email passwords. Allow a reset only after a safe check.

Size of the search space: a random 8 character password from 95 printable characters gives $95^8 \approx 6.6\times10^{15}$ choices. A 4 digit PIN gives only $10^4$.

Weak points: guessing, reuse across sites, shoulder surfing, phishing and keyloggers.

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]

Single-factor authentication (typically a password) has several weaknesses that make it insufficient for secure systems. Two-factor authentication addresses these by requiring two independent forms of verification before granting access. Factor Type Example ----------------------- Something you k...

Open this answer on its own page →

2080 · 5 marks

Discuss about two factor authentication with an example. [5]

Two-Factor Authentication (2FA) is a security mechanism that requires a user to provide two distinct forms of verification from two different categories before granting access to a system or account. It adds an extra layer of security beyond just a username and password. --- Authentication factor...

Open this answer on its own page →

2079 · 5 marks

Write Short Notes on: a. Phishing Attack b. Two Factor Authentication [5]

Definition: A phishing attack is a type of social engineering attack in which an attacker disguises themselves as a trustworthy entity to trick users into revealing sensitive information such as usernames, passwords, credit card numbers, or other confidential data. How it Works: - The attacker se...

Open this answer on its own page →

Role-based access control

2082 · 5 marks

Differentiate between role based and attribute based access controls. [5]

Note: The reference notes did not contain this topic directly. The following answer is based on standard, correct information from access control theory as taught in security and operating systems courses. --- RBAC grants or restricts access to resources based on the roles assigned to users withi...

Open this answer on its own page →

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 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 RightDescription
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 AFile BPrinter
User1R, WRExecute
User2RR, 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 IssueCore Concern
PrivacyRight to personal data protection
Unauthorized AccessConsent and legality
Intellectual PropertyRespect for ownership
Responsible DisclosureDuty to protect the public
MalwareHarm prevention
Professional ResponsibilityTrust and accountability
Open this answer on its own page →

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 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:

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.

Open this answer on its own page →

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 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.

F1F2F3F4
U1--Read, WriteRead, Write--
U2ReadRead, WriteReadRead
U3----ReadAppend

-- 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

FeatureAccess MatrixACLCapability List
PerspectiveFull 2D tablePer file (column)Per user (row)
Stored withSystem tableEach objectEach subject
AnswersOverviewWho can access file?What can user access?

All three representations encode the same rights, consistent with the given permissions.

Open this answer on its own page →

Dictionary attacks and authentication issues

2081 · 5 marks

How online and offline dictionary attacks are done in password based authentication systems? [5]

Dictionary attacks exploit the fact that users tend to choose weak, predictable passwords. An attacker uses a pre-compiled list of likely passwords (a "dictionary") and systematically tries each one. --- - The attacker directly interacts with the live authentication system (e.g., a login page or ...

Open this answer on its own page →

Access control principles and models

2080 · 5 marks

Explain the different types of access control principles. [5]

Note: The reference notes did not contain this topic directly. The following answer is based on standard Information Security / Operating Systems curriculum as taught in BSc CSIT programs. --- Access control is a security mechanism that regulates who can access resources in a system and what oper...

Open this answer on its own page →

Authentication systems and components

2080 · 5 marks

List some issues for user authentication. What is trust framework? [5]

--- User authentication faces several practical and security-related challenges: 1. Password Management Problems - Users tend to choose weak, easily guessable passwords - Password reuse across multiple systems increases vulnerability - Forgotten passwords lead to insecure reset mechanisms 2. Phis...

Open this answer on its own page →

Attribute-based access control

2079 · 5 marks

What is access control? Explain attribute based access control with example. [5]

--- Access control is a security mechanism that regulates who or what can view, use, or perform operations on resources in a computing environment. It ensures that only authorized users can access specific resources and perform permitted actions. Access control enforces three core principles: - A...

Open this answer on its own page →

Biometric authentication

2079 · 5 marks

Define authentication. How Biometric information can be used for authentication? [5]

Authentication is the process of verifying the identity of a user, system, or entity attempting to gain access to a resource. It is the mechanism by which a system confirms that someone is who they claim to be, typically before granting access to protected resources or services. Authentication an...

Open this answer on its own page →

Challenge-response authentication

0 · 5 marks

Define authentication system with its components. How challenge-response system can be used as an authentication system? [5]

--- An authentication system is a security mechanism that verifies the identity of a user, process, or device before granting access to a system or resource. It ensures that the entity claiming an identity is genuinely who or what it claims to be. --- An authentication system typically consists o...

Open this answer on its own page →