Secure-DBSC is a Firefox browser extension that implements Device-Bound Session Credentials (DBSC). The primary goal of this project is to prevent session hijacking by cryptographically binding your active web sessions to your device's hardware via TPM 2.0.
By linking the session to a cryptographic key securely stored on the device, even if a malicious actor manages to steal your session cookies, they will be completely useless on another machine without the corresponding hardware key.
- Browser Extension: Intercepts authentication challenges and injects DBSC proofs into outgoing web requests.
- Native Middleware: A Python-based messaging host that sits between the Firefox extension and the device's hardware/TPM to sign challenges.
Because standard web pages and extensions cannot directly access your device's local hardware for security reasons, this extension relies on a Native Messaging Host (the middleware) to perform the cryptographic signing.
Firefox needs to be explicitly told where this middleware is located. You can install and register it using the provided installation script.
If you have Python installed on your system:
- Open your terminal or command prompt.
- Run the installation script:
Note: This will generate a
python install_host.py
com.dbsc.local_messenger.jsonmanifest file and automatically configure the necessary Windows Registry keys so Firefox knows how to launch the middleware.
The provided standalone executable (middleware.exe), Python is not required:
- Ensure the executable is located in the same folder as the extension files.
- Double-click the installer executable.
- A terminal window will briefly appear, execute the registration steps, and display a success message.
- Open Firefox and go to
about:debugging. - Click This Firefox and load the extension by clicking Load Temporary Add-on... and selecting the
manifest.jsonfile. - Click the Secure-DBSC extension icon in your browser toolbar and toggle it to Enabled.
- The popup should report the Middleware status as 🟢 Connected.
To completely remove the native messaging host registration from your system, simply run the uninstall_host.exe executable. This will delete the generated manifest and remove the registry keys or symlinks.