Security model and limits.

What HushNote protects, what it does not, and exactly what you are trusting when you use it.

Threat modelAudit status checked 9 October 2026Updated 2026-10-12

Summary

Not independently audited. HushNote is a prototype that uses post-quantum cryptography. It is not an audited secure messenger, its own code has not been externally reviewed, and its ML-KEM library has not been independently audited. Do not use it to protect information that matters.

Within those limits, the design goal is narrow and testable. Only the holder of the recipient’s secret key can read a sealed message, and any change to an envelope is detected before a single byte of plaintext is released.

The home page says a message is anonymous and that only you and the person you give the key to can read it. The second half is the design goal above, and it holds only while the key reaches no one else. The first half means the site asks for no account or name and keeps no record of who uses it. It does not hide your internet address from the hosting provider: what “anonymous” means here.

Threat model

The channel between the agents is assumed hostile. This table states what each kind of adversary can and cannot achieve.

Adversary canOutcomeStatus
Read envelopes in transitLearns the message length and the recipient’s key fingerprint, not the contentBy design
Change any byte of an envelopeDetected by the AES-GCM tag or the strict parser; no plaintext is releasedTested at every ciphertext and tag position
Open an envelope with a different secret keyImplicit rejection, then authentication failure; nothing releasedTested
Get hold of a key-locked link, without its keyLearns the message length, not the contentBy design
Get hold of both a key-locked link and its keyCan read the message. That is what the key is for: it must travel by a different route than the linkBy design
Guess or try decryption keysA key is 256 random bits. A wrong key fails the AES-GCM tag and releases nothingTested
Replay an old envelopeNot detected. Version 1 has no replay protectionKnown limitation
Substitute their own public key, or personal link, before the sender uses itCan read the messages unless the sender compares fingerprints with the recipient over a trusted channelTrust assumption
Send B a message claiming to be APossible. There is no sender authenticationKnown limitation
Record traffic now and attack it later with a quantum computerML-KEM is designed to resist known quantum attacks. Nothing here can test that claimAssumption on ML-KEM
Measure timing or other side channelsNot defended. The ML-KEM implementation is pure JavaScript and does not claim constant-time executionKnown limitation
Use the browser profile that holds a saved Messages key, or run code on this site’s originCan read every message sealed for that key, including earlier ones. Wrapping keeps the raw key out of storage; it does not stop the key being usedKnown limitation
Control the device or browser of either agentFull compromiseOut of scope

The trust assumption

Encryption protects a message only for whoever holds the secret key matching the public key it was sealed to. If an attacker substitutes their own public key, A will seal the message to the attacker. A fingerprint does not make a key trustworthy just by existing, because an attacker’s key has a perfectly valid fingerprint too.

Fingerprints help only when A compares all 64 hex digits with the fingerprint B reports over a channel A already trusts, such as in person or on a voice call. In the single-page demo both agents share one tab, so the comparison is shown automatically. In two-browser mode, the comparison is the visitor’s responsibility, and the interface asks for it explicitly.

Key handling

  • Secret keys are generated inside a dedicated Web Worker from the browser’s cryptographically secure random number generator, and never leave it.
  • No request in any worker protocol returns a secret key. Secret keys are never logged, displayed, exported, sent to another party or given to the AI.
  • In the demo, keys are ephemeral and are never stored. Closing or refreshing the tab destroys them, after which envelopes sealed to them can never be opened.
  • The message tool on the home page saves one key pair in your browser so that links keep working between visits. The next section covers it.
  • Shared secrets are wiped immediately after key derivation, and derived AES keys are non-extractable. In JavaScript, wiping memory is best effort only.

Messages locked with a key

On the home page, Lock message encrypts the text with AES-256-GCM under a key your browser has just drawn at random. The link carries the scrambled message, and the key is shown to you to pass on.

  • The key is the whole protection. Anyone who has both the link and the key can read the message. Send them by different routes: if both sit in the same chat, whoever runs or reads that chat can open it.
  • The key is never stored or transmitted by this site. It exists on the page until you leave it. If it is lost, nobody can open the message, including you.
  • A wrong key and a changed message look the same. Both fail the same check and show nothing, so the page cannot tell you which it was.
  • A key can be reused. Every message derives its own key from it with a fresh salt, so locking many messages with one key does not weaken them. Anyone who learns that key can then read all of them.
  • No proof of sender. Anyone who has the key could have written the message.
  • This lock is not ML-KEM. It is symmetric encryption: its strength is that of AES-256 with a 256-bit random key. A message written to a private link uses ML-KEM-768, and can carry a key lock inside it for two locks.

The saved key behind a private link

The message tool on the home page needs the recipient’s key to outlive the tab, so it is the one place where a secret key is stored. On screen it calls that key pair “your private link”.

  • The key pair is created in a dedicated worker and saved in your browser’s IndexedDB storage, for this site only. It is never transmitted.
  • The secret key is saved only in wrapped form: encrypted with AES-256-GCM under a WebCrypto key that is generated as non-extractable. The worker unwraps it for one decryption at a time and then wipes it.
  • What wrapping does not do. Anyone who can use that browser profile, and any code running on this site’s origin, can ask the browser to unwrap the key. Against the second, the only defences are the strict content policy and the fact that every script is self-hosted and pinned. The optional AI runtime on the demo page is the largest piece of third-party code on this origin.
  • No forward secrecy. One key opens every message ever sealed for its personal link. If the key is stolen, all of them can be read, including old ones recorded earlier.
  • The key can be lost. Clearing this site’s data, closing a private window or the browser’s own clean-up removes it, and some browsers remove a site’s stored data after a period without visits. Messages sealed for a lost key can never be opened. There is no backup and no recovery.
  • Links are visible to whatever carries them. The app a link is sent through, and the browser history of whoever opens it, hold the sealed link. They show the recipient’s fingerprint and the message length, not the content.
  • No proof of sender. Anyone who has a personal link can write to its owner, under any name.

Implementation assurance

Checked on 9 October 2026.

ComponentProvidesAssurance
@noble/post-quantum 0.7.1 ML-KEM-768 Its README states it has not been independently audited. Version 0.6.1 was self-audited in April 2026, and a reproducibility study against NIST vectors (not an audit) covered 0.7.0. It does not claim constant-time execution.
Browser WebCryptoSHA-256, HKDF, AES-GCM, random numbersBuilt into the browser and maintained by its vendor.
HushNote codeEnvelope format, parsing, worker isolationNot externally reviewed. 82 of 82 unit tests passed in this build, plus an independent reference implementation and browser end-to-end tests.
Transformers.js 4.3.1 and the modelOptional drafting and explanationsNot security-relevant by design. Isolated in its own worker, it receives no secrets and cannot affect a verdict.

Platform controls

  • A strict Content-Security-Policy. Scripts come only from this site, there are no inline scripts or styles, and network access is limited to this site plus Hugging Face for the opt-in model download.
  • Cross-origin isolation (COOP and COEP), no-referrer and nosniff headers, and a Permissions-Policy that disables the camera, microphone, geolocation, payment and USB.
  • Served over HTTPS, with a Strict-Transport-Security header that tells browsers to use only HTTPS for this site for a year after the first visit. A page reached over plain HTTP moves the visitor to HTTPS, because without it browsers withhold WebCrypto and cross-origin isolation and the demo could not run.
  • No cookies, analytics, accounts or third-party scripts. The AI runtime is self-hosted and integrity-checked before use.

Known limitations

  • No sender authentication, replay protection or forward secrecy beyond the per-message encapsulation.
  • A key-locked message is only as private as the route its key took. The site cannot check how a key was passed on.
  • The message tool keeps one long-lived key per browser, with no backup, and with no protection against someone who can use that browser.
  • Message length and the recipient’s fingerprint are visible to anyone who sees an envelope.
  • ML-KEM is used alone, without a classical algorithm alongside it as a hedge.
  • Pure-JavaScript ML-KEM with no constant-time guarantee. Browsers deliberately coarsen the timers used for measurements.
  • The small language model can be wrong. Its output is labelled and never trusted for any decision.

Reporting a vulnerability

A dedicated security contact has not been published yet. Until one is, do not use HushNote to protect information that matters.