Subscribe to the Non-Human & AI Identity Journal

Open redirect

An open redirect is a web endpoint that forwards a visitor to a different destination without strict validation. In identity and AI attack chains, it is dangerous because it can make a malicious payload look like a trusted domain, increasing the chance that users will follow the link and trigger the next stage of abuse.

Expanded Definition

An open redirect is not just a convenience feature gone wrong; in identity and NHI attack chains it becomes a trust amplifier. The endpoint appears to belong to a known domain, but the final destination is controlled by an attacker, so the redirect can be used to conceal phishing, token theft, or malicious consent flows. In practice, definitions vary across vendors on whether a redirect is “open” only when the target is fully user-controlled, or also when validation is weak enough to permit untrusted destinations. For NHI and agentic AI environments, that distinction matters because redirect abuse often sits between the initial lure and the credential capture stage. Security teams should assess it alongside URL validation, allowlists, and session handling rather than treating it as a standalone web bug. For broader identity governance context, the Ultimate Guide to NHIs explains how identity trust boundaries fail when secrets, tokens, and service access are not tightly controlled, while NIST Cybersecurity Framework 2.0 frames the need for protective controls that reduce exploitation paths. The most common misapplication is assuming a redirect is safe because the initiating domain is legitimate, which occurs when query parameters or return URLs are not strictly validated.

Examples and Use Cases

Implementing redirect handling rigorously often introduces usability friction, requiring organisations to weigh smoother user journeys against stricter destination validation and tighter allowlists.

  • A login page sends users to a “return_to” parameter after authentication, but an attacker swaps in a malicious domain and uses the trusted brand to improve click-through on a credential-harvesting page.
  • An admin portal uses a redirect after password reset, and the link is embedded in a lure that looks legitimate enough to steer operators into approving a fake reauthentication request.
  • An AI agent workflow follows a web link from a task message to a redirector that forwards to a lookalike consent screen, creating a path for token capture or unwanted application authorization.
  • A partner integration receives a callback URL, but the endpoint does not enforce a strict allowlist, allowing abuse of the redirect path to hide the real destination from user inspection.
  • During incident response, teams review redirect logs to trace whether an initial trusted link was used as a bridge into a phishing kit or secret-exfiltration chain, a pattern discussed in the Ultimate Guide to NHIs and adjacent identity governance guidance.

In standards-based design discussions, the redirect itself is usually treated as an implementation detail, but the surrounding control expectations still align with NIST Cybersecurity Framework 2.0 principles for reducing attack surface and validating inbound request handling.

Why It Matters in NHI Security

Open redirects matter in NHI security because they help attackers borrow trust from legitimate infrastructure before moving toward secrets, tokens, or delegated access. That makes them especially dangerous in email, SSO, agent handoffs, and support workflows where users already expect to click through. NHIs outnumber human identities by 25x to 50x in modern enterprises, and the scale of machine-to-machine interaction increases the value of every trust shortcut. In practice, open redirects are not the root problem, but they become a reliable stepping stone when service accounts, API keys, and agent permissions are already overexposed. This is why redirect validation belongs in the same governance conversation as secret management and least privilege, a point reinforced in the Ultimate Guide to NHIs. The risk also maps cleanly to the protective intent of NIST Cybersecurity Framework 2.0, which expects organisations to reduce exposure before abuse chains mature. Organisations typically encounter the consequence only after a phishing or token-theft event, at which point open redirect abuse becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Open redirects often enable token theft and trust abuse in NHI attack chains.
NIST CSF 2.0 PR.AC-4 Redirect abuse undermines access control by steering users into untrusted destinations.
NIST Zero Trust (SP 800-207) AC-4 Zero Trust requires each hop to be explicitly validated, including redirect-driven flows.

Treat redirects as untrusted transitions and enforce policy before following them.