Relock

You are logged in as

{user.email}

02 — Overview

How Relock works

Relock binds every authenticated session to the device that created it. When a session token leaks — through malware, phishing, or a man-in-the-middle proxy — the attacker holds a credential that simply will not work anywhere else.

Instead of relying on static cookies and bearer tokens, Relock continuously proves possession of a hardware-backed device key on every request. The result is a silent layer of defense that runs underneath your existing auth flow.

03 — Test Relock

Attack scenarios

Relock device binding protects an authenticated session from being used by any other device. This application allows you to test it against three attack vectors that closely simulate real-world threats:

  1. Cookie Replay — your cookies only, replayed from an attacker's device.
  2. Session Hijack — your cookies + localStorage + sessionStorage, replayed from an attacker's device.
  3. Identity Impersonation (IMPaaS) — the same material as T2, replayed from a device that looks like yours.

Each attack is more sophisticated than the last, peeling back another layer of conventional defense — password and MFA, then session risk signals, then even advanced device fingerprinting and intelligence suites.

Description

The simplest session theft. An attacker who obtains only your session cookie — from a proxy, an XSS leak, or a single line in a stealer log — replays it from their own browser to walk straight into your authenticated session. No password, no MFA prompt, because the session is already past both.

Testing scenario

Copy all active cookies from this browser and replay them from a fresh browser posing as a different device.

Expected outcome

Rejected. Relock requires a fresh integrity token to prove possession of the device key, and the attacker is not able to produce it.

04 — Testing harness

Run it yourself

You can replicate each of the simulated attack scenarios above with the same session replay harness that we used.

Just install the dependency, authenticate in a new browser instance, and select the attack tier.

Launch an attack against the sandboxbash
npx playwright install chromium # first run only — downloads the browser (~150MB)
npx github:Relock-Security/sandbox#v0.3.0

Or clone and run it if you'd rather read the source first.

Clone the harnessbash
git clone https://github.com/Relock-Security/sandbox.git
cd sandbox
npm install
npm start

You can also point the harness at your own applications to test your exposure to session-level threats. It runs entirely on your machine(s) and never handles any sensitive input, such as passwords.

Relock
Get Started

© 2026  Relock, Inc.  |  701 Brazos St., STE 150  |  78701 Austin, TX

hi@relock.security