AegisQore is an open-source (Apache-2.0) post-quantum security firewall and policy registry built for autonomous AI agents operating on QoreChain (qorechain-diana, EVM Chain ID 9800).
Autonomous agents holding hot keys face two concrete risks: unconstrained wallet drains if an LLM is prompt-injected, and classical ECDSA key forgery in a post-quantum threat model. AegisQore separates authority between an offline owner key and a tightly scoped AI agent session, enforcing hard cryptographic and spending guardrails both on chain and inside the agent's MCP tool boundary.
What it implements for the Post-Quantum AI Agents track:
1. On-Chain Scoped EVM Windows (QoreGuardPolicyRegistry.sol): Owners open bounded windows specifying [startBlock, endBlock], maxTxCount, maxTotalValue, and window-specific allowedTargets. Out-of-window blocks, transaction count breaches, cumulative value breaches, and unlisted targets revert deterministically.
2. Transaction, Value, Duration, and Target Limits: Enforces per-transaction caps, O(1) two-epoch sliding 24-hour spend caps, rolling velocity windows, target allowlists/denylists, and a 4-byte calldata selector firewall that blocks ERC-20 approve (0x095ea7b3) and setApprovalForAll (0xa22cb465) by default.
3. Smart-Account Spending Rules & 30-Day Owner Link Lease: First-time policy registration requires the agent controller itself (AgentNotController guard), binds the agent's ML-DSA-87 public key hash, enforces a strict 30-day maximum link TTL (MAX_LINK_TTL = 2,592,000s), and supports owner renewal, key re-linking, and immediate kill-switch revocation.
4. Official Authenticated Messaging (qorechain-msg-v1|<chainId>|<data>): Implements prefix-free domain-separated framing with hybrid secp256k1 (EIP-2 low-S ecrecover) + FIPS-204 ML-DSA-87 verification in both Solidity (via QoreChain precompile IQorePQC 0x...0A01) and TypeScript (@qorechain/pqc), plus hybridSignBytes("v2") anti-downgrade envelopes.
5. 6-Tool MCP Server (qoreguard-mcp) & Interactive Console: Lets AI agents quote policy impact, verify hybrid ML-DSA-87/SLH-DSA envelopes, run 6-vector quantum-downgrade simulations, probe live QoreChain precompiles, and export SHAKE-256 hash-chained ML-DSA-87 audit bundles while refusing any private key or mnemonic passed into tool arguments.
Transparency note: The public GitHub Pages web console runs a deterministic browser policy simulator for interactive review (clearly labeled in the UI). Real FIPS-204 ML-DSA-87 signing, on-chain 0x...0A01 precompile verification, and Solidity enforcement run in @qoreguard/core, qoreguard-mcp, npm run probe:testnet, and QoreGuardPolicyRegistry.sol.
How it's made
AegisQore is structured as a unified Apache-2.0 monorepo with three independently verified layers:
1. On-Chain Solidity Registry (contracts/QoreGuardPolicyRegistry.sol, Solc 0.8.28 / paris):
- LIVE DEPLOYED on qorechain-diana (EVM Chain ID 9800, block 10960987):
- Contract Address: 0xf538ed9a20c1feb75297c1620f37dc3397700eb4 (verified runtime bytecode: 15,865 bytes)
- Deploy TxHash: 0x69f946d9a4cb39a8eda907917bff23beb5c22649f86063336f1fd43780cf2e69
- Hybrid Open-EVM-Window TxHash: 40F84AC6BAF8F4C09D638D5F0769C70E574081BCFDBEC964BB772196528B7FD4
- PQC Key Registration TxHash: A3730F4F7A271240C759564368FCECA7AC556641AD7830B63412D96F9991F324
- Live Turnkey Guarded TxHash: 0xbc0426d3cfa25b5037ce488d7ae4c903e9b573567d313de3aa5d80b53f9a4be8
- Calls QoreChain's native EVM precompiles directly: IQorePQCVerify (0x...0A01), IQorePQCKeyStatus (0x...0A02), IQoreAIRiskScore (0x...0B01), and IQoreAIAnomalyCheck (0x...0B02).
- Verified with Foundry: 20/20 passing test entries (19 registry unit/fuzz tests including a 256-run spend-cap fuzz test and third-party AgentNotController revert check, plus 1 stateful invariant suite holding 6 invariants across 256 runs / 8,192 calls with 0 reverts).
- Static analysis via Slither 0.11.6 (102 detectors): 0 High, 0 Medium, 0 Optimization findings.
2. Core Post-Quantum Policy Engine & MCP Server (src/):
- Built in strict TypeScript using @qorechain/pqc@0.2.3 (FIPS-204 ML-DSA-87 with 2,592-byte public keys and 4,627-byte signatures, SHAKE-256, and hybridSignBytes("v2")), @noble/post-quantum (FIPS-205 SLH-DSA), @noble/curves (secp256k1/ed25519), viem, and @modelcontextprotocol/sdk.
- Enforces wall-clock freshness (rejecting caller timestamps skewed more than 30 seconds via StaleEvaluationClockError), monotonic anti-replay nonces, 6 deterministic downgrade/tamper attack vectors, and MCP secret-input refusal.
- Live testnet probe (npm run probe:testnet) generates a fresh ML-DSA-87 keypair and verifies the signature on chain against live IQorePQC.pqcVerify (0x...0A01) on qorechain-diana, returning verified: true alongside live 0x...0A02 and 0x...0C01 consensus checks.
- Verified with 43/43 Vitest tests covering real PQC crypto, policy engine rules, InMemoryTransport MCP round-trips, testnet client, and registry deployer.
3. Interactive Web Console & Pitch Materials (web/, docs/):
- Built with React 19, Vite 6, and TypeScript (9/9 Vitest tests), featuring a live policy console, 5-scenario adversarial breaker lab, exportable JSON audit receipts, and an 8-slide 16:9 judge deck PDF hosted on GitHub Pages.
- Total automated suite: 72/72 PASS (20 Foundry + 43 core Vitest + 9 web Vitest), with clean tsc --noEmit in both root and web/.
- AI-assisted development workflow, tool usage, and human verification boundaries are documented in AI_USAGE.md in the repository root.