跳到正文
原文
SlowMist· @SlowMist_Team · X·· 2026-10-20精选AI 评分65
AI 导读

慢雾对 Qubic Wallet 的分析发现,该钱包用同一个非加密安全的 Math.random() 随机流生成账户种子和网络包头中暴露的 dejaVu 值,攻击者理论上可通过 6 次连续观测还原 128 位 PRNG 状态,进而重建 55 字符种子、还原私钥并伪造 SchnorrQ 签名转移资产。

推荐理由

慢雾复盘 Qubic Wallet 随机数缺陷,给出从 6 次网络观测还原私钥的完整链路,可供钱包开发者对照自查。

正文

🚨 Recovering Private Keys from 6 Consecutive Observations: Qubic Wallet Vulnerability Analysis

During our analysis of @_Qubic_ Wallet, we found that the wallet uses the same non-cryptographically secure Math.random() stream for account seed generation and dejaVu values exposed in network packet headers, potentially enabling private key recovery through network observations.

🔍 Root Cause

A shared, non-cryptographically secure random stream → Account seed generation + Network-visible header values

⚠️ Hypothesized Attack Flow

1️⃣ Collect dejaVu values from bridge/peer traffic or the plaintext bridge-to-peer link.
2️⃣ Recover the 128-bit PRNG state using 6 consecutive observations.
3️⃣ Reconstruct the 55-character seed and verify it against the public key exposed in balance requests.
4️⃣ Recover the private key and forge a SchnorrQ signature to transfer assets.

Our PoC validated the technical feasibility of this recovery chain. Actual exploitability depends on network trust boundaries, observation continuity, call alignment, and other consumers of Math.random().

🛡️ Security Recommendations

Use cryptographically secure randomness for key generation, conduct comprehensive external security audits before deployment, and review trust boundaries around random number sources and protocol header fields.

Read the full analysis ⬇️
https://slowmist.medium.com/recovering-private-keys-in-just-6-connections-qubic-wallet-may-have-leaked-most-of-its-private-d87b520dccf6

引用Qubic@_Qubic_
Security incident update. Between 23:42 UTC on 17 October and 01:26 UTC on 18 October, an attacker drained 1,404 Qubic wallets, totalling around 2.94 trillion QU. Here is what happened, what has been done, and what comes next.
在 X 查看被引用的帖子

来源:SlowMist · x.com