Skip to content

identity

AI security interview questions tagged identity, across every topic.

21 questions · 6 unlocked for you

Concepts behind "identity"

Explanations of the mechanisms these questions rely on.

Foundational
Identity & Access
Authentication versus AuthorizationAuthentication establishes who a caller is: a user, a service or an agent acting for someone. Authorization decides what that caller may do with a specific resource right now. They are separate checks that fail in separate ways. Most real access-control bugs are authorization failures on authenticated requests, and AI agents add a third question: on whose behalf is this action being taken?
Foundational
Identity & Access
Sessions, Cookies and TokensA session links later requests to authenticated state. Compare opaque identifiers, signed tokens, cookie protections and sender constraints, then test idle expiry, absolute expiry and revocation across caches and accepting services.
Foundational
Identity & Access
OAuth 2.0 and PKCEOAuth 2.0 is a framework for delegated authorization: a user lets an application access a resource on their behalf, with limited scopes, without sharing their password. The authorization code flow sends the user to the authorization server, returns a short-lived code, and exchanges it for tokens. PKCE binds code redemption to a per-flow verifier: someone who steals only the code cannot redeem it. This is not proof of an installed app's identity. Current best practice uses the code flow with PKCE for every client type.
Foundational
Identity & Access
The Confused DeputyA confused deputy is a program that holds authority and is tricked into using it on behalf of a less privileged party. The problem was named in 1988 and reappears in OAuth proxies, cloud services that act for customers, and, most sharply, in AI agents: a model holding a user's or a service's credentials can be steered by text from anyone. The fix is to make each action carry the authority of the party that requested it, not the deputy's own.
Foundational
Detection & Response
Infostealers and Session TheftInfostealer malware collects saved passwords, session cookies, tokens and developer credentials from a machine and uploads them as a log that is sold to people who specialise in breaking into organisations. Stolen session cookies represent logins that already passed MFA, so they can be replayed without a password or second factor. Defences make stolen secrets worthless (phishing-resistant MFA, short and device-bound sessions, no long-lived keys on endpoints), keep work access on managed devices, harden endpoints against lures such as ClickFix, and monitor stealer-log intelligence so sessions are revoked before buyers act.
Core
Identity & AccessSign in
OpenID Connect and ID TokensOpenID Connect is an identity layer on top of OAuth 2.0. Alongside an access token for APIs, it returns an ID token: a signed JWT stating who the user is, who issued the statement, which client it is for, and when it expires. The client validates it and creates its own session. Confusing ID tokens with access tokens, or skipping audience and nonce checks, are the classic mistakes.