Authentication & Access Control MCQs for NSCT
Authentication proves who a user is; access control (authorisation) then decides what that user may do. This topic covers passwords, multi-factor authentication (MFA) and the access control models DAC, MAC, RBAC and ABAC. It is the eighth topic in the Cyber Security area, which carries 5% of the NSCT according to HEC's Areas of Competencies. That area had 47.2% accuracy in 2026, per the HEC NSCT report and APP.
The definitions below follow Stallings and Brown, Computer Security: Principles and Practice (chapters on user authentication and access control).
Passwords and MFA
Stallings lists four means of authentication:
| Factor | Examples |
|---|---|
| Something you know | Password, PIN, security answer |
| Something you possess | Smart card, hardware token, phone with an authenticator app |
| Something you are (static biometric) | Fingerprint, face, iris |
| Something you do (dynamic biometric) | Voice, typing rhythm, signature |
MFA combines factors from different categories. A password plus a security question is still single-factor.
Password strength. For a random password, entropy = length × log2(alphabet size). Eight characters from 62 symbols give 8 × log2 62 ≈ 47.6 bits, or 62^8 ≈ 2.18 × 10^14 guesses. At 10^10 guesses per second that takes about 6 hours, which is why stored passwords need a salt (a random per-user value hashed with the password) and a deliberately slow hash such as bcrypt, scrypt, Argon2 or PBKDF2. With salts, two users with the same password get different hashes. Without them, the hashes match and one crack exposes both.
TOTP (RFC 6238) computes an HMAC of a shared secret and the time step T = floor(Unix time / 30). At Unix time 1,500,000,000, T = 50,000,000. Servers usually accept one step either side to allow for clock drift.
Exam angle: count the categories, not the number of steps.
DAC
In discretionary access control, the owner of a resource decides who else may access it. Unix permissions are DAC: chmod 640 notes.txt gives the owner read and write, the group read, and others nothing.
The access control matrix has subjects as rows and objects as columns. Stored by column it gives an access control list (ACL) per object; stored by row it gives a capability list per subject.
Exam angle: DAC's weakness is the Trojan horse problem. Any program you run acts with your rights and can copy your files anywhere.
MAC models
In mandatory access control, the system enforces a central policy using security labels, and owners cannot override it. The two classic models are mirror images:
| Model | Protects | Read rule | Write rule |
|---|---|---|---|
| Bell-LaPadula (BLP) | Confidentiality | No read up (simple security property) | No write down (*-property) |
| Biba | Integrity | No read down | No write up |
Labels can include categories. A subject dominates an object when its level is at least as high and its category set contains the object's. A subject at (Secret, {Army}) may read (Confidential, {Army}) but not (Confidential, {Navy}) or (Secret, {Army, Navy}).
Textbooks differ slightly on the *-property: Stallings allows writing up to higher levels, while the "strong star property" in some texts allows writing only at the subject's own level. When a question gives no detail, use the standard "no write down" rule.
Exam angle: for any BLP or Biba question, first decide whether the model protects confidentiality or integrity, then apply the two rules.
RBAC
Role-based access control assigns permissions to roles and users to roles. When a nurse joins, you give her the Nurse role instead of editing many files. Two features appear in questions:
- Role hierarchies: a senior role inherits a junior role's permissions.
- Separation of duty: static SoD stops one user holding conflicting roles (Create Payment and Approve Payment); dynamic SoD stops them being active in the same session.
ABAC (attribute-based access control) goes further. It evaluates rules over subject, object and environment attributes, such as "doctors may read records of patients in their own ward during their shift". Plain RBAC would need a role for every ward and shift, a problem called role explosion.
Exam angle: "based on job function" means RBAC; "based on time, location or other attributes" means ABAC.
Common traps
- Treating authentication and authorisation as the same step.
- Counting password plus PIN, or password plus security question, as MFA.
- Swapping the BLP and Biba rules. BLP: no read up, no write down. Biba: the reverse.
- Forgetting categories in BLP: a higher level alone is not enough to read.
- Thinking a salt must be secret. It is stored in plain form; its job is to make every hash unique.
- Mixing up ACLs (per object, a column) with capability lists (per subject, a row).
Worked examples
1. Understanding. A system lets a file's owner decide who may read it, and the owner can pass that right on. Which model is this? Answer: DAC. Access is at the owner's discretion. Under MAC the system's labels decide, and the owner could not override them.
2. Application. A PIN has 6 random digits and the app allows 3 tries per hour. On average, how many days does an online attacker need? Answer: about 6,944 days (about 19 years). There are 10^6 PINs; the average search covers half, 500,000 guesses. At 3 × 24 = 72 guesses per day, 500,000 / 72 ≈ 6,944 days.
3. Analysis. Under Biba, a High-integrity payroll process reads a Low-integrity file uploaded by a visitor, then updates salary records. Which rule is broken, and why does it matter? Answer: no read down. Reading Low data could let untrusted input corrupt the process's decisions, which would then flow into High-integrity records. Biba blocks that read so contamination cannot climb.
Practise
The quiz below has 100 questions on this topic, filterable by tier and difficulty.
Practise: 100 questions
FAQs
What is the difference between DAC, MAC and RBAC?
In DAC the owner of a resource decides who gets access. In MAC the system enforces central rules using security labels, and nobody can override them. In RBAC permissions belong to roles, and users get them through role membership. RBAC is common in organisations because access follows job function.
What are the Bell-LaPadula rules?
Bell-LaPadula protects confidentiality with two rules. The simple security property says no read up: a subject cannot read an object at a higher level. The *-property says no write down: a subject cannot write to an object at a lower level, so secrets cannot leak downward.
Is SMS OTP real two-factor authentication?
Yes, in category terms: a password is something you know, and the phone receiving the SMS is something you have. However, SMS codes can be intercepted through SIM swapping, so NIST treats SMS as a restricted method. Authenticator apps and hardware keys are stronger second factors.
Why do we add a salt to password hashes?
A salt is a random value stored with each user's hash. It makes identical passwords give different hashes, hides password reuse, and makes precomputed rainbow tables useless. It does not slow down guessing a single password, so it should be combined with a slow hash function.
Next step
Continue with Secure Software Development MCQs. Revise the related ideas in Security Principles and Operating System Security. Browse all topics on the Cyber Security hub, then take an NSCT mock test.