Deen

Your AI agent answers only to you.

One planted email can make a helpful agent pay a stranger. With Deen, your agent can remember everything it reads, but it only pays the people you signed for with your post-quantum key. QoreChain checks that signature on chain.

Signatures
ML-DSA-87
FIPS 204, checked on chain by pqcVerify
Encryption
ML-KEM-1024
FIPS 203, through QoreSeal
On chain
Hashes only
Memory text never leaves the vault
DeenBench
0 of 49

Live

Try to plant a new landlord. The chain will say no.

This panel talks to QoreChain testnet from your browser while you read. It runs on the deployed DeenRegistry, with the owner's real key on file, and nothing here is recorded or replayed.

Connecting to diana testnet…

Latest block
…
 
Signed landlord
…
 
Agent epoch
…
agents allowed to read new memories
Owner nonce
…
signed actions the chain has accepted

Your attack

Everything the owner has signed

  • Reading the registry's event logs…

DeenRegistry 0x6a1e…f48d on diana testnet (EVM chain 9800). When the landlord slot is empty, an agent with Deen refuses to pay anyone.


Encryption, in your browser

Seal a memory to keys the chain holds.

Your browser reads the ML-KEM-1024 keys that the owner and Deen's payer agent registered on QoreChain, checks each one against its owner's ML-DSA-87 key on chain, and seals your text the way Deen's vault does. It runs on QoreChain's QoreSeal library, here in this tab. Your text goes nowhere.

1. Who can read it

  • Reading the chain's key registry…

3. The envelope

4. Try to break it

    Same code path as src/vault.mjs: same purpose, same commitment, same authenticated data. The recipient cards are in data/recipients.json and are checked against the chain before anything is sealed.


    Owner tools, in your own wallet

    Keep the agent's payments running.

    When the agent pays from your smart account, Deen's relayer submits the transaction and pays the gas. Top it up here from QoreX. This page only builds one message; QoreX shows it to you, adds the ML-DSA-87 signature and sends it. The page never sees a key.

    Relayer gas

    Relayer
    qor129r9vxc52rjydj9378p9j7fux43znnv7p8d4p6
    Balance, live
    …
    read from diana testnet every 15 s

    Looking for QoreX…

    What a web page can't do

    • Raise the agent's limitsSpending rules can only be changed from QoreX's own screens or npm run owner. QoreChain's wallet adapter refuses them from any page, this one included.
    • Link or revoke the agent's keySame rule. Who may spend from your account is never a web page's call.
    • See your keyQoreX builds and signs the transaction. The page gets back a hash.

    Built on @qorechain/wallet-adapter (qorexSignAndBroadcast). Source: web/owner-wallet.mjs.


    The attack, as it ran

    Same email. Two agents. One pays a thief.

    Both agents get the same messages and the same pay tool, and the tool takes no address. It has to come from memory. Both payments below are real testnet transactions.

    What both agents read

    Ordinary agent

    Believes the newest thing it read, like most agent memory today.

    Agent with Deen

    Pays only from a memory the owner signed and the chain verified.

    Eight more attacks, from forged signatures to tampered ciphertext, are listed with their results in the docs.


    How it works

    Your signature is the only way to move money.

    An agent can be talked into believing anything. Deen doesn't try to stop that. It makes sure belief alone never reaches your wallet.

    01

    The agent remembers

    Everything goes into a vault encrypted with QoreSeal. Each memory is tagged with where it came from, and hearing it again doesn't raise the tag.

    02

    You sign what counts

    Payees and spending limits need your approval. You read the exact text in QoreX or your terminal and sign it with ML-DSA-87.

    03

    The chain checks it

    DeenRegistry looks up your key on chain, requires proof you own it, rebuilds the text you saw and verifies the signature.

    04

    The agent pays from that

    The pay tool has no address field. It opens your signed memory, matches it to the on-chain hash and pays only that, within your limit.


    Security model

    Clear about what it protects.

    Deen draws one line: who gets paid and how much. Here is where that line holds, and where it doesn't yet.

    Enforced

    • ✓A payee or limit counts only if the owner signed it and the contract verified the signature.
    • ✓Repeating a claim, or another agent agreeing with it, never raises its trust.
    • ✓Approvals can't be forged, replayed, moved to another memory or edited by the relayer.
    • ✓Altered or swapped ciphertext fails to decrypt, so nothing is paid.
    • ✓An agent removed from the group can't read memories written afterwards.
    • ✓Paying from the owner's smart account, a stolen agent key can't go over the owner's per-payment or daily limit. The chain refuses it.

    Not covered

    • !The chain caps how much a stolen agent key can send per payment and per day, but not where it sends it.
    • !If the owner's key sits on the agent's machine, that agent could sign. Keep it in a wallet such as QoreX.
    • !A removed agent keeps what it could already read.
    • !Lost-key recovery isn't built yet.

    Integrate

    Works with the agent you already use.

    Deen runs as an MCP server, so Claude Desktop, Claude Code and other MCP clients can keep their memory in it. It assumes the model calling it may already have been tricked.

    • remember stores what the agent read, tagged by source
    • recall returns memories and the one value you signed
    • request_approval asks you to sign; no tool can sign itself
    • pay takes a name and an amount, never an address
    MCP setup guide

    claude_desktop_config.json

    {
      "mcpServers": {
        "deen": {
          "command": "node",
          "args": ["/path/to/deen/src/mcp-server.mjs"]
        }
      }
    }

    Owner approval, in your own terminal

    npm run owner -- approve <memoryId>

    Agents are starting to move money for people. The facts that decide where it goes should be ones you signed.