skip to content

Authenticating as Someone Else

Three ways to be accepted as a principal without knowing the password: present a stored derivative, forward someone else's authentication, or hold the signing key. Interviewers ask what each grants.

on this pageshow

explore

questions

13

In an NTLM relay attack, why does the attacker never need the account's password?

level: juniorimportance: must knowfreq 58%

answer

  1. the victim does the arithmetic
  2. two legs, one identity
  3. the challenge comes from the far end
  4. nothing is cracked, nothing is stored
  5. you inherit exactly that account

basics

~20 s

The coerced host computes the proof, not the attacker. The attacker sits between that host and a chosen service, forwards every authentication message unchanged, and the service grants the session to the attacker as that identity.

solid answer

~50 s

Challenge-response authentication proves possession of a secret without ever sending it. In a relay, the operator first provokes a host into authenticating outward to a machine they control - pointing a multifunction device's scan-to-share destination at themselves is a classic way. At the same moment the operator opens a session to a real service, takes the challenge that service issues, hands it to the coerced host, and passes the host's response straight back. Nothing is modified and nothing is stored; the far end verifies the response against the account's real secret and hands the session to the operator's socket. So there is no secret to crack, and a longer password changes nothing. What the operator gains is exactly the coerced account's authorisation on that one service - if that account is a scanner's domain account with write on a single share, that is the entire prize.

go deeper

for a junior

Be ready to say plainly that the coerced host does the computation and the attacker only forwards messages, so no secret is learned and nothing is cracked.

for a middle

Explain the two legs of the exchange and where the challenge originates, and be able to say why password strength and rotation are irrelevant to this technique.

for a senior

Show that you reason about what the relay actually buys: the coerced principal's authorisation on the specific service reached, which turns the technique into a search for a coercible principal that is useful somewhere.

for a principal

Own the argument that secret-centric controls - complexity, rotation, vaulting - do not touch this class at all, and that the money belongs at the services that accept the identity.

## The shape of the technique A relay has two legs and one identity. On one leg, a host is provoked into starting an authentication toward a machine the operator controls. On the other, the operator is simultaneously starting an authentication of their own toward a real service. The operator's only job is to move messages between the two legs, unaltered and in order. At the end, the real service believes it has authenticated the coerced principal, and the session it opens belongs to the operator's socket. ## Why challenge-response makes this possible A password is never transmitted in a challenge-response scheme. The server sends a random challenge; the client returns a value computed from that challenge and a key derived from the account's secret; the server recomputes the same value using its own copy of that key and compares. The design goal is that an observer learns nothing reusable. It succeeds at that goal, and it says nothing at all about *who asked for the challenge*. That is the crack the technique lives in. The operator does not need to compute anything. They need only to be the party that asked the real service for a challenge, and the party that can get a legitimate principal to answer it. The coerced host does the cryptography with key material the operator never sees. ## Coercion: making a host authenticate on cue The technique is called *coerced* relay because the operator does not wait for authentication to happen; they cause it. Anything that makes a host reach out to a named destination and offer its credentials is a route in. A shared multifunction device is a particularly clean example: it is configured with a domain account so it can write scans to a share, it will authenticate to whatever destination its configuration names, and its configuration is usually reachable by anyone on the segment. Point the scan destination at the operator's machine, press the button, and a domain principal authenticates outward on demand. The list of ways to provoke an authentication is open-ended, which matters later: any feature that accepts a path or a location and then goes and fetches it is a potential trigger. ## What you inherit, and what you do not The most common misconception is that a relay is an escalation. It is not. Authentication succeeded as a specific principal, so the operator receives exactly that principal's authorisation on exactly the service they relayed to - no more. Relay to a file server as an account with read on one share and you get read on one share. The technique's value therefore comes from two searches running at once: which principals can be coerced, and which services will accept them for something useful. This is why device accounts are interesting out of proportion to how anyone thinks about them. A scanner's account is created once, given write somewhere so scanning works, given a password that will never be rotated because rotating it breaks the scanner, and then forgotten. Nobody in the estate pictures the printer as a principal with rights. The outcome of a successful relay is an authenticated write performed as that device account, and it looks entirely ordinary at the far end because, as far as the service is concerned, it is ordinary: the credential was accepted. ## Why cracking is not part of this Candidates often answer this question by describing an offline attack on captured material. That is a different technique with different economics. Cracking requires the secret to be weak; it costs compute and time, and it fails outright against a long random password or a machine account's automatically generated one. A relay is live forwarding: it costs nothing, it completes in the time of one handshake, and password strength is irrelevant to it because the password is never a factor the operator has to defeat. A machine account with a 120-character generated password is exactly as relayable as a user with `Summer2026`. The operator does not learn the credential either. There is nothing to store, nothing to sell, nothing to reuse tomorrow - which is also why a password reset is not a remedy. The session the operator obtained is already open, and the next coercion will mint a fresh one. ## The consequence for defence Because the secret is never the obstacle, controls aimed at secrets do not apply here: complexity policies, rotation, vaulting, even a strong second factor bolted onto interactive sign-in leave the technique intact. What removes it are properties of the authentication exchange itself - whether the session that follows can be used by a party that does not hold the key, and whether the exchange states which service it was meant for. Those are the controls worth arguing about, and they live at the destination that accepts the identity, not at the host that was coerced.

  • The relay completed but every write was refused. What does that tell you?
    That authentication and authorisation are separate. The far end accepted the credential, so the identity is genuine, but the coerced principal simply has no rights on that service. The technique never grants more than the principal already had, so the next move is to find either a principal with rights there or a service that will accept the one you can coerce.
  • Why does forcing longer, randomly generated passwords not reduce this risk?
    Because the password is never guessed, transmitted or stored by the operator. The coerced host computes the response with the real key and the operator only forwards it. A machine account with an automatically generated 120-character password relays exactly as well as a weak human password.
  • What makes a shared multifunction device an attractive host to coerce?
    It holds a real domain account so it can write scans to a share, it authenticates outward to whatever destination its configuration names, that configuration is often reachable without credentials, and nobody in the estate thinks of the scanner as a principal with rights anywhere.

Someone rings your doorbell asking a security question only you can answer, while standing on the phone to your bank repeating what you say. They never learn the answer; they just carry it.

saying these in an interview costs you the question

  • Says the attacker must crack the captured hash first
  • Claims a longer or rotated password prevents relay
  • Believes the credential itself passes through the attacker
  • Assumes a successful relay grants administrative rights
  • Treats a machine or device account as not a real principal

context

open as a page

Why is holding an identity-signing key different from stealing a password?

level: juniorimportance: must knowfreq 58%

basics

~20 s

A password makes you one user, presented to an issuer that decides whether to accept it. A signing key lets you mint any identity with any attributes, and the issuer decides nothing, because no authentication happens at all.

open as a page

Why can a stolen NT hash authenticate an attacker without ever being cracked?

level: juniorimportance: must knowfreq 72%

basics

~20 s

The protocol never sends a password. The client proves it holds the NT hash itself, so the hash is the credential. Anyone holding it authenticates directly, and cracking would only recover a plaintext that nothing in that path asks for.

open as a page

Why does a target service that enforces SMB signing break a relayed NTLM session?

level: middleimportance: must knowfreq 52%

basics

~20 s

Signing keys every message of the session with material derived from the account's secret. The relay operator forwarded the authentication without ever holding that secret, so the handshake completes and the session dies at the first signed request.

open as a page

If a relay target only accepts TLS, what does channel binding add that TLS alone does not?

level: middleimportance: should knowfreq 40%

basics

~20 s

TLS protects one hop, and the operator is a valid endpoint of two of them. The authentication inside names neither channel. Channel binding mixes the target's certificate into the response, so a reply minted over one channel is refused on the other.

open as a page

Which is wider: a stolen service key, a realm ticket-granting key, or a federation signing key?

level: middleimportance: should knowfreq 46%

basics

~20 s

The federation signing key is widest: it forges identity to every organisation that trusts the issuer. A realm's ticket-granting key covers every service inside one realm. A single service's own key covers only that service.

open as a page

Why is a leaked bcrypt password hash not reusable the way an NT hash is?

level: middleimportance: should knowfreq 48%

basics

~20 s

One word names two different objects. An application's bcrypt value is a checker: login submits a plaintext that is re-derived and compared, so the stored string cannot be submitted. A domain's NT hash is the credential the protocol accepts directly.

open as a page

After resetting a Kerberos service account's password, what still authenticates?

level: middleimportance: should knowfreq 52%

basics

~20 s

Tickets already issued for that identity keep working until their own expiry. The reset changes the long-term key, so a stolen keytab and the old NT hash stop being accepted, but an issued ticket is never rechecked against the current password.

open as a page

A reviewer says the estate is fully patched, so NTLM relay is fixed. Why is that wrong?

level: seniorimportance: should knowfreq 44%

basics

~20 s

Relay is a design property, not a defect. The exchange proves possession to whoever holds the challenge and never states which service it was meant for, so no patch retires it. Updates removed only particular variants and particular triggers.

open as a page

What does a valid signature on a federated identity assertion actually prove?

level: seniorimportance: should knowfreq 38%

basics

~10 s

Only that something holding the signing key produced it. It does not prove the issuer authenticated anyone, that the named person was present, or that the issuer would agree it issued this.

open as a page

Which control class actually stops NT hash and Kerberos ticket reuse?

level: seniorimportance: nice to knowfreq 36%

basics

~20 s

Only changing what the verifier accepts. Move to proof that cannot be replayed - a fresh signature over a challenge, checked against a public key, as in FIDO2/WebAuthn - then shorten and scope whatever static material remains.

open as a page

Mandating signing and binding would end relay, but scanners on your segment cannot do it. How do you decide?

level: principalimportance: nice to knowfreq 28%

basics

~20 s

Enforce at the destinations that accept identities, not at the devices. Legacy scanners are clients, so they rarely block enforcement. Where one genuinely cannot comply, shrink its account's authority to almost nothing and give the exception an owner and an end date.

open as a page

A federation signing key was held for a year; how do you re-establish trust with relying parties you cannot compel?

level: principalimportance: nice to knowfreq 24%

basics

~20 s

Replace the key and get every relying party onto the new one. You cannot compel third parties, enumerate them reliably, or say which identities were forged, so this is a negotiated programme with named owners and deadlines, not a change window.

open as a page