Authentication Methods and Security Policies: MFA, Replay Defence and a Worked Access Decision

Separate passwords, OTPs, biometrics and device keys, then trace a nonce-based HMAC check, a risk score and a role-based decision in one mobile app.

KnowledgeGate Team

Exam prep & CS education

Updated 4 Dec 20266 min read
Authentication Methods and Security Policies: MFA, Replay Defence and a Worked Access Decision

Passwords, OTPs, biometrics, device keys and access policies look related but answer different questions. Factor choice, replay defence, risk calculation and authorisation interact in the access decision. See UGC NET CS Exam Preparation.

Authentication Is One Decision in a Longer Identity Chain

Identification claims an identity. Enrolment binds evidence and authenticators to it. Authentication tests the current claimant. Authorisation decides whether that identity may perform the requested action. Auditing records what happened. Session management follows because a correct login at 09:00 cannot justify an unlimited session.

System Security Fundamentals owns the exam portal's CIA goals, asset inventory, multiplicative inherent/residual risk and recovery targets. The mobile result-moderation case here reuses that domain but narrows the analysis to factor independence, nonce-based replay defence, additive step-up thresholds and an exact role-object-action check. Account reviewer42 uses registered phone D17, is assigned to centre C12 and works on batch R8. A Reviewer may read and approve R8 for C12. Only a separate Controller may publish it.

This exposes the first trap: valid authentication is not permission. Even after reviewer42 proves control of D17, publish_batch_R8 must be denied because the Reviewer role cannot publish.

Compare Knowledge, Possession and Inherence Factors Properly

A password or PIN is something known. Registered phone D17, an authenticator app or a device-bound cryptographic key is something possessed. A fingerprint or face characteristic is something inherent. Password plus security question remains one factor class. Two steps are not automatically independent factors.

Compare their failure modes:

  • Passwords can be reused or phished.

  • One-time codes can be phished, intercepted or stolen through social engineering.

  • Push approval can suffer approval fatigue.

  • A device-bound key can resist replay when it answers a fresh challenge.

  • A biometric normally unlocks a device or key locally, not a reusable server password.

Biometric errors also need a denominator. In a classroom test with 100 genuine attempts and 4 false rejections, FRR = 4/100 = 4%. With 200 impostor attempts and 2 false acceptances, FAR = 2/200 = 1%. These describe only this test set and threshold, not universal biometric performance.

A Security Policy Turns Risk and Business Rules into Repeatable Decisions

A security policy states a subject, resource, action, conditions and decision. “Reviewers may approve only assigned-centre batches” is policy; access-control checks enforce it. “Require a fresh device challenge for elevated risk” is policy; HMAC or a digital signature answers the challenge.

The app needs policies for authenticator enrolment and recovery, factors by action, risk step-up, role and centre scope, session lifetime and reauthentication, failed attempts, lost-device revocation, and audit review. Recovery must not become a weak MFA bypass.

Good policy denies unrecognised or unauthorised requests by default, gives least privilege, separates Reviewer and Controller duties, and keeps an accountable trail. It defines failure handling instead of merely demanding “strong security”.

Worked Challenge-Response: Authenticate D17 Without Reusing a Captured Answer

Reviewer42 has passed the password check, but policy requires a possession-factor step-up through D17. D17 holds symmetric key 4b4741492d4431372d636c617373726f6f6d2d6b6579, representing KGAI-D17-classroom-key. The key is public classroom data, not a production secret; production keys require secure generation and storage.

The server sends nonce 4A91. D17 forms exact ASCII message reviewer42|D17|nonce=4A91|action=approve_batch_R8, calculates HMAC-SHA-256 and returns 585c9e9ed64ac502d2ae3e8697724146e2e1f636503d9b192b33d83510eea07e. The server calculates the same value, compares it timing-safely, marks 4A91 used and accepts proof of D17 key control. Do not derive SHA-256 by hand. Notice what the response binds: identity, device, nonce and action.

With fresh nonce C208, the message is reviewer42|D17|nonce=C208|action=approve_batch_R8, whose expected HMAC is fa729118a4e327d7c4ca7802683db2a460b66182d3eb62b59f49b77fa7910557. A captured 585c...a07e does not match, so replay fails. Reusing 4A91 must also fail. TLS remains necessary for the wider channel and data.

A five-step sequence diagram shows D17 approving batch R8 with nonce 4A91 and rejecting the captured response when a new nonce C208 is issued.

Apply the Risk Policy, Then Make the Separate Authorisation Check

This classroom policy adds 30 for a new device, 25 for a new city, 10 for a public or unmanaged network, 20 after 3 failed attempts within 10 minutes, and 35 for approve_batch_R8. Scores 0-29 use required base authentication, 30-59 require fresh step-up, and 60+ are blocked for review. These teaching values are not a universal standard or breach probability.

Calculate three decisions:

  • Known D17, known city, public Wi-Fi and approval: 0 + 0 + 10 + 0 + 35 = 45. Require the fresh nonce step-up.

  • Add 3 failed attempts: 45 + 20 = 65. Block and review.

  • New device, new city, public Wi-Fi and approval: 30 + 25 + 10 + 0 + 35 = 100. Block even if the password is correct.

After the score-45 challenge succeeds, confirm reviewer42 is active, role is Reviewer, R8 belongs to C12, and action is approve. Allow and log it. Deny publish_batch_R8 because only the Controller may publish. Record identity, device, action, object, score 45, decision, time and policy version, never the password, raw biometric or key.

A decision flow scores request R8 at 45 for a fresh nonce challenge, allows Reviewer at C12 to approve, blocks 65, and denies publish.

Mobile and Wireless Context Changes Threats, Not the Core Questions

Public Wi-Fi does not guarantee compromise, but mobile use changes threats. Rogue access points, interception, phishing overlays, stolen or unlocked phones, malicious apps, SIM-swap or message interception, notification fatigue, token leakage and weak recovery call for server-authenticated encrypted transport, origin checking, device-bound keys, scoped sessions, transaction-bound prompts, revocation, rate controls and recovery verification.

Keep layers separate. TLS protects data in transit and authenticates the server, but cannot decide whether reviewer42 may approve R8. TCP or UDP behaviour cannot replace application authentication or policy; transport choice and application authorisation solve different problems.

If D17 is lost, revoke its registered key, terminate its sessions, verify recovery before enrolling replacement D29, and alert reviewer42. Changing only the account password does not necessarily invalidate every device-bound session or key.

Authentication Traps and Four Rapid Checks

OTP means one-time value, not phishing immunity. A biometric match is not authorisation. Encryption protects confidentiality, while authentication tests identity or authenticator control. MFA cannot repair an over-broad Reviewer role. A correct password cannot override a score-65 block. A nonce must be fresh and single-use; encrypting a reusable response does not itself stop replay.

Exam questions can ask you to classify factors, detect fake MFA, separate authentication from authorisation and auditing, trace a nonce exchange, calculate risk, apply role and object scope, or match a threat to a control. For the wider syllabus boundary, use UGC NET Computer Science Syllabus Areas: Paper 2; marks, weightage and pattern belong to the official notification.

Four rapid checks: (1) Is password plus security question MFA? No, both are knowledge factors. (2) Does the captured 4A91 HMAC authenticate nonce C208? No, the nonce changes the message and expected tag. (3) What happens at score 45? Fresh step-up is required. (4) May an authenticated Reviewer publish R8? No, only a Controller has that permission.

Short Version and the Next Study Action

Recall the chain: claim identity, authenticate suitably, apply policy, authorise the exact action and object, audit safely, then expire, recover and revoke deliberately. Authentication proves enough about the claimant for this request, while security policy decides what evidence and conditions are acceptable.

For the broader Computer Science course route, use NTA-UGC-NET Paper - 2. For a separate practice route, use the NTA UGC NET Paper - 2 Test Series.

Finally, redraw both diagrams. Change the public-network weight from 10 to 5: 0 + 0 + 5 + 0 + 35 = 40. The unchanged 30-59 band still requires step-up, and authorisation must still verify Reviewer, C12 and R8.