ReleaseDec 2, 2026By Cavos

What Claude Mythos 5.2 found in Cavos (Kit 0.7.0)

Claude Mythos 5.2 reviewed our enclave, vault, SDK and relayer. It found two critical and two high paths to user keys. All are fixed in Kit 0.7.0.

Our pitch is that Cavos never holds your users' keys. That claim is only as good as the code behind it, so in November we joined Anthropic's Cyber Verification Program and pointed Claude Mythos 5.2 at the parts of the Cavos embedded wallet that guard those keys: the recovery enclave, the vault, @cavos/kit and the relayer.

It found two critical and two high-severity ways to reach user keys, plus a set of smaller bugs in the vault and the relayer. Everything below is fixed and live. @cavos/kit 0.7.0 is on npm.

npm install @cavos/kit@^0.7.0

No user funds or keys were taken. Both critical findings were reproduced by us, on our own infrastructure, with keys we generated for the test.

What it looked at

Recovery is where a self-custodial wallet is easiest to get wrong. A user who has lost every device signs in, and a Nitro Enclave releases a sealed copy of their wallet's MasterDEK to a new device. Anyone who can make that enclave release the copy to them, or read the key that seals it, holds the wallet.

Claude read the enclave, its AWS infrastructure, the browser code that verifies the enclave, and the backend routes in between. For each finding it named the files and lines, wrote the attack, and said how to check it. We reproduced the two critical ones before fixing anything.

The findings

| Severity | Finding | Fixed in | Date | | --- | --- | --- | --- | | Critical | The enclave adopted whatever root key the host handed it | Enclave release v3 | 18 Nov 2026 | | Critical | One AWS administrator could unwrap the root key of every user | Release v3 alerts, release v4 sealed key, Kit 0.6.1 | 20 Nov 2026 | | High | Any script on the app's page held everything needed to recover a wallet | Kit 0.6.0, Kit 0.7.0 | 26 Nov 2026 | | High | One person with tag rights could publish an enclave every SDK accepts | Kit 0.6.0, release workflow | 19 Nov 2026 | | Medium | A crafted callback link could sign a user in | Kit 0.6.2 | 26 Nov 2026 | | Medium | The vault signed some Stellar operations without asking | Kit 0.6.2 | 26 Nov 2026 | | Medium | The relayer could be made to act on its own account | Relayer, cavos-web | 26 Nov 2026 |

Critical: the enclave trusted the host for its root key

The enclave unwraps one root key at startup and derives every recovery record's key from it. It asked AWS KMS to decrypt a blob the host supplied, with credentials and a region the host supplied, and never named which KMS key it expected.

A host under an attacker's control could hand it a blob wrapped under a key the attacker owned. The genuine enclave, with the right measurement, would adopt a root key the attacker already knew, and the browser would still see a valid attestation. Every user who enrolled during that window would have sealed their backup to the attacker.

We reproduced it on the production host on 18 November: with root on the host alone, the enclave came back publishing the login key we had derived in advance from a root key we chose. We reverted it within a minute.

Fix. Release v3 compiles the KMS key ARN and an encryption context into the image, sends both with every decrypt, and refuses a response from any other key. The region comes from the ARN, not the host. We ran the attack again against v3: KMS answers IncorrectKeyException and the enclave refuses to start. Closing this meant generating a new root key, so recovery backups sealed before 18 November cannot be opened any more.

Critical: one AWS administrator could read every backup

The root key's KMS policy could be rewritten by the AWS account. Three API calls, with no enclave and no user involved, would have unwrapped the root key of every user, retroactively.

Fix. First, alerts: since 18 November, email alarms fire on key policy and grant changes, on denied KMS calls, on any use of the key outside the enclave's role, and on access to the host. Then the structural fix: on 20 November each enclave release got a KMS key of its own, sealed to that release's image. Its policy grants nobody the right to change it, the root user of our AWS account included. Kit 0.6.1 has the details and how we verified the seal.

High: the app's page held everything needed to recover

The login secret, the ID token and the PKCE verifier lived in the app's sessionStorage. Any script on that page, from an XSS, a compromised npm dependency or a browser extension, could read them and run a recovery to a key of its own.

Fix. Kit 0.6.0 replaces the secret with a login key: a non-extractable P-256 key pair held by the vault. The login nonce is the hash of its public key, and the enclave only accepts a token inside a job encrypted with that key. Emailed codes are bound to it too. The page sees the nonce and nothing it can use.

Kit 0.7.0 closes the other half. The vault used to open a wallet for any user id the page named. It now verifies the sign-in itself and keeps its own session: seven days from the last use, at most thirty from sign-in.

High: one person could publish an enclave every SDK accepts

The SDK accepted any enclave release signed by the release workflow on a v* tag. It did not check that the release ran in the protected release environment, so a branch that dropped that line could tag a release that every browser would trust.

Fix. From release v3, Kit 0.6.0 accepts only releases signed in the release environment. The workflow now releases only commits on main and assembles each release as a draft for review.

The smaller ones

  • Callback sign-in. handleCallback still read a token from ?auth_data=, and a token from an issuer outside the login-bound ones skipped the nonce check. A crafted link carrying a known user id could sign that user in on a browser that had held their wallet. Kit 0.6.2 only accepts sign-in from the one-time cavos_auth_code, answering a login the client started.
  • Muxed Stellar sources. The vault matched an operation's source against the account's G… address only. The same account written as a muxed M… address was neither counted against limits nor shown, so a payment or a signer change could be signed without asking. Kit 0.6.2 reduces every source to its base address, and asks before bumpSequence, which can invalidate every later transaction of the account.
  • Relayer. On Stellar, a setup operation with no source ran as the relayer, so it could add a signer to the organization's sponsor account. On Solana, the gate only refused a transfer from the relayer, not other instructions that named it. Both now refuse any operation that acts on the relayer's own account.

Also new: anyone can check the vault

vault.cavos.xyz serves the scripts that hold users' keys. A check now downloads the live vault and the published npm package and requires them to be byte-identical, with the same pages and Content-Security-Policy. It has no dependencies, so anyone can run it, and it runs every hour. CI builds twice and fails if the output differs, so the comparison stays meaningful.

Upgrading to 0.7.0

0.7.0 is a breaking release. The backend and the vault already run it.

  • A connect without a live vault session fails with SIGN_IN_REQUIRED. Check it with isSignInRequired(error); <CavosProvider> shows the user as signed out.
  • An app that signs its users in itself registers its identity provider in the dashboard and passes the user's token: identityToken on <CavosProvider>, or new StaticIdentity(identity, () => token). userId must be the token's sub.
  • Erasing an account needs the wallet to be open.
  • Every user signs in once after the upgrade.

Help us watch the enclave

Some of this work is not finished, and part of it cannot be finished by Cavos alone. Enclave releases are signed in a protected environment and published in Rekor, but today every person who can approve one works at Cavos.

We are looking for contributors and for organizations willing to review the enclave code and approve its official releases. If that is you, the code is at cavos-labs/cavos-recovery, and you can reach us at [email protected].

What to read next

Frequently asked

What did Claude Mythos 5.2 review?

The code that guards users' keys: the AWS Nitro recovery enclave (cavos-recovery) and its AWS setup, the vault and SDK in @cavos/kit, and the transaction relayer in cavos-web. The review started on 18 November 2026, through Anthropic's Cyber Verification Program.

Were any user funds or keys taken?

No. Both critical findings were reproduced by us, on our own infrastructure, with keys we generated for the test. Nothing points to anyone else having used any of the findings.

What do I need to change in my app?

Upgrade with npm install @cavos/kit@^0.7.0. Kit 0.7.0 is breaking in three places: a connect without a live vault session fails with SIGN_IN_REQUIRED, an app that signs users in itself registers its identity provider and passes the user's token, and erasing an account needs the wallet to be open. Every user signs in once after the upgrade.

Is anything still open?

Yes, and we would rather have help than hide it. Enclave releases are signed in a protected environment, but today every approver works at Cavos. We are looking for contributors and for organizations willing to review the enclave code and approve its official releases.

Add a non-custodial wallet in minutes.

Free up to 1,000 wallets. Hardware-isolated, non-custodial. Keys never leave the device in plaintext.

We use anonymous analytics to understand how developers use Cavos. No personal data is collected. Privacy Policy