source avatarJoseph Hurtado - Founder Granata Consulting

শেয়ার

দ্য কল্ডকার্ড বিটকয়েন হার্ডওয়্যার ওয়ালেট সিকিউরিটি ডিবাকল, বাস্তবে কী ঘটেছিল? @COLDCARDwallet-এর সাথে বাস্তবে কী ঘটেছিল তা নিয়ে সেরা AI রিপোর্ট — Claude Opus 5 Max। যাচাই করার জন্য, কিন্তু এটি খুবই সম্ভাব্য মনে হচ্ছে, এবং এর মানে হলো Trezor এবং Ledger-এর জন্য ঠিকঠাক থাকা উচিত: "কল্ডকার্ডের ব্যর্থতা **নয়** একটি ভাঙা TRNG চিপ। এটি ছিল একটি বিল্ড-কনফিগারেশন বাগ, যা হার্ডওয়্যার TRNG-কে পুরোপুরি চুপচাপভাবে বাইপাস করেছিল। কল্ডকার্ডের বোর্ড কনফিগারেশন `MICROPY_HW_ENABLE_RNG`-কে শূন্যে সেট করে, কারণ Coinkite নিজস্ব হার্ডওয়্যার-RNG ওয়াপার শিপ করে। কিন্তু libngu লাইব্রেরি শুধুমাত্র এই ম্যাক্রোটি *পরিভাষিত* কিনা তা চেক করেছিল, *সক্ষম* কিনা তা নয়, ফলে বিল্ডটি সফলভাবে সম্পন্ন হয়েছিল এবং MicroPython-এর সফটওয়্যার ফলব্যাক—একটি অ-ক্রিপ্টোগ্রাফিক "Yasmarang" জেনারেটর-এর সাথে চুপচাপভাবে বাইন্ড হয়েছিল, যা চিপের UID, SysTick এবং RTC রেজিস্টারগুলির থেকে seed-এড।¹ এইগুলির কোনোটিই গোপনীয়তা নয়: UID-এর 25% USB serial number-এর মতোই factory metadata-এর মধ্যেই, এবং timer-এর value-গুলি constrainable।¹ প্রতিটি generation-এর follow-up: - **Mk2/Mk3 on firmware v4.0.0–v4.1.9** — 100% cryptographically secure entropy-এর *অভাব*। Known UID, timer state, and call history-এর সঙ্গে seed generation *deterministic*। Cold boot-এর realistic ceiling: 2^256-এর পরিবর্তে 2^16 to 2^40 candidates। - **Mk4/Q/Mk5** — boot-এ secure-element entropy add-হয়, but hash-করে 4 byte-ই keep-করে, and `reseed()`-শুধুমাত্র 32-bit state word-এর 1টি overwrite-করে। Ceiling: 2^32, averaging ~2^31 trials। দুটি detail-এই context-টি instructional। Libngu XOR-করে fallback-কে *দ্বিতীয়* Yasmarang stream-এর *সঙ্গে*, initialize-করা published constants-এর *থেকে* — XOR of two reproducible inputs still reproducible।¹ And health check only rejected identical adjacent outputs, which a deterministic PRNG trivially passes।¹ SHA256d over the result doesn't help: hashing can't enlarge the candidate set।¹ প্রায় 594 BTC (~$38M) 25-minute window-এ ~500 single-sig wallets-এর *থেকে* swept, 1,324 UTXOs across a three-block span।³ Coinkite's own advisory Mk3 firmware 4.0.1 through 5.0.3 cover and states Mk4/Q/Mk5 are unaffected on early analysis;² Block's independent report disagrees on that last point and puts current models at the 2^32 bound।¹ Treat both as preliminary. দুটি jargon-free point: exposure depends on the firmware running **when the seed was created**, not the purchase date or current firmware — upgrading does not repair an existing seed।¹ And exporting a weak seed into a different wallet doesn't fix it either।¹ ## How the major wallets generate entropy **Ledger** — single source, but a heavily certified one. The TRNG sits inside the Secure Element; entropy is generated there and mapped to BIP39 words।⁵ Ledger's own security lab describes SE TRNGs as free-oscillator designs validated by third-party labs to EAL5+ and AIS-31, tested across temperature, voltage and frequency with defect-detection built in।⁴ Nano X is EAL5+; Nano S Plus and Stax use EAL6+ parts।⁶ The trade-off is honest: you get certification but not verifiability — the OS is closed-source and there's no host-entropy mixing you can independently check। **Trezor** — multi-source by design, and this is the architectural answer to the Coldcard failure mode। Model One and Model T XOR host-OS entropy with the STM32 hardware TRNG। Safe 3 and Safe 5 add a third source, the Optiga secure element। Safe 7 adds a fourth, the TROPIC01 chip।⁷ The reasoning is that an attacker would need every source to fail simultaneously।⁷ Crucially, you can verify it: `trezorctl` lets you see the entropy the host sent and ask the device to display its internal entropy, then reconstruct the seed yourself and check it matches।⁸ Trezor Suite 25.2.2 (Feb 2025) automated a version of this as the "entropy check," and it's a workflow in the firmware's `ResetDevice`।⁹ ¹⁰ **BitBox02** — five sources: manufacturing randomness, your device password, the host computer, the microcontroller, and the secure chip, combined so each can only add entropy, never subtract।¹¹ Firmware is open-source with reproducible builds independently checked by WalletScrutiny।¹² ## How secure are these against hacking? The honest answer is that the TRNG silicon is essentially never the thing that gets attacked। Every large real-world entropy failure has been an *integration* failure in software: - Android's `SecureRandom` bug drained wallets in 2013⁴ - Milksad (2023) — Libbitcoin Explorer used Mersenne Twister seeded from a 32-bit clock value; ~2,600 wallets compromised, ~$900k confirmed⁷ - Coldcard (2026) — a `#ifndef` that should have been `#if`¹ Attacking a certified SE TRNG requires physical possession, lab equipment and specialist skill। Exploiting an entropy bug requires an xpub or an address — which is public and acts as a free validation oracle, letting an attacker test candidate seeds offline at scale।¹ That asymmetry is why architecture beats certification here। So the practical ranking: 1. **Multi-source mixing** where independent components each contribute। One flawed source can't sink the seed। 2. **Verifiability** — open-source, reproducibly built firmware, plus a way for *you* to confirm the entropy you supplied was actually used। Trezor's entropy check and BitBox's reproducible builds are the concrete examples। 3. **Certification** — real value against physical attacks (EAL5+/6+, AIS-31), but it certifies the component, not the firmware that calls it। Coldcard's Mk4 *had* a secure element; the firmware threw away 28 of its 32 bytes।¹ ## If you want to remove trust in the RNG entirelyডাইস। প্রতিটি D6 রোল 2.585 বিট অবদান রাখে, তাই 50 রোল দিয়ে 128-বিট নিরাপত্তা এবং 99 রোল দিয়ে 256-বিট নিরাপত্তা পাওয়া যায়।¹³ Coldcard-এর নির্দিষ্ট ডাইস পথটি রোল সিকোয়েন্সকে সরাসরি SHA256 দিয়ে হ্যাশ করে এবং ডিভাইস জেনারেটরকে সম্পূর্ণভাবে বাইপাস করে² ¹³ — মনে রাখবেন, এটি শুধুমাত্র `ইম্পোর্ট এক্সিস্টিং > ডাইস রোলস` এর মাধ্যমেই কাজ করে, সাধারণ নিউ ওয়ালেট ফ্লোতে নয়।² BitBox02 একটি সমতুল্য পদ্ধতি প্রকাশ করেছে।¹¹ কখনও রোলগুলির ফটোগ্রাফ বা নেটওয়ার্কযুক্ত কম্পিউটারে টাইপ করবেন না।² একটি শক্তিশালী BIP39 পাসফ্রেজ হল অন্যটি: এটি ডিভাইস RNG-এর বাইরে এনট্রপি যোগ করে, যার কারণে Coinkite বলেছেন যে পাসফ্রেজ-সুরক্ষিত Mk3 ওয়ালেটগুলির ক্ষুদ্রতম ঝুঁকি রয়েছে।² এটি একটি প্রকৃতপক্ষে প্রতিরোধমূলক ব্যবস্থা, স্থানান্তরণের বিকল্প নয়। আপনি যদি প্রভাবিত Coldcard-এর উপর একটি seed জেনারেট করেন, Coinkite এবং Blockউভয়ই ফান্ডগুলি স্থানান্তরিত করার পরামর্শ দেয় —এবং মনে রাখবেন,যদি একটি multisig quorum-এর সমস্ত ডিভাইসইভাইরোনমেন্টগুলিরও।¹ ² --- **সোর্স** 1. Block Engineering — *Predictable RNG Fallback and 32-Bit Reseed in COLDCARD Firmware* — https://t.co/YrOOIe9vZq 2. Coinkite Blog — *Mk3 Security Advisory* — https://t.co/ZSVtMGe7wr 3. CoinDesk — *Major bitcoin wallet flaw drains 594 BTC in 25-minute sweep* — https://t.co/IoK6xqEUOi 4. Ledger Donjon — *Threat Model: Random Number Generation* — https://t.co/L3pZxe9McO 5. Ledger Academy — *What Is The Entropy in Crypto?* — https://t.co/WckSL8rTFM 6. Ledger Academy — *The Secure Element Chip* — https://t.co/0e1bv1VnBr 7. Trezor Knowledge Base — *What is entropy and how does Trezor generate your wallet?* — https://t.co/BNQ0E9trcK 8. Trezor Forum — *Entropy Check on Trezor Model One* — https://t.co/y1sTJpp10u 9. Trezor — *Trezor Suite update February 2025* — https://t.co/HV77m2i5uk 10. Trezor Firmware — *core/CHANGELOG.md* — https://t.co/Zllvf7bw5F 11. BitBox Support Hub — *Can I create a wallet with my own entropy?* — https://t.co/TnGyVIDb2J 12. BitBox — *Security on every level* — https://t.co/Gon18TlnkH 13. COLDCARD Documentation — *Verifying Dice Roll Math* — https://t.co/hATD4o7yI4

দাবিত্যাগ: এই পৃষ্ঠার তথ্য তৃতীয় পক্ষের কাছ থেকে প্রাপ্ত হতে পারে এবং অগত্যা KuCoin এর মতামত বা মতামত প্রতিফলিত করে না। এই বিষয়বস্তু শুধুমাত্র সাধারণ তথ্যগত উদ্দেশ্যে প্রদান করা হয়, কোন ধরনের প্রতিনিধিত্ব বা ওয়ারেন্টি ছাড়াই, বা এটিকে আর্থিক বা বিনিয়োগ পরামর্শ হিসাবে বোঝানো হবে না। KuCoin কোনো ত্রুটি বা বাদ পড়ার জন্য বা এই তথ্য ব্যবহারের ফলে যে কোনো ফলাফলের জন্য দায়ী থাকবে না। ডিজিটাল সম্পদে বিনিয়োগ ঝুঁকিপূর্ণ হতে পারে। আপনার নিজের আর্থিক পরিস্থিতির উপর ভিত্তি করে একটি পণ্যের ঝুঁকি এবং আপনার ঝুঁকি সহনশীলতা সাবধানে মূল্যায়ন করুন। আরও তথ্যের জন্য, অনুগ্রহ করে আমাদের ব্যবহারের শর্তাবলী এবং ঝুঁকি প্রকাশ পড়ুন।