Skip to content
Get App

Lecture 20 Chapter 03 section 3.5 Remote user Authentication

Lecture on remote user authentication: challenge-response protocols defending against eavesdropping and replay attacks, covering password, token, and biometric variants.

Key Takeaways

  • Remote authentication needs challenge-response to resist eavesdropping and replay attacks.
  • Random nonces ensure every login response is unique, so captured responses cannot be reused.
  • Sending hashes or responses instead of raw passwords keeps stored credentials secure.
  • Dynamic tokens and dynamic biometric challenges offer stronger replay resistance than static methods.

What the video covers

  • Remote user authentication occurs over a network, unlike local authentication such as an ATM card used physically at the device.
  • Remote authentication is vulnerable to eavesdropping, which can expose passwords or authentication data.
  • Transmitted responses can be captured and replayed later in a replay attack to gain unauthorized access.
  • The main defense is the challenge-response protocol: the user sends an ID, the server replies with a random nonce and hash/response functions.
  • The client computes a response from the nonce and its authenticator (password, token, or biometric); the server verifies it against its stored copy.
  • A fresh random nonce per login makes each response unique, preventing replay attacks.
  • In password challenge-response, neither the password nor its hash is transmitted, and hashing is irreversible, protecting stored credentials.
  • Token protocols use one-time passcodes (OTP); dynamic tokens must stay time-synchronized with the host, while static passcodes need stronger protection.
  • Static biometrics (fingerprint, face, iris, hand geometry) are encrypted with the template and device ID before transmission; dynamic biometrics (voice, handwriting) rely on random behavioral challenges such as reading or typing specified text.
  • Biometric verification compares the captured response to stored templates, and active biometric challenges provide freshness against replay.

Answers

Questions about this video

What is the main defense against replay attacks in remote authentication?

The lecturer explains that the challenge-response protocol is the main defense. Because the server sends a fresh random nonce for each login, the client's response is unique every time, so a captured response cannot be replayed successfully.

Why is the password not sent over the network in the challenge-response protocol?

The client never transmits the password or its hash directly. Instead, it uses the password and the server's nonce to compute a response, and since hashing is irreversible, the stored password stays protected.

How do static and dynamic biometric protocols differ in this lecture?

Static biometrics such as fingerprints, faces, and irises are encrypted with the template and device ID before transmission. Dynamic biometrics such as voice or handwriting use random behavioral challenges, like asking the user to say or type a specific text, to ensure freshness.

Full Transcript — Download SRT & Markdown

00:07
Speaker A
In the name of God, welcome to the fifth lecture, or the fifth section of the third chapter, "Remote User Authentication." Alright, what does remote user authentication mean? For remote user authentication, authentication for the user can be on a
00:25
Speaker A
local device or over the network. We will now discuss if authentication happens over the network. What is local ? Like an ATM card, an ATM next to me.
00:34
Speaker A
And I am physically present next to the ATM. Therefore, what is it? Local authentication. My computer is local authentication. Well, what if I want to authenticate to a university website, for example? I want to authenticate for electronic payment, for example. Okay.
00:45
Speaker A
In this case, we have what is called remote user authentication. He says remote user authentication is basically built on what? On the challenge-response idea. Okay. Remote user authentication, we said. We have local, where you are physically present . Or remote, where it will be via the
01:00
Speaker A
network. The problem with remote authentication is that I might have eavesdropping. Consequently, someone could know my password. Or know the authentication data. And what was transmitted will also be exposed to a replay attack. Meaning someone got hold of this data. They take the response
01:18
Speaker A
itself. They replay or resend it at a later time. And thus, they might obtain additional data. Well, the main defense , we said, is the challenge-response protocol. Let's assume we have the following form. Of course, this is common to all. Remote. The user sends
01:35
Speaker A
their identity or user ID to whom? To the host. Saying, "I am Ahmed" or "I am me." Okay. What does the server reply with? It tells him, "Okay, here is the random nonce." Okay. The random number I generated for you is R. You need to
01:50
Speaker A
encrypt it for me. But only this time. Next time, we will have a new random number. Okay. So he goes and replies with his response. He says, "I have used my authenticator." Whether it was a password. Whether it was biometric.
02:03
Speaker A
Whether it was, that is, an OTP. Okay. I took it with your password. I generated the response using a specific function. He will reply to me based on the data I sent him. He tells me if you are right or wrong. Okay. Are you right
02:20
Speaker A
or...Of course, my authenticator will be stored where? It will be stored on the server. Just so things are clear.
02:27
Speaker A
The authenticator will have a copy of it with me on the server. And a second copy exists with whom? With the client, okay. Well, he asks here, why do I use a random challenge if the login is different? Meaning every attempt to log
02:42
Speaker A
in to the system will be different to protect it from whom? From the replay attack. If it were the same, the attacker would take the data returned from me, my response in the first instance. He would replay it the second
02:54
Speaker A
time. He would be able to log in to whom? To the server. And this I want to prevent, so I use a random challenge.
03:00
Speaker A
Well, he says the response combines the challenge, which is the R, with the Auth, whether it was a password, token, or biometric. And he will use one of the encryption algorithms for the encryption process. Okay. Let's say we
03:13
Speaker A
have the user who sent the U. Which is, I sent him the user ID. What does the server reply with in the challenge-response? He replies: Use this R, and use this hash function, to hash your password, and use. Use this
03:29
Speaker A
function F, to generate the response for me. All right. The user sends his ID. The server replies to him with the nonce, which is a random number. And here is the hash function to use, and here are the response functions. All
03:44
Speaker A
right. So, what does he do? He uses the nonce he received, and the nonce received is R-dash. And he uses his password stored with him, and hashes it . The two together, he uses them to generate the response for me. He sends
04:00
Speaker A
it to the server. The server, based on the data it has, says: "Well, the user is U, and his password was 123, for example." So it takes the password, hashes it using what is stored on the server, with the nonce it previously
04:15
Speaker A
sent to the user. And it compares the response. Are the two responses the same or not? They are the same, great; if not, it rejects. Everything is clear like that. This PU is the user's password stored where? On the server.
04:31
Speaker A
Right, it is his password that is stored. The original R-dash equals this R. However, this R-dash is the R that the user received, because it might be tampered with on the way. And this R is the original R that was generated on
04:49
Speaker A
the server, okay. Now, password protocol security benefits and password disclosure. It says it is protected because. Why do I not send you the password? I say, take this hash function, you will perform the hashing process for the password. Consequently,
05:04
Speaker A
you do not send the password. And so I am, and also the hashing is irreversible. Therefore, I always maintain the stored password. Hash interception, if someone managed to do the hash interception, it says it is protected. Why? Because each password
05:23
Speaker A
is transmitted. I do not send you the password, or the hash of the password.
05:28
Speaker A
I send you the full response generated using the hash and R. Thus, I am also protecting you against replay attacks; it says every time it is protected against them. Why? Because every time, I send you a fresh random number.
05:40
Speaker A
Consequently, the response is unique every time. So, neither password nor its hash is transmitted. In the challenge case, I do not send the password, nor do I send. The hash, and thus it is always kept and secured. Now
05:57
Speaker A
here it says, whether it is using the password, I will send the first time the hash of the password. Or using the token, I will hash the token. And if it is a case of static biometrics, I will
06:10
Speaker A
hash or encrypt the static biometric I have. In the case that it is dynamic biometrics, I will hash the dynamic one I have. All right, hash the dynamic one . Naturally, "dynamic" applies when we are talking about voice or writing. "
06:26
Speaker A
Static" applies when we are talking about physical traits, like an eye scan , face scan, or others. Okay. In the case of a password, I will send the client that...It will send its password . In the case of a token, it will use a
06:41
Speaker A
password to unlock the token's pass-code, okay. The client sends the pass-code it has, which is, for example , an OTP. For static biometrics, I will encrypt the static biometric, the device ID, and the template. I will encrypt it and send it over the network
06:56
Speaker A
. Such as an eye scan, fingerprint, or others. Or dynamic biometrics, I will ask you to say something and send it to me, like a voice print. Okay. For the token protocol, we have a user ID, as every host has an ID. The host will
07:13
Speaker A
send me the user ID via the nonce I received, and the hash function for the password and response. Function, exactly. The user unlocks the token.
07:22
Speaker A
The password of the token provides a pass-code, okay. User, token, host, okay. We have discussed these quickly.
07:29
Speaker A
The pass-code is fixed, okay. And therefore, a one-time OTP. The host side will store the hash of my pass-code. And send it to me. This is for the static case. In the dynamic case, it will hash the OTP. Regarding
07:45
Speaker A
time between logins, the static remains as it is. If I perform a second or third login. It will reuse the same number. However, the nonce number will differ. Whereas for the dynamic token, it will differ. It will change every
07:57
Speaker A
time. Security needs strong protection. In the static case, what do I need to do? In the static case, I need to provide stronger protection for the static data we have. Because it could potentially be discovered. While with the dynamic token, it changes every
08:15
Speaker A
time. Thus, it will be immune to replay attacks. Dynamic tokens must stay synchronized. Why must we always be synchronized? Because time is very important in the process of generating the token. Therefore, they must always be synchronous. Okay, static biometric
08:34
Speaker A
protocols, like fingerprints and faces. Like a fingerprint. Like a face, like an iris. Like hand geometry. The user ID will be the host ID. The host will send me the random encryption function.
08:49
Speaker A
What will the biometric device do? It will take the encryption function. It will take the face print, encrypt it, and send it to whom? To the server; it sent it. How is that? It is with the nonce, the encrypted device ID, or my
09:03
Speaker A
device ID, and the encrypted template. The host will decrypt it and perform re-checks. The first check: it wants to ensure the nonce is the one it sent.
09:13
Speaker A
Biometric: it will ensure there is similarity between the biometric the device captured and the one stored with me, okay. And the device check: it ensures the device ID is actually the one stored for it, okay. In the static
09:31
Speaker A
protocol, it will send the user ID. The server will respond with the nonce and the encryption function. I will do it, the device will capture a face, fingerprint, iris, or palm print, okay.
09:44
Speaker A
It will encrypt it using the encryption function sent by the device, okay. Then the device will encrypt the nonce with the device ID and the encrypted template, or the template captured by the device. And it will send them to
09:57
Speaker A
whom? To the server. The server will decrypt them and perform the matching for the R, it will match. For the biometric. And it will match the device . If all three match. That means the biometric protocol has matched. And
10:11
Speaker A
tell it it's okay. In the dynamic biometric protocol, it says no. I will send you the static one, it's always fixed. Okay, it says no. I will ask you to record a call or conversation of a specific text I send you. Okay. Or I
10:27
Speaker A
ask you to type a specific challenge on the keyboard. Or I ask you to write a specific text by hand. After that, you encrypt it and send it to me.
10:34
Speaker A
Consequently, the challenge is different every time. The sent fingerprint file will be different. And thus, our encryption process becomes clear. The verification will also go through three things. The R with the R.
10:46
Speaker A
And the X with the X. And the user with the user. And the encryption for the voice print as well. Alright. Between the three or four types of passwords we have. The challenge for me is always random. Okay. The response for us will
11:01
Speaker A
be the response function. It will take from the nonce. It will take the password hash from me. It will generate for me who. Who will generate, who will generate the text? It will send it to me. What will the server do? It will
11:14
Speaker A
perform verification, but for whom? For the password hash. Okay, in the case of a token that I send, I will send you a random number, you. You will process the random number, you will send me the device ID. You will hash it, okay. The
11:24
Speaker A
token you have or the device, you will hash it and send it to me. We will do the token pass code. In the case of static biometric, I will send you the random number. And I will send you the
11:33
Speaker A
encrypted template, which is the encrypted face print. You will check the face print with whom? With the device ID. As a server, I will put a dynamic hash, I will send you R with sequence X. For example, I want you to
11:45
Speaker A
encrypt this text for me, okay. Or speak it to me with your voice. You will perform, you will generate a biometric signal. Based on the sequences I sent you, you will encrypt it with the R and send it to me.
11:55
Speaker A
Consequently, I will perform biometric verification. I will perform verification for the three or four challenges. They match in the same pattern for us. We always have a fresh random challenge. And we have a response that I will compute.
12:08
Speaker A
Consequently, the host will perform verification for it. Okay. Remote authentication for us. Remote authentication will face stronger risks than local. Therefore, I need challenge-response defense. Okay. The random always prevents replay attacks.
12:25
Speaker A
Okay. It says always do not send the password. Remote does not send the password or its hash. The token uses a static or one-time pass code. Okay.
12:35
Speaker A
Biometrics can depend on biometrics. It relies on what is called template matching. I store your face print or fingerprint in my database on the server. You capture it and send it over to me. Consequently, I perform a match
12:47
Speaker A
between them. Active biometrics always rely on random behavior challenges. Sometimes I send you something. Every time, I send you text for you to say aloud. And thus, a random behavior challenge occurs. Protecting biometric data during the transmission process.
12:59
Speaker A
Thank you very much.
Topics:remote user authenticationchallenge-responsereplay attacknonceOTPbiometric authenticationeavesdroppingpassword hashingtoken authenticationnetwork security

Get More with the SozAI App

Transcribe recordings, audio files, and YouTube videos — with AI summaries and speaker detection. 30 minutes free.

Or transcribe another YouTube video here →