Over 120,000 Bitcoin private keys were exposed through a flaw in Libbitcoin Explorer’s random-number generator

Fuente Cryptopolitan

A newly uncovered vulnerability in a widely used open-source Bitcoin library has led to the exposure of more than 120,000 private keys, according to a report by crypto wallet provider OneKey.

The flaw was traced back to the Libbitcoin Explorer (bx) 3.x series, which allowed attackers to predict wallet private keys generated through insecure random number methods.

According to OneKey’s insight published on X late Friday, Libbitcoin Explorer (bx) 3.x is a command-line utility long used to create Bitcoin wallets offline. The software uses the Mersenne Twister-32 pseudo-random number generator (PRNG), which seeds randomness using only the system time. 

The seed space was limited to 2³² possible values, which helped hackers easily predict the random numbers and brute-force wallet private keys. Anyone aware of when a wallet was generated could reconstruct the same sequence of random numbers and, in turn, derive the private key to access an address’s funds. 

OneKey analysis on the extent of affected wallets

According to the crypto wallet service provider, the issue has been confirmed to affect several wallet implementations that integrated Libbitcoin Explorer or its dependent components, including Trust Wallet Extension versions 0.0.172 through 0.0.183, and Trust Wallet Core versions up to 3.1.1, bar the patched 3.1.1 release.

OneKey, citing an analysis by security researchers, discovered that the security flaw arose from the PRNG’s dependence on predictable entropy. Attackers could reproduce identical private keys for wallets generated at specific timestamps. 

The small seed space and predictable nature of the Mersenne Twister-32 algorithm made it feasible for malicious actors to automate the process and compromise several wallets.

OneKey explained that the flaw may have contributed to previous mysterious fund losses in incidents like the “Milk Sad” case, where victims reported seeing their wallets drained, despite using air-gapped systems for security.

The ‘Milk Sad’ connection did not affect OneKey wallets

The Milk Sad investigation, which began earlier this year, revealed that victims had generated their wallets on air-gapped Linux laptops using commands in Libbitcoin Explorer. In each case, users relied on bx to produce their 24-word BIP39 mnemonic phrases in the belief that the tool made the randomness sufficient.

One command sequence used during wallet generation was bx seed -b 256 | bx mnemonic-new. It generated 256 bits of entropy, which were then converted into a 24-word mnemonic phrase. Due to the flawed random number generator, the supposedly secure mnemonics were in fact predictable.

Although the Milk Sad victims created their wallets years apart, investigators found each used the same version of Libbitcoin Explorer, which unknowingly generated weak private keys.

In its report, OneKey stated that the vulnerability in Libbitcoin Explorer does not compromise the security of mnemonic or private keys in its wallets. The company’s investigation confirmed that its devices and software use a cryptographically secure RNG that meets international security standards.

“All new-generation hardware wallets have Secure Elements (SE) with built-in True Random Number Generators (TRNGs) for key creation. The components are hardware-based and hold EAL6+ certification, levels of security that are recognized globally,” the hardware and cold wallet company confirmed.

Software wallet vulnerability assessment

OneKey also conducted an assessment of its software products, noting that the Desktop and Browser Extension versions utilize a Chromium-based WebAssembly (WASM) PRNG interface. 

The interface operating system uses a Cryptographically Secure Pseudo-Random Number Generator (CSPRNG) as the entropy source, which is the same standard used in modern browsers and secure software systems.

OneKey said its Android and iOS wallets have system-level CSPRNG APIs built into the operating systems themselves. The wallet service’s security team reiterated that the randomness quality in wallet generation directly depends on the integrity of the device and software environment. 

“If the operating system, browser kernel, or device hardware is compromised, the entropy source could be weakened,” it wrote.

The firm has advised users to choose hardware wallets if they plan to store coins for the long term, to minimize the risk of exposure. It also warned them not to import mnemonic phrases generated by software wallets into hardware wallets. 

If you're reading this, you’re already ahead. Stay there with our newsletter.

Descargo de responsabilidad: Sólo con fines informativos. Rentabilidades pasadas no son indicativas de resultados futuros.
placeholder
Plata Previsión del Precio: El XAG/USD se mueve al alza a un máximo histórico por encima de 52.50$ a medida que se profundiza el short squeezeEl precio de la Plata (XAG/USD) atrae a algunos compradores cerca de 52.60$ durante la sesión asiática temprana del martes. El metal blanco ha alcanzado un nuevo máximo histórico, superando su pico anterior de 1980, a medida que un histórico squeeze corto en Londres se intensificó.
Autor  FXStreet
10 Mes 14 Día Mar
El precio de la Plata (XAG/USD) atrae a algunos compradores cerca de 52.60$ durante la sesión asiática temprana del martes. El metal blanco ha alcanzado un nuevo máximo histórico, superando su pico anterior de 1980, a medida que un histórico squeeze corto en Londres se intensificó.
placeholder
El Departamento de Justicia de EE.UU. confisca 127.000 Bitcoin, aumentando las participaciones del gobierno por encima de los 36.000 millones de dólaresEl Departamento de Justicia de EE. UU. (DOJ) confiscó 127.271 Bitcoin (BTC) de un conglomerado con sede en Camboya, Prince Holding Group, y su fundador, Chen Zhi, marcando una de las mayores incautaciones en la historia de las criptomonedas
Autor  FXStreet
10 Mes 15 Día Mier
El Departamento de Justicia de EE. UU. (DOJ) confiscó 127.271 Bitcoin (BTC) de un conglomerado con sede en Camboya, Prince Holding Group, y su fundador, Chen Zhi, marcando una de las mayores incautaciones en la historia de las criptomonedas
placeholder
El Yen japonés se fortalece ante la demanda de refugio seguro; USD/JPY bajo presión por un Dólar más débilEl Yen japonés (JPY) se mantiene en una posición favorable frente a su contraparte americana por tercer día consecutivo y sube a un máximo de más de una semana durante la sesión asiática del jueves.
Autor  FXStreet
10 Mes 16 Día Jue
El Yen japonés (JPY) se mantiene en una posición favorable frente a su contraparte americana por tercer día consecutivo y sube a un máximo de más de una semana durante la sesión asiática del jueves.
placeholder
Plata Pronóstico del Precio: El XAG/USD cae cerca de 53.50$ debido a la toma de beneficiosEl precio de la Plata (XAG/USD) cae hasta cerca de 53.65$ durante las horas de negociación asiáticas del viernes. El metal blanco retrocede de un máximo histórico de 54.86$ en la sesión anterior. Sin embargo, el potencial a la baja para la Plata podría ser limitado en medio de una robusta demanda de refugio seguro y las expectativas de tasas de interés en EE.UU.
Autor  FXStreet
El dia de ayer 02: 22
El precio de la Plata (XAG/USD) cae hasta cerca de 53.65$ durante las horas de negociación asiáticas del viernes. El metal blanco retrocede de un máximo histórico de 54.86$ en la sesión anterior. Sin embargo, el potencial a la baja para la Plata podría ser limitado en medio de una robusta demanda de refugio seguro y las expectativas de tasas de interés en EE.UU.
placeholder
Orange desmiente las informaciones sobre el aumento de la oferta por la participación en MasOrangeEl grupo francés de telecomunicaciones Orange ORAN.PA no ha presentado una oferta mejorada de 4.800 millones de euros (5.600 millones de dólares) por la participación del 50% que no posee en el operador español MasOrange, dijo Orange el jueves, desmintiendo una información del sitio web de noticias El Confidencial.
Autor  Reuters
El dia de ayer 06: 03
El grupo francés de telecomunicaciones Orange ORAN.PA no ha presentado una oferta mejorada de 4.800 millones de euros (5.600 millones de dólares) por la participación del 50% que no posee en el operador español MasOrange, dijo Orange el jueves, desmintiendo una información del sitio web de noticias El Confidencial.
goTop
quote