Skip to content
QORECHAIN
Register

Post-Quantum AI Agents

AgentShield for QoreChain

A policy firewall that lets AI agents spend on QoreChain without ever holding the keys.

Share on X

About

AI agents that can pay are one prompt injection away from sending money to an attacker. AgentShield removes the key from the agent. The agent submits payment intents; AgentShield checks them against deterministic policy (allowlist, per-payment and daily limits, rate limit, prompt-injection scan, quarantine after repeated denials), holds large payments for a human, and signs allowed payments as hybrid secp256k1 + ML-DSA-87 transactions. Every decision, including every denial, is a hash-chained receipt signed with ML-DSA-87, so tampering is detectable and the record stays provable after Q-Day. In delegated mode the gateway signs with a linked delegate key that QoreChain itself limits: on the testnet the chain refused a 1.5 QOR payment above a 1 QOR on-chain limit. Agents connect over HTTP or MCP, and a live dashboard shows receipts, approvals and quarantined agents.

How it's made

Python gateway on the official qorechain-sdk: hybrid transactions, ML-DSA-87 keys, PQC key registration with proof of possession, spending-rule and authenticator messages. A pure policy engine (ten rules) decides ALLOW, ESCALATE or DENY. The receipt log hashes each record with SHA-256 over canonical JSON, chains it to the previous one and signs the hash with ML-DSA-87; the log head can be anchored in a transaction memo. FastAPI gateway, MCP server, CLI, and a framework-free dashboard that connects to the gateway. Verified on qorechain-diana: PQC key registration (owner and relayer), hybrid transactions, anchoring, spending-rule write and read-back, and a chain-enforced refusal of an over-limit payment by a delegate key (transaction hashes in docs/VERIFICATION.md). What was hard: our first design did not work. A payment signed by the account owner above the on-chain limit was accepted, because spending rules bind linked delegate keys, not the owner. We rebuilt it as delegated mode: the owner links an ed25519 delegate with send permission, and a separate relayer submits and pays fees. Live runs also exposed a fee below the node's minimum gas price and an account-sequence lag until block inclusion, both fixed. A demo agent on a Meta Muse model resisted the injection by itself; a scripted hijack mode shows the gateway holding when the model does not. 23 tests, pinned dependencies, MIT licence.

Timeline

AgentShield for QoreChainPost-Quantum AI Agents

Pushed 1 commit to main

  • 397e56b Connect dashboard to hosted gateway, mobile layout fix · Abbagigo13
AgentShield for QoreChainPost-Quantum AI Agents

Pushed 1 commit to main

  • 026dd81 Update documentation and tests; add demo seed functionality and Docker support · Abbagigo13
AgentShield for QoreChainPost-Quantum AI Agents

Pushed 1 commit to main

  • 2410f73 Quarantine persists until human release; dashboard polish · Abbagigo13
AgentShield for QoreChainPost-Quantum AI Agents

Pushed 5 commits to main

  • 345fa0e Add R09 quarantine after repeated denials · Abbagigo13
  • a08eb06 Fresh demo log per run, document demo observations · Abbagigo13
  • 9066dc0 Stop tracking demo data, add hijack mode · Abbagigo13
  • 1707315 Stop tracking demo data · Abbagigo13
  • ccd2a3d Add demo agent, redesigned site, docs · Abbagigo13

Comments and questions

  • No comments yet.