Threats, Vulnerabilities, and Attacks

An attacker replays a stolen session token to read an employee's AI assistant chat history. Which control BEST addresses this?

Show the answer

Correct answerA. Short-lived, HttpOnly session cookies

AWhy this is right: Short token lifetimes and HttpOnly flags make a stolen or scripted-away token far less useful.

BWhy not this: Anonymizing training data reduces privacy risk in the model, not theft of a live session.

CWhy not this: Input filtering counters prompt injection, but the attacker never manipulated the model's input.

DWhy not this: Grounding reduces hallucinations and does nothing to protect session tokens.

Session hijacking abuses a valid session token, so short-lived, protected session cookies shrink the window and make theft harder. Input filtering targets prompt injection, which is not how the attacker gained access here.