A compromised laptop fails posture mid-session: what can the broker kill, what can only the tunnel client kill, and what breaks?
answer
- two enforcement positions, not one
- the broker only kills what it carried
- split-tunnel and local traffic escape it
- the agent sits on the untrusted device
- in-flight work is the ticket
basics
~20 sThe broker can close only the sessions it terminates or proxies, and refuse new ones. Flows that never traverse it — local network, split-tunnel exclusions — die only if the endpoint's tunnel client drops them, and that client runs on the device you just declared untrustworthy.
solid answer
~50 sThere are exactly two places a teardown executes, and they cover different traffic. The **broker's session table** owns everything the broker terminates or proxies: it can close those sessions on the spot and refuse the next connection attempt. It cannot touch a flow that never crossed it — anything excluded from the tunnel, anything on the laptop's local subnet, anything reaching a peer directly. The **tunnel client on the endpoint** covers exactly that gap: it can drop the tunnel and, if it enforces locally, block traffic that never left the host. But it sits on the device whose posture just failed, so an adversary with code execution on that laptop can stop it acting or keep reporting compliance; and even an honest client only acts once the signal reaches it, which on a suspended or tethered device may be minutes. What breaks is in-flight work: a half-finished upload, a live call, a long-running query — one ticket each, times however many sessions the predicate matched.
go deeper
Know that a teardown happens in two places — the broker's session table and the endpoint's tunnel client — and that each reaches different traffic.
Explain what each position can and cannot terminate, why a signal takes time to reach a remote client, and why an agent on a failed device is a weak enforcer.
Show you design for the residual: name the traffic neither position covers, and decide in advance whether a suspect device gets a graceful drain or an immediate kill.
Own the trade-off between a predicate wide enough to contain and narrow enough that the organisation will actually let you fire it, and who signs off on the disruption.
## Two enforcement positions, two different blind spots When a device stops qualifying mid-session, "tear it down" is not one action. It is two actions in two places, and knowing which one reaches which traffic is the whole substance of this question. **The broker's session table.** The access broker holds a record per live session: which principal, which device, which application, when it was admitted. That table is what makes a revocation executable at all — you can only kill what you can identify. For sessions the broker terminates or proxies, it can close them immediately and refuse the next attempt. What it cannot do is act on traffic it never carried. If the deployment excludes some destinations from the tunnel, or the laptop talks to a printer, a NAS or a peer on its own home subnet, those flows are invisible to the broker and survive the revocation untouched. **The tunnel client on the endpoint.** This is the only thing standing where that traffic passes. It can drop the tunnel, and if it does local enforcement it can block flows that never left the host. It is also the position with the ugliest property in the whole design: it runs on the device you have just declared non-compliant. If the posture failure is because someone has code execution on that laptop, the agent is not a trusted narrator — it can be stopped, starved of its signal, or made to keep reporting a healthy verdict. An enforcement decision that depends entirely on the cooperation of a compromised endpoint has assumed away the thing it was meant to defend against. ## The gap between "decided" and "enforced" The decision changes at one instant; the client notices at another. Between them sit the delivery mechanism (a push the client must be online to receive, or a poll whose interval is your floor), the device's power state (a laptop asleep in a bag learns nothing until it wakes), and the network it is on. For a workforce that is entirely remote — home broadband, hotel wifi, a tethered phone — that gap is neither small nor uniform, and the honest way to describe your teardown is a distribution, not a number. This is also why the broker-side kill matters even when the client-side one exists: the broker acts on its own state, immediately, without asking anything of the endpoint. It is the half you control. ## What a teardown costs the user A session teardown is not a graceful thing. Whatever was in flight is lost or must restart: a large upload, a video call, a report query that had run for eight minutes, an editor with unsaved state in a remote session. Multiply by the number of sessions the predicate matched. For a posture rule flipped across a large population, the visible consequence is not a security event — it is a wave of identical support tickets, and the frustration lands on the team that pushed the rule. The design responses are all trade-offs rather than fixes: narrow the predicate and you may miss the adversary; stage the rollout by cohort and you slow containment; warn people first and you have told an insider what is coming. ## What the interviewer is listening for A weak answer says "we tear down the session" and stops. A strong one is explicit about coverage: *this* traffic dies at the broker, *that* traffic dies only if the client acts, and here is the traffic that dies at neither. It is honest about trusting an agent on an untrusted host. And it names the cost — the interrupted work and the ticket queue — because that cost is what determines whether the control gets used in anger or quietly narrowed until it is decorative.
- Why is a client-side teardown weak evidence that a compromised device is actually cut off?Because the evidence comes from the device itself. An agent reporting "tunnel dropped" is a claim made by software running on a host you have just declared untrustworthy; an adversary with sufficient privilege can suppress the action or the report. Broker-side session closure is stronger evidence because it is observed and executed at a point the endpoint does not control.
- Which traffic survives both teardowns, and what do you do about it?Anything that never traverses the broker and is not subject to local enforcement: the device's own subnet, excluded destinations, direct peer traffic. You reduce it by shrinking exclusions, or you accept it and move the control elsewhere — the destination refuses the session rather than the source being prevented from reaching it.
- Is a graceful disconnect ever worth the delay over an immediate kill?For a broad posture rollout, yes: draining lets in-flight work finish and turns a wave of tickets into a routine reconnect. For a device you believe is compromised, no — grace is time the adversary uses. Making that distinction explicit in policy, so the operator is not deciding it under pressure, is the mature answer.
saying these in an interview costs you the question
- Treats the endpoint agent as trustworthy on a failed device
- Assumes teardown is instantaneous and reaches all traffic
- Forgets flows that never traverse the broker
- Reads 'session ended' in a console as proof the flow is dead
- Ignores the interrupted work and the support cost