AirAccount KMS Beta2(v0.20.0)发布:私钥永不出 TEE,NXP 真机 34/34 端测通过
AirAccount KMS Beta2 (v0.20.0): Keys Never Leave TEE, 34/34 E2E on Real NXP Hardware
2026-06-12 · Mycelium Protocol 生态 · AAStar
AirAccount 是 Mycelium Protocol 生态的身份与密钥底层 —— TEE 私钥管理 + WebAuthn 无密码认证 + AWS KMS 兼容 API。SuperPaymaster 依赖它做账户验证,SuperRelay 依赖它做 TEE 双签。今天发布 Beta2(v0.20.0)。
一句话
私钥永不出 TEE,每次签名都需要一次实时、防重放的 WebAuthn ceremony;以太坊 secp256k1 钱包密钥 + RPMB 硬件反回滚。
Beta2 的核心
🔒 安全加固
完成一轮完整安全审计,P0/High 全部修复(命令 ID 唯一性、TEE 调用超时+熔断、passkey 强制、submodule 锁定)。
TA 侧 WebAuthn 独立验签(rpId + User-Presence)—— 被攻陷的 host 无法绕过用户在场证明。这是核心安全边界:即使 REE(Rich Execution Environment)被完全攻陷,攻击者也无法在没有用户物理参与的情况下触发签名。
RPMB 硬件反回滚 + 钱包存储(REE-FS fallback);新增 ReadRollbackCounter + GET /RollbackCounter。RPMB(Replay Protected Memory Block)是 eMMC 内置的防回滚硬件,计数器只能递增,物理上不可回退。
WebAuthn ceremony 覆盖全部签名路径,旧的可重放 passkey 路径已下线。
🔗 SuperPaymaster 对齐(gasless 支付)
不用自己拼 EIP-712 —— KMS 直接提供三个便利签名端点,内部构造合约级正确的 typed-data,走同样的 ceremony 鉴权:
| 端点 | 用途 |
|---|---|
| SignMicropaymentVoucher | 微支付通道凭证(高频小额、按用量付费) |
| SignGTokenAuthorization | EIP-3009 TransferWithAuthorization(无 gas 转账) |
| SignX402Payment | x402 协议支付载荷(API 按调用付费、agent 机器支付) |
对集成方的意义:一行 API 调用就能拿到合约级正确、私钥不出 TEE 的签名,不需要自己处理 EIP-712 结构体和踩坑。
🛠️ 真机生产部署(NXP FRDM-IMX93)
ARM Cortex-A55 + OP-TEE 4.8 完整部署。
CAAM-bypass:i.MX93 的 CAAM TRNG 不稳定?CA 侧用 OsRng 生成熵注入 TA,绕过硬件卡死。
gap key(无效 P-256 pubkey)的 TEE 强制清理、自动备份系统、dirf.db 自愈。
修复了一个真机才暴露的 TA panic:create-agent-key 路径用 std::time::SystemTime::now() 在 OP-TEE 崩溃(错误码 0xffff3024)——改用 TEE_GetREETime。这个 bug 在模拟器上完全不出现,只有上了真实 ARM TrustZone 硬件才会触发。
关于 NXP FRDM-IMX93 的 eMMC 变砖与恢复经历,见:NXP FRDM-IMX93 eMMC 变砖全记录
✅ 质量
真机端到端测试 100% 端点覆盖:FRDM-IMX93 上 34/34 通过(含注册/认证 ceremony 全流程、agent key、grant session、p256 session、EIP-712)。
单元测试:proto 39 + host 56(交叉编译 aarch64 上板运行)。
⚖️ 合规
Apache 2.0 license 合规(NOTICE / TRADEMARK / 中文 license)+ CLA workflow。
对生态伙伴意味着什么
- SuperPaymaster:gasless 支付的 TEE 双签端点已齐全,可直接对接。
- SDK 集成方:
@aastar/sdk可调用新便利端点,免去 EIP-712 拼装与踩坑。 - 开发者:一行 API 拿到合约级正确、私钥不出 TEE 的签名。
路线图
Beta3(下一步):
主网前必须:
完整变更见 CHANGELOG 0.20.0。
GitHub:AAStarCommunity/AirAccount · Apache 2.0 · OP-TEE TrustZone
AirAccount KMS Beta2 (v0.20.0) Release
2026-06-12 · Mycelium Protocol · AAStar
AirAccount is the identity and key management layer of the Mycelium Protocol ecosystem — TEE-based private key management + WebAuthn passwordless authentication + AWS KMS-compatible API. Today we ship Beta2 (v0.20.0).
One Line
Private keys never leave the TEE. Every signature requires a live, replay-protected WebAuthn ceremony. Ethereum secp256k1 wallet keys + RPMB hardware anti-rollback.
Core Changes
🔒 Security Hardening
Complete security audit pass — all P0/High findings fixed: command ID uniqueness, TEE call timeouts + circuit breakers, passkey enforcement, submodule pinning.
TA-side WebAuthn independent verification (rpId + User-Presence): a compromised host cannot bypass the user-presence proof. Even if the entire REE is compromised, an attacker cannot trigger a signature without the user physically present.
RPMB hardware anti-rollback + wallet storage (REE-FS fallback). New: ReadRollbackCounter + GET /RollbackCounter. All signing paths now require WebAuthn ceremony; the old replayable passkey path is removed.
🔗 SuperPaymaster Alignment (gasless payments)
Three new convenience signing endpoints — internally constructs contract-correct EIP-712 typed-data, authenticated via the same ceremony:
| Endpoint | Purpose |
|---|---|
| SignMicropaymentVoucher | Micropayment channel vouchers (high-frequency, pay-per-use) |
| SignGTokenAuthorization | EIP-3009 TransferWithAuthorization (gasless transfers) |
| SignX402Payment | x402 protocol payment payload (API metering, agent machine payments) |
🛠️ Production Deployment on NXP FRDM-IMX93
Full ARM Cortex-A55 + OP-TEE 4.8 deployment on real hardware.
CAAM-bypass: i.MX93’s CAAM TRNG is unstable — CA generates entropy via OsRng and injects into TA.
Fixed a real-hardware-only TA panic: create-agent-key path used std::time::SystemTime::now() which crashes in OP-TEE (0xffff3024) — fixed with TEE_GetREETime. This bug is invisible on emulators; only surfaces on real TrustZone silicon.
✅ Quality
Real-hardware E2E: 34/34 endpoints pass on FRDM-IMX93 (WebAuthn registration/authentication ceremony full flow, agent key, grant session, p256 session, EIP-712). Unit tests: proto 39 + host 56 (cross-compiled aarch64, run on board).
Roadmap
Beta3: WebAuthn challenge binding, key lifecycle management, convenience signer from verification.
Pre-mainnet: RPMB production programming, TEE remote attestation.
GitHub: AAStarCommunity/AirAccount · Apache 2.0
关于本站 · 免责声明
🍄 Mushroom Research Blog 是非营利、免费公开的个人科技观察博客与公众号 XStack18,不接受商业合作、不代表任何企业或机构立场,也不谋求商业利益。我们以个人视角客观中立地记录和分析 AI、Web3 等领域的最新模型发布与技术动态——不止转述新闻标题或二手信息,而是给出有独立思考的深入分析,希望帮更多人获得有价值的一手科技认知。
⚠️ 文中介绍的开源代码与模型,仅供学习交流与技术借鉴。它们大多仍处于早期阶段,有待进一步研究和验证,请勿直接用于工作或生产环境;如需采用,请先自行充分测试,并核实其许可证与安全性。
Open-source code and models featured here are shared for learning and reference only. Most are early-stage and still need further study and verification — please don't use them directly in your work or in production. Test them thoroughly and check their licenses and security first.
- 本站文章均为作者基于公开信息的个人研究与观点整理,不代表文中提及的任何公司、产品、模型的官方立场,未与其构成商业关联或合作关系。
- 科技行业信息更新极快,我们尽力保证内容准确、及时,但不对完整性、实时性做绝对保证,具体请以相关企业/项目官方公告为准。
- 文中引用的第三方商标、产品名称、图片、数据等版权归原权利人所有,我们会尽量注明来源;如你认为存在版权疑问或侵权,请通过下方邮箱联系我们,收到通知后会尽快核实处理(更正、加注来源或删除)。
- 文章内容仅为技术科普与个人观点,不构成投资、法律或其他专业建议,据此进行任何决策的后果需自行判断和承担。
📮 侵权 / 勘误 / 合作咨询:hello@mushroom.cv
💬 评论与讨论
使用 GitHub 账号登录后发表评论