<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pavol Rusnak on Medium]]></title>
        <description><![CDATA[Stories by Pavol Rusnak on Medium]]></description>
        <link>https://medium.com/@pavolrusnak?source=rss-ee7d93e3e375------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0d3CRyIEjq-BFoJjRt-JEw.png</url>
            <title>Stories by Pavol Rusnak on Medium</title>
            <link>https://medium.com/@pavolrusnak?source=rss-ee7d93e3e375------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:01:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pavolrusnak/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Trezor’s USP = Usability + Security + Privacy]]></title>
            <link>https://blog.trezor.io/trezors-usp-usability-security-privacy-bb206761f39?source=rss-ee7d93e3e375------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb206761f39</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[usability]]></category>
            <category><![CDATA[articles]]></category>
            <category><![CDATA[trezor]]></category>
            <dc:creator><![CDATA[Pavol Rusnak]]></dc:creator>
            <pubDate>Thu, 24 Sep 2020 15:04:08 GMT</pubDate>
            <atom:updated>2026-04-13T13:29:19.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYA86orLG6tGrazQP10dJQ.jpeg" /></figure><blockquote><strong>This is no longer the current version of this article. Read the new blog here: </strong><a href="https://trezor.io/blog/insights/trezors-usp-usability-security-privacy">https://trezor.io/blog/insights/trezors-usp-usability-security-privacy</a></blockquote><p>With the invention of the original Trezor One hardware wallet almost a decade ago, SatoshiLabs gave birth to a new industry, focused on securing digital assets. This industry has since grown to hundreds of manufacturers, each attempting to innovate on top of the design principles laid out in our original, open-source plans. There are over 200 contributors on our <a href="https://github.com/trezor/">GitHub</a>. Over fifty wallets are either direct clones of Trezor or use Trezor’s <a href="https://github.com/trezor/trezor-firmware">source code</a> as their core. Examples of such hardware wallets are Coldcard, Keepkey, and Passport.</p><p>To advance the industry more quickly and prevent any company from monopolizing security, everything that goes into Trezor is open source, bringing many benefits to the community. If we give out all our ideas for free, what unique selling propositions remain? Why buy a Trezor wallet instead of a clone? To us, USP stands for usability, security and privacy.</p><h3>Usability</h3><p>When thinking of how to improve our wallet firmware or software, it is always usability which comes first. We carefully select what features are added to our wallet, with a main criteria being whether it will make it easier for people to use Bitcoin. Bitcoin is still experimental technology and therefore some features can be complicated for the average user to make use of. We find ways to simplify them, with a strong track record of contributing improvements both to Bitcoin protocols as well as Trezor functions.</p><p>We also regularly contribute to the many open-source projects we use in our products such as <a href="https://bitcoincore.org/">Bitcoin</a>, <a href="https://electrum.org/">Electrum</a>, <a href="https://micropython.org/">MicroPython</a>, <a href="https://wiki.trezor.io/FIDO2">FIDO2 libraries</a>, <a href="https://nixos.org/">NixOS</a>, <a href="https://tails.boum.org/">Tails</a>, etc. In doing so, we put usability and interoperability at the forefront, while also learning a lot about the broader ecosystem that Bitcoin is only a small part of. This is mutually beneficial as it not only improves Bitcoin by integrating well-supported projects, but it also enhances Trezor’s capabilities through the improvements these tools continually bring to the technological landscape.</p><h3>Trezor is a driving force behind Bitcoin standards</h3><p>Bitcoin Improvement Proposals, known as BIPs, aim to improve the security and usability of bitcoin. Trezor has created a number of standards (such as <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">BIP39</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki">BIP44</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki">BIP84</a>) which are now used by literally all hardware wallets and a vast majority of the software wallets. If you take a deeper dive into these standards, you will see how SatoshiLabs has succeeded in simplifying Bitcoin wallet recovery immensely in BIP39 by introducing the now-ubiquitous mnemonic seed word recovery process, which was once simply made up of a long random number.</p><p>This usability focus extends further, into simplifying the user experience while encouraging them to make use of privacy features inherent to bitcoin. BIP44 and BIP84 let users manage a whole bunch of wallets under one account, letting you better manage your funds. This allows you to separate wallets which you want to be public — for receiving donations, for example — from those you want to keep hidden, such as your main savings account. It also made it much easier to create backups as your accounts could all be recovered from one seed.</p><h3>Complexity is Harmful</h3><p>Bitcoin is still fairly complex for many people, which is why we recognize the need to improve not only the technology itself but also the interfaces which people use to interact with it. Usability is one of the key criteria behind everything we develop because it is a huge barrier to adoption. Introducing things like wallet labeling, estimated transaction fees and general user experience improvements are part of this. While we support advanced features for the users who know what they’re doing, we also expect to simplify those as demand rises. We believe in creating a universal product that doesn’t introduce unnecessary complexity, no matter the end goal.</p><p>As an example of this, last year we created an improvement to the mnemonic seed (BIP39), called <a href="https://blog.trezor.io/shamir-backup-a-new-security-standard-3aa42a6ebb5f">Shamir Backup</a> (also known as <a href="https://github.com/satoshilabs/slips/blob/master/slip-0039.md">SLIP39</a>). It offers greatly improved security by splitting a seed phrase into multiple component parts, which must be used together to grant access to a wallet. This feature is excessive for many people new to bitcoin or with small holdings, but for people searching for tighter security measures it offers a way to easily protect against theft of a backup, without relying on an overly complex process which could end up locking you out of your own funds. This feature is still exclusive to Trezor, but multiple hardware wallet vendors have pledged to implement support for it in the future, once again showing Trezor’s advancements leading the push for usability in security.</p><p>These standards have proven themselves essential for interoperability between various implementations of wallets, making it possible to seamlessly migrate funds from one wallet to another without any issues. Even outside of crypto, these improvements are finding new uses, such as in <a href="https://grapheneos.org/">GrapheneOS</a>, a security and privacy-centric Android distribution, which uses the BIP39 seed phrase to backup the storage encryption keys. In Trezor, SatoshiLabs have built an easy-to-use, unified environment that covers buying, selling, saving and storing bitcoin, no matter your expertise.</p><h3>Security</h3><p>Bitcoin exists on a network, accessible by anyone, so there is no way to take your Bitcoins offline. Instead, to protect from network attacks, Trezor wallets keep your private keys shielded from any network, meaning that no-one can move any bitcoin you own, even if they know your public key and the address where your bitcoins are stored. This is the principle behind all hardware wallets which exist today.</p><p>One of the biggest threats when you send bitcoins is malware attempting to send your funds to an address other than the one you specified. Trezor is engineered in a way that such attempts are revealed when you confirm the transaction on the device. This means that while malware may infect your browser and hide the fact that it’s sending your funds elsewhere, your Trezor will show exactly where it’s being sent so you can cancel the transaction.</p><h3>Collaboration Improves Security</h3><p>SatoshiLabs is rooted in bitcoin’s cypherpunk legacy, which is why Trezor has been an open-source project since the beginning. This means Trezor is fully auditable, with no hidden places where potential backdoors can reside. This also means we are able to invite anyone who wants to, to build their own Trezors in case they don’t want to trust us <a href="https://youtu.be/jKg1cnQ7GDo?t=119">or our funny accents</a>. Plenty of people in the community have already done so:</p><ul><li><a href="https://www.instructables.com/id/Making-My-Own-Trezor-Crypto-Hardware-Wallet/">Voltlog’s Making My Own Trezor Crypto Hardware Wallet</a></li><li><a href="https://www.stellaw.info/blog/2016/3/5/dinosaur-hiphop-zero-alphaprototype-dev-kits-for-sale">Stellaw’s Dinosaur Hip Hop Zero</a> dev kit</li><li>Mcudev’s <a href="https://mcudev.github.io/trezor-dev-kit/">Trezor One</a> and <a href="https://mcudev.github.io/trezor-model-t-dev-kit/">Trezor Model T</a> dev kits and guides</li><li>Tom Fuerstner’s Experiments (<a href="https://twitter.com/tomfuerstner/status/1275403755052306438">tweet</a>, <a href="https://twitter.com/tomfuerstner/status/1307671754211459075">tweet</a>, <a href="https://twitter.com/tomfuerstner/status/1285643714556297216">tweet</a>)</li></ul><p>There are even proprietary Hardware Security Modules based on Trezor such as <a href="https://developer.squareup.com/blog/open-sourcing-subzero/">Subzero Cold Storage</a> by Square, which is used to store Bitcoins for its Cash App users. And you can find Trezor code running on the HTC Exodus blockchain-focused phone or even on a <a href="https://twitter.com/tomfuerstner/status/1306891599633317889">Mercedes EQC 400</a>!</p><p>Part of the reason for all this third-party integration is that we actively seek it out. We specifically created a JavaScript platform for easy integration of Trezor into 3rd party services, called <a href="https://github.com/trezor/connect">Trezor Connect</a>. This encourages continually security checks to be carried out, making sure our protections are always up-to-date. More than 400 wallets and businesses have already hopped on board, with these being just a few of the well-known examples:</p><ul><li>Unchained Capital (<a href="https://unchained-capital.com/blog/trezor-and-unchained-make-multisignature-safer/">blogpost</a>)</li><li>Binance</li><li>MyEtherWallet</li><li>MyCrypto</li><li>CoinPayments</li><li>ShapeShift (<a href="https://twitter.com/ShapeShift_io/status/1149001307698544640">tweet</a>)</li><li>AdaLite</li><li>SimpleStaking</li></ul><h3>Trezor has a Responsible Disclosure / Security Bounty program</h3><p>Security is a process consisting of many moving parts. There are dozens of attack surfaces which must be addressed and it is unfeasible for a small team of developers to protect against all of them at once. That’s why we make security a collaborative effort. We enlist the help of security experts from around the world to make sure our devices are tested in every possible scenario.</p><p>Not only is Trezor code open-source, allowing the code to be fully audited, but we actively incentivize security researchers to look into our code by having a <a href="https://trezor.io/security/">Responsible Disclosure / Security Bounty program</a>. This means that if they responsibly disclose a real vulnerability in our products, we pay them a bounty after the issue is fixed. This led Trezor to receive a lot of constructive scrutiny in the beginning, costing hundreds of thousands dollars for the bounties and resulting in a far more secure product. Earlier, we mentioned that around 50 wallets use our code, meaning they also receive the same scrutiny and security fixes for free!</p><h3>Why Transparency Matters to Security</h3><p>It is never enough to rely on internal security teams’ testing processes to create a secure product. No matter how many possible vulnerabilities you account for, a hacker will find another way in. To account for this, we open our testing to everyone, so the same hackers who might launch an attack are instead given a reason to help patch it, in the form of bounties. This is a great practice which is widely recognized by some of the biggest names in information security. Many other widely used hardware wallet vendors do not do this and therefore have a limited number of attacks which they can protect from.</p><p>Some of our competitors instead rely on closed-source products which are marketed as secure, but offer no information about how that security is achieved. This means that they have only been tested by an internal team, or have been granted a security certification based on a limited list of criteria. Closed security does not work because vulnerabilities are bound to exist, even if they have not been found yet.</p><p>There has been criticism in the past that Trezor does not use a secure element for assuring physical security. During our experiments in the past, we realized that no secure element meets our high standards and therefore, not wanting to go down the path of selling snake-oil, we started a separate project, <a href="https://youtu.be/saFohC-QYT0">Tropic Square</a> which will deliver a secure element for use in Trezor and other critical applications.</p><p>Without knowing how security is achieved, it is impossible to trust that a product is secure, and those companies creating so-called secure elements use non-disclosure agreements to prevent anyone from revealing vulnerabilities if they are found. A global asset like Bitcoin needs to withstand any attack imaginable, and therefore needs to be vetted by experts from all over the world to account for an almost infinite spectrum of potential attacks.</p><h3>Privacy</h3><p>Privacy and security are not the same. It is possible to have a secure system while still revealing data that makes you a target for attackers. This is therefore a guiding principle in Trezor’s design. For starters, all our sales are anonymized, meaning that no data about our customers is kept on internal systems for more than 90 days. Given recent data leaks affecting our competitors, we take comfort in the knowledge that even if our databases were breached, there would be <a href="https://blog.trezor.io/trezor-e-shop-breach-is-a-hoax-d943ce267b66">very little data</a> that the attackers could take.</p><p>We want all our customers to think about privacy because it is one of Bitcoin’s great advantages over conventional currencies. While the bitcoin transactions are transparent, meaning anyone can see how much bitcoin is stored at a certain address, there is no reason why you need to associate your identity with that address. Doing so could make you a target for theft, allowing an attacker to focus their attention on extracting personal information about you in the hopes of discovering your passphrase, seed or even where you live. At a political level, it could also allow governments to impose disproportionate taxation or other penalties on their citizens based on their ownership of cryptocurrencies. Bitcoin is apolitical and its privacy mechanisms should be seen as a tool for actively resisting such abuses of power.</p><p>At SatoshiLabs, we are not interested in knowing about you. Our Trezor devices are fully equipped to help you disconnect from us entirely. We allow you to use your own backends or manage your funds using your hardware device with third-party software if you wish. Even if our company goes bankrupt, our source code remains available, and in the face of technological obsolescence you will have access to all the tools you need to manage your coins. In the meantime, we are actively working on implementing new tools which help resist heavy-handed regulations that threaten bitcoin’s privacy functions.</p><p>Because we do not want you to feel obliged to depend on our servers, we also open-sourced our own backend called <a href="https://github.com/trezor/blockbook">Blockbook</a>. You can download it and run it on your own. There are hundreds of businesses doing that already and they use Blockbook as their backend for tracking coin balances, such as OpenBazaar, Magnum Wallet, and Atomic Wallet.</p><h3>Security cannot come at the expense of Usability</h3><p>Trezor is striving to create a 100% auditable security environment that both beginners and long-time bitcoiners alike can easily use. We see it as essential that our product grant users access to all the functions of bitcoin without exposing them to easily-misused functions.</p><p>Trezor is an active part of the development community and uses its resources and reach to educate users, allowing them to take advantage of all of bitcoin’s benefits without exposing them to the guts of bitcoin technology.<strong> </strong>By buying a Trezor you are not only getting a hardware wallet but you are funding the whole Bitcoin and cryptosecurity ecosystem, one which Trezor has proven itself to be an essential cornerstone of.</p><p>As we have grown we have sought out ways to make our security more robust while retaining the ease-of-use our customers are familiar with. The next steps we are taking are guided by expansion into providing even greater security, privacy and usability, in a comprehensive strategy to ensure we remain the most reliable and usable wallet on the market. We are glad to have your support and expect that our upcoming developments will enhance the Trezor experience in all the right ways, so keep an eye on our social media for when they’re announced.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb206761f39" width="1" height="1" alt=""><hr><p><a href="https://blog.trezor.io/trezors-usp-usability-security-privacy-bb206761f39">Trezor’s USP = Usability + Security + Privacy</a> was originally published in <a href="https://blog.trezor.io/">Trezor Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Details of firmware updates for Trezor One (version 1.9.1) and Trezor Model T (version 2.3.1)]]></title>
            <link>https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-1-and-trezor-model-t-version-2-3-1-1eba8f60f2dd?source=rss-ee7d93e3e375------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eba8f60f2dd</guid>
            <category><![CDATA[dev-corner]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[trezor]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[updates]]></category>
            <dc:creator><![CDATA[Pavol Rusnak]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 12:59:53 GMT</pubDate>
            <atom:updated>2020-06-03T21:07:46.387Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5ODcBtzz0P8rCjPqIonBA.jpeg" /></figure><p>This Wednesday we are releasing the firmware update 1.9.1 for Trezor One and 2.3.1 for Trezor Model T devices. Apart from some internal refactoring tasks, the main reason to deliver the updates is to fix a security vulnerability found by Saleem Rashid. The bug was reported via our responsible disclosure program and we thank Saleem for yet another great contribution.</p><h3>Possible large transaction fee via two Segwit transactions</h3><h4>Introduction</h4><p>For non-Segwit transactions, Trezor always requires the previous transaction to check the UTXO’s real balance. Why? An attacker could claim that the UTXO’s balance is lower than it actually is. As you might know, the difference between input and output amounts is considered as the transaction fee in the Bitcoin network. That means the user would pay a significantly larger fee without actually knowing it. That is why Trezor requires the previous transaction to check the real amount.</p><p>This is true for non-Segwit transactions and this check was in place from the very beginning. With the introduction of Segwit, the Bitcoin developers tried to simplify this. When signing a Segwit transaction a slightly different piece of data is being signed. This is defined in BIP-143 and one of the changes was that the amount of the UTXO is present in the signed data. This helps significantly; if the attacker lies about the UTXO’s amount, the signature is simply not valid in the Bitcoin network.</p><h4>Vulnerability</h4><p>Saleem found a clever way to circumvent this. Consider this scenario:</p><ol><li>The victim has two SegWit/BIP-143 UTXOs of 15 BTC and 20 BTC.</li><li>The malware asks the user to confirm a transaction with input 1 as 15 BTC and input 2 as 5.00000001 BTC, with the user’s chosen outputs and a valid change output, if necessary.</li><li>The user confirms the transaction, spending 20 BTC plus 0.00000001 BTC fee.</li><li>The malware throws an error and tells the user to confirm the transaction again (e.g. “Uh, oh! Something went wrong. Please try again.”).</li><li>The malware asks the user to confirm a transaction with input 1 as 0.00000001 BTC and input 2 as 20 BTC, with exactly the same outputs as before.</li><li>The user sees an apparently identical transaction, and again confirms spending 20 BTC plus 0.00000001 BTC fee.</li><li>The malware uses the signature of input 1 from the first transaction, and the signature of input 2 from the second transaction, creating a transaction that in fact spends 15 BTC from input 1 <strong>and </strong>20 BTC from input 2.</li><li>The user ends up paying a transaction fee of just over 15 BTC.</li></ol><blockquote><strong>Note that this vulnerability is inherent in the design of </strong><a href="https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki"><strong>BIP-143</strong></a> and it is even hinted at in the Taproot proposal described in <a href="https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-17">BIP-341</a> (Rationale, <a href="https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#cite_note-17">note 17</a>). <strong>This flaw affects all hardware wallet vendors</strong>, some of which requested 90 days to implement the solution. That is why it took us longer than usual to release this fix because we respect the rules of coordinated disclosure.</blockquote><h4>Fix</h4><p>The fix is straightforward — we need to deal with Segwit transactions in the very same manner as we do with non-Segwit transactions. That means we need to require and validate the previous transactions’ UTXO amounts. That is exactly what we are introducing in firmware versions 2.3.1 and 1.9.1.</p><h3>Third parties</h3><p>Unfortunately, some third-party tools do not allow hardware wallets to obtain the previous transaction in case of SegWit inputs, which is why Trezor will not be able to sign transactions using these tools until they are updated to work correctly. Due to the responsible disclosure process, we were not able to inform the maintainers beforehand.</p><h4>Web-based applications</h4><p>Applications using Trezor Connect version 8 will continue to work seamlessly.</p><p>If you encounter problems in your favorite Trezor-enabled web application, please let the developers know that they should upgrade to Connect v8.</p><h4>Electrum</h4><p>We are providing a patch for Electrum as a pull <a href="https://github.com/spesmilo/electrum/pull/6198">request #6198</a>. It will be impossible to use Electrum with Trezor 1.9.1 and 2.3.1 until this patch is released.</p><h4>PSBT-based tools</h4><p>This section is of concern to users of HWI, BTCPay Server, and Wasabi wallet, as all these tools are internally using the BIP-174 PSBT format.</p><p>The PSBT format allows specifying either the full previous transaction or just the previous output. The latter is recommended for SegWit inputs. In order to fix the security issue, it is necessary to ignore this recommendation and supply full previous transactions in all cases.</p><p>A bug in HWI <a href="https://github.com/bitcoin-core/HWI/issues/338">(issue #338</a>) must be fixed to properly submit the previous transaction to Trezor. Afterwards, modifications to BTCPay Server (<a href="https://github.com/btcpayserver/btcpayserver/issues/1631">issue #1631</a>) and Wasabi (<a href="https://github.com/zkSNACKs/WalletWasabi/issues/3734">issue #3734</a>) will be necessary.</p><h3>Timeline</h3><ul><li>2020–03–03 — issue reported by Saleem Rashid, coordination with other vendors is required</li><li>2020–06–03 — firmware update 1.9.1 for Trezor One released</li><li>2020–06–03 — firmware update 2.3.1 for Trezor Model T released</li></ul><h3>About Us</h3><p><em>Created by SatoshiLabs in 2014, the Trezor One is the original and most trusted hardware wallet in the world. It offers unmatched security for cryptocurrencies, password management, and serves as the second factor in Two-Factor Authentication. These features combine with an interface that is easy to use whether you are a security expert or a brand new user.</em></p><p><em>Trezor Model T is the next-generation hardware wallet, designed with the benefits of the original Trezor in mind, combined with a modern and intuitive interface for improved user experience and security. It features a touchscreen, faster processor, and advanced coin support, as well as all the features of the Trezor One.</em></p><figure><a href="https://shop.trezor.io/"><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*BepxMcNdMlfStMsa.jpeg" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eba8f60f2dd" width="1" height="1" alt=""><hr><p><a href="https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-1-and-trezor-model-t-version-2-3-1-1eba8f60f2dd">Details of firmware updates for Trezor One (version 1.9.1) and Trezor Model T (version 2.3.1)</a> was originally published in <a href="https://blog.trezor.io/">Trezor Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Details of firmware updates for Trezor One (version 1.9.0) and Trezor Model T (version 2.3.0)]]></title>
            <link>https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-0-and-trezor-model-t-version-2-3-0-46deb141fc09?source=rss-ee7d93e3e375------2</link>
            <guid isPermaLink="false">https://medium.com/p/46deb141fc09</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[dev-corner]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[trezor]]></category>
            <dc:creator><![CDATA[Pavol Rusnak]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 12:31:00 GMT</pubDate>
            <atom:updated>2020-04-17T13:36:51.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-3ZAM1QLSnbDehJGXd7_w.png" /></figure><p>This Wednesday we are releasing the firmware update 1.9.0 for Trezor One devices and firmware update 2.3.0 for Trezor Model T devices. This post describes the new features and security fixes brought by these updates.</p><h3>New Features</h3><h4>Passphrase Redesign + Session Caching</h4><p><a href="https://wiki.trezor.io/Passphrase">Passphrase</a> is an important part of the whole Trezor ecosystem. In these firmware updates we have overhauled the design and made many internal improvements and two major user-facing changes.</p><p>First, on both of our device models, we are introducing passphrase caching. Up until now, if you used multiple passphrases, you had to enter the passphrase again every time you switched to a different passphrase-protected wallet. Depending on the usage, Trezor is now capable of caching up to 10 passphrases at the same time. This does not concern the <a href="https://wallet.trezor.io/">Wallet</a> at the moment because it requires Trezor to be reconnected to change the passphrase. However this is ready for the next generation of our wallet, which is coming soon. Stay tuned!</p><p>Second, on Trezor Model T, the decision whether the passphrase will be entered on the device is prompted directly in the Wallet (see picture below). This helps the overall UX since the user’s focus stays in the Wallet until the passphrase needs to be entered on the device. On the other hand, if you like to be asked for the passphrase on the device every time, you can use<br><a href="https://wiki.trezor.io/Using_trezorctl_commands_with_Trezor">trezorctl</a> set passphrase enabled --force-on-device to enforce that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*YMjrFwd8W1dx1dJSe0jVBw.png" /></figure><h4>Wipe Code</h4><p>The wipe code functions as a “self-destruct PIN”. If the wipe code is ever entered into any PIN entry dialog, then all private data will be immediately erased from your Trezor and the device will be reset to factory defaults. You can write the wipe code somewhere near your Trezor as a decoy PIN, so that if someone tries to unlock the device without your consent, they will cause it to wipe itself.</p><p>To enable this feature you will need trezorctl version 0.11.6 or later. The command to set or change the wipe code is: trezorctl set wipe-code</p><p><strong><em>Note that when changing the wipe code you first need to enter your PIN. Trezor never asks for the old wipe code, so if you accidentally enter it, the device will get wiped!</em></strong></p><p>To disable the wipe code feature use: trezorctl set wipe-code -r</p><h4>MultiSig: Show XPUBs</h4><p>While showing a multisig address on the Trezor device, a user can also show individual XPUBs which are involved and confirm that the address is correct.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*ZO68UhDVBjGLHJnzSh6AIQ.gif" /></figure><h4>Ed25519 in FIDO2</h4><p>Two-factor authentication (2FA) standards supported by Trezor (U2F and FIDO2) use ECDSA signatures with the NISP P-256 curve by default. But for those of you who strive to use state of the art cryptography to secure your logins, Trezor Model T now supports Ed25519 signatures in FIDO2. You will mainly appreciate this if you use <a href="https://blog.trezor.io/openssh-with-fido2-and-trezor-e565c2277">OpenSSH with FIDO2</a>.</p><h4>SD card protection</h4><p>This feature serves as additional protection against physical attacks on the Trezor Model T. When it is enabled, a randomly generated secret is stored on the microSD card that you can insert into your Trezor Model T. During every PIN checking and unlocking operation this secret is combined with the entered PIN value to decrypt data stored on the device. Simply put, the device gets bound to the SD card and cannot be unlocked without it until you intentionally disable the feature or factory-reset your Trezor. Thus if you are concerned about physical attacks, you can remove the SD card whenever the device is not in use and keep the two in separate locations. One without the other is worthless to an attacker, because the SD card secret is an entirely random value which carries no information about your seed or passphrase.</p><p>To enable this feature you will need trezorctl version 0.11.6 or later and a FAT32 formatted microSD card. If the card is not properly formatted, then Trezor will offer to erase and format the card for you. There are three commands related to SD protect:</p><p>trezorctl device sd-protect enable</p><p>trezorctl device sd-protect disable</p><p>trezorctl device sd-protect refresh</p><p>The refresh command replaces the current SD card secret with a new one. This is useful if you inserted the SD card into a malware-infected computer and are worried that the secret stored on the card may have been compromised.</p><h3>Security Fixes</h3><p>This round of updates also brings five fixes to security vulnerabilities. Four of them were reported by a long-time contributor to Trezor: Saleem Rashid, while the last one was reported by Sebastian Kung. We’d like to applaud both security specialists for their outstanding work and for disclosing their findings via our responsible disclosure program. <strong>Thank you!</strong></p><h4>OP_RETURN treated as change output</h4><p>This vulnerability was present only on the Trezor Model T.</p><p><a href="https://en.bitcoin.it/wiki/OP_RETURN">OP_RETURN</a> is a special script opcode in Bitcoin, which allows adding arbitrary data to the transaction in the blockchain. OP_RETURN outputs have no destination and these outputs are unspendable.</p><p>Consider a transaction with two outputs, one of which is OP_RETURN and the other one is a change output. By “change output” we mean an output constructed from the user’s seed defined by the path sent in the address_n field. This field has no meaning for OP_RETURN since it does not have any destination or an address.</p><p>Nevertheless, when this field was sent for an OP_RETURN output into Trezor, equal to the other output’s address_n, then Trezor evaluated the OP_RETURN as a change output. Since change outputs do not require confirmation on Trezor, the confirmation dialog for the OP_RETURN output wasn’t displayed. Fortunately, Trezor checks that the amount is equal to 0 for every OP_RETURN output so it wasn’t possible to burn any coins. However, this is still a bug, because some applications build on top of the Bitcoin blockchain using the OP_RETURN (such as the Omni layer).</p><p><strong>How was the vulnerability fixed?</strong></p><p>Trezor now strictly validates all transaction outputs before signing. For OP_RETURN, an error is raised if some unexpected fields are provided. We also make sure an output is only marked as a change-output if the script type matches the correct subset.</p><h4>Malicious change in mixed transactions</h4><p>This vulnerability was present only on the Trezor Model T.</p><p>In order to be able to sign large transactions with many inputs or outputs, we came up with a technique called <em>streamed signing</em>. This process has two main phases. In the first phase all inputs are sent to the wallet to determine the amount being spent and all outputs are sent to be confirmed one by one on the wallet’s screen by the user. There is one exception, a <a href="https://en.bitcoin.it/wiki/Change">change-output</a> does not require user confirmation, because the funds going into this output remain in the user’s possession. In the second phase, all inputs are again sent to the wallet to be signed one by one, while checking that nothing has changed.</p><p>A multisig address can also serve as a change-output, but only if all inputs come from that same multisig address. It was possible to claim in the first phase that an input comes from some multisig address, when in fact it did not. This vulnerability would allow a malware-infected computer to mislead Trezor Model T into incorrectly identifying a multisig output as a change-output. The malware would thus be able to provide a 1-of-2 multisig output which would not require user confirmation. The two multisig participants of this output would be the user and the attacker, either of which could then spend this output, leading to possible theft of user funds.</p><p><strong>How was the vulnerability fixed?</strong></p><p>The cause of this vulnerability was that Trezor Model T did not properly verify that the information provided about the inputs was the same in both phases. In the second phase an additional verification step was added to ensure that if all inputs in the first phase had the same multisig address, then they all still have that same address in the second phase.</p><h4>Insufficient field size check in Protobuf</h4><p>This vulnerability was present only on the Trezor Model T.</p><p>Trezor communicates with the host computer via <a href="https://developers.google.com/protocol-buffers/">Protobuf</a>-encoded messages. Each message consists of several fields, and each field can contain a number, text, sequence of bytes, or a sub-message. Notably, however, Protobuf does not place any restrictions on the <em>length</em> of the field. When you receive a message with a bytes field, it can be one byte, zero bytes, or 4 000 000 bytes.</p><p>Each Bitcoin transaction input is sent to Trezor as a protobuf message, which contains the previous transaction hash (or <em>prevhash</em>) encoded as bytes. The prevhash must always be exactly 32 bytes long, but Trezor Model T would accept a prevhash of any length.</p><p>Due to that, malware might craft a transaction that could be interpreted in two different ways: first, a legitimate transaction which unknowingly contains a very long prevhash; and second, hidden in the long prevhash is an output sending all funds to the attacker’s address. The first version would be sent to Trezor in the first phase, where the user is asked to confirm the outputs. The second version would be sent in the second phase, where signatures are generated.</p><p>Fortunately, due to unrelated limitations, the resulting transaction would be non-standard and would not be propagated by the Bitcoin network. An attacker wanting to spend this transaction would have to mine their own block.</p><p><strong>How was the vulnerability fixed?</strong></p><p>A check was added that rejects transaction hashes sent from the computer if they are not exactly 32 bytes long. In addition, the field length is double-checked when generating the binary representation of a transaction.</p><h4>Inconsistent sanitization of transaction inputs</h4><p>Similarly to the other attacks described above some fields were not sanitized properly. In this case, an attacker might have created a special transaction consisting of a traditional (single signature) input and a multisig output. The attacker composed the multisig part of the output as a 1 of 2 multisig, where one of the participants was the victim and the other one was the attacker. When the multisig field was sent for the input as well (although marked as a <em>single signature</em>)<em> </em>Trezor incorrectly concluded the output is a change-output.</p><p><strong>How was the vulnerability fixed?</strong></p><p>The inputs and outputs are now thoroughly validated on arrival.</p><h4>Monero unlock_time issue</h4><p>This vulnerability was present only on the Trezor Model T.</p><p>The Monero field unlock_time was not confirmed on the device’s display. Since the Monero network does not do any sanity checks for this field, this allows a perpetrator to lock user’s funds for a very long time by simply setting it to a very high value.</p><p><strong>How was the vulnerability fixed?</strong></p><p>We fixed the issue by showing the contents of the unlock_time field on the device’s display if it is set to a non-standard (non-zero) value.</p><h3>Summary and the key takeaway</h3><p>In this round of firmware updates we introduced several new features (such as Wipe Code and SD card protection) and fixed five security issues. At the time of writing this article, there is no evidence that any of these vulnerabilities have ever been exploited. As always, we strongly recommend keeping all Trezor devices updated with the latest firmware to maintain the maximum level of security.</p><h3>How can I update my Trezor?</h3><p>You will find the step-by-step instructions in our <a href="https://wiki.trezor.io/User_manual:Updating_the_Trezor_device_firmware">User manual</a>. Before you start, make sure to have your recovery seed ready at hand.</p><p>Please note that if your Trezor One device is currently running firmware version 1.6.1 (bootloader version 1.4.0), your device memory will be wiped after this update. Please make sure you have the correct recovery seed with you, as you will need to recover your Trezor device from seed backup. You can<a href="https://wiki.trezor.io/User_manual:Dry-run_recovery"> test your recovery seed</a> before you update the device firmware.</p><h3>Timeline</h3><ul><li>2020–02–01 — “Monero unlock_time issue” reported by Sebastian Kung</li><li>2020–03–02 — “OP_RETURN treated as change output” reported by Saleem Rashid</li><li>2020–03–02 — “Malicious change in mixed transactions” reported by Saleem Rashid</li><li>2020–03–05 — “Insufficient field size check in Protobuf” reported by Saleem Rashid</li><li>2020–03–07 — “Inconsistent sanitization of transaction inputs” reported by Saleem Rashid</li><li>2020–04–15 — firmware update 1.9.0 for Trezor One released</li><li>2020–04–15 — firmware update 2.3.0 for Trezor Model T released</li></ul><h3>About Us</h3><p><em>Created by SatoshiLabs in 2014, the Trezor One is the original and most trusted hardware wallet in the world. It offers unmatched security for cryptocurrencies, password management, and serves as the second factor in Two-Factor Authentication. These features combine with an interface that is easy to use whether you are a security expert or a brand new user.</em></p><p><em>Trezor Model T is the next-generation hardware wallet, designed with the benefits of the original Trezor in mind, combined with a modern and intuitive interface for improved user experience and security. It features a touchscreen, faster processor, and advanced coin support, as well as all the features of the Trezor One.</em></p><figure><a href="https://shop.trezor.io/"><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*BepxMcNdMlfStMsa.jpeg" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46deb141fc09" width="1" height="1" alt=""><hr><p><a href="https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-0-and-trezor-model-t-version-2-3-0-46deb141fc09">Details of firmware updates for Trezor One (version 1.9.0) and Trezor Model T (version 2.3.0)</a> was originally published in <a href="https://blog.trezor.io/">Trezor Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BIP158: Compact Block Filters]]></title>
            <link>https://blog.trezor.io/bip158-compact-block-filters-9b813b07a878?source=rss-ee7d93e3e375------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b813b07a878</guid>
            <category><![CDATA[bip158]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dev-corner]]></category>
            <dc:creator><![CDATA[Pavol Rusnak]]></dc:creator>
            <pubDate>Fri, 06 Mar 2020 15:47:55 GMT</pubDate>
            <atom:updated>2020-03-06T15:47:55.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0g-wNowZ2AcuIudKEAr9Zw.jpeg" /></figure><p>Bitcoin Core 0.19, released in November 2019, contains an exciting addition called <a href="https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki">Compact Block Filters (BIP158)</a>, which are a replacement for <a href="https://github.com/bitcoin/bips/blob/master/bip-0037.mediawiki">Bloom Filters (BIP37)</a> disabled in the same release.</p><p>These filters provide a space-efficient and fast way for testing whether an element is a member of a set. In this particular use-case, to tell whether a particular block somehow affects an address (more precisely an output script). Although the check may produce false positives (saying the block does affect the address when it does not), the chances are minimal (1 in 784931). Still, the check will never produce a false negative (saying the block does not affect the address when it does). This makes it ideal for filtering out the vast majority of blocks we want to process without the need to download them first. Compact Block Filters use <a href="https://giovanni.bajo.it/post/47119962313/golomb-coded-sets-smaller-than-bloom-filters">Golomb-coded sets (GCS)</a>, which have an advantage over Bloom filters by providing the same false-positive rate with much less size.</p><p>To enable this new feature, you need to add the blockfilterindex=1 option into your bitcoin.conf file and restart the daemon. Doing so will build a “blockfilter” index, which takes around 5 GiB of disk space and 1 hour to create. Once enabled, you’ll be able to use a new RPC method called <a href="https://bitcoincore.org/en/doc/0.19.0/rpc/blockchain/getblockfilter/">getblockfilter</a>.</p><p>How do these filters work practically? Let’s have a look at block <a href="https://tbtc1.trezor.io/block/000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313">#926485</a> on the Bitcoin testnet:</p><pre>$ bitcoin-cli -testnet getblockhash 926485</pre><pre>000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313</pre><p>The hash of the block is 000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313. Let’s have a look at its filter (the getblockfilter call needs block hash as its argument, not the block height):</p><pre>$ bitcoin-cli -testnet getblockfilter 000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313</pre><pre>{ &quot;filter&quot;: &quot;09027acea61b6cc3fb33f5d52f7d088a6b2f75d234e89ca800&quot;,<br>  &quot;header&quot;: &quot;546c574a0472144bcaf9b6aeabf26372ad87c7af7d1ee0dbfae5e099abeae49c&quot; }</pre><p>The call returns two values — “filter” and “header.” In our experiments, we’ll be using just the “filter” field. The “header” field described in <a href="https://github.com/bitcoin/bips/blob/master/bip-0157.mediawiki#Filter_Headers">BIP157</a> is there to verify the chain of filter values.</p><p>Let’s rewrite the bitcoin-cli commands above to Javascript:</p><pre>const Client = require(&#39;bitcoin-core&#39;);</pre><pre>const rpc = new Client({ network: &#39;testnet&#39; });</pre><pre>rpc.command(&#39;getblockhash&#39;, 926485).then((hash) =&gt; {<br>  console.log(hash);<br>  rpc.command(&#39;getblockfilter&#39;, hash).then((filter) =&gt; {<br>    console.log(filter);<br>  });<br>});</pre><p>Running this via node will produce the more-or-less the same output:</p><pre>000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313</pre><pre>{<br>filter: &#39;09027acea61b6cc3fb33f5d52f7d088a6b2f75d234e89ca800&#39;,<br>header: &#39;546c574a0472144bcaf9b6aeabf26372ad87c7af7d1ee0dbfae5e099abeae49c&#39;<br>}</pre><p>We now know that09027acea61b6cc3fb33f5d52f7d088a6b2f75d234e89ca800 is a Golomb-coded set (GCS) constructed for block #926485, but how do we use it?</p><p>First, we create a Golomb-coded set filter (GCSFilter) and initialize it with the filter value from above. Value P is set to 19 as defined in <a href="https://github.com/bitcoin/bips/blob/master/bip-0158.mediawiki#Block_Filters">BIP158</a>.</p><pre>const GCSFilter = require(&#39;golomb&#39;);</pre><pre>const block_filter = Buffer.from(&quot;09027acea61b6cc3fb33f5d52f7d088a6b2f75d234e89ca800&quot;, &quot;hex&quot;);</pre><pre>const P = 19;</pre><pre>const filter = GCSFilter.fromNBytes(P, block_filter);</pre><p>Next, we need to construct a key, which we set to lower 128 bits of the block hash.</p><pre>const block_hash = Buffer.from(&quot;000000000000015d6077a411a8f5cc95caf775ccf11c54e27df75ce58d187313&quot;, &quot;hex&quot;);</pre><pre>const key = block_hash.reverse().slice(0, 16);</pre><p>Now, we are ready to do queries using the filter. Let’s prepare three scripts we want to check. The first and the second belong to the addresses modified via transactions within the block (mmEfi2cW9Vizeau3E6zzmRvbmzJXNrmW9Z and my2hmDuD9XjmtQWFu9HyyNAsE5WGSDBKpQ). The third one is a made-up value.</p><pre>const script1 = Buffer.from(&quot;76a9143ebc40e411ed3c76f86711507ab952300890397288ac&quot;, &quot;hex&quot;);  // mmEfi2cW9Vizeau3E6zzmRvbmzJXNrmW9Z<br>const script2 = Buffer.from(&quot;76a914c01a7ca16b47be50cbdbc60724f701d52d75156688ac&quot;, &quot;hex&quot;);  // my2hmDuD9XjmtQWFu9HyyNAsE5WGSDBKpQ<br>const script3 = Buffer.from(&quot;76a914000000000000000000000000000000000000000088ac&quot;, &quot;hex&quot;);  // made-up</pre><p>Finally, we can use either filter.match() function to check an individual value or filter.matchAny() for a list (the function returns true if any of the provided values match).</p><pre>console.log(filter.match(key, script1));<br>console.log(filter.match(key, script2));<br>console.log(filter.match(key, script3));</pre><pre>console.log(filter.matchAny(key, [script1, script3]));</pre><p>When we run this code, we’ll get the following result. That was easy, right?</p><pre>true<br>true<br>false<br>true</pre><h3>About Us</h3><p><em>Created by SatoshiLabs in 2014, the Trezor One is the original and most trusted hardware wallet in the world. It offers unmatched security for cryptocurrencies, password management, and serves as the second factor in Two-Factor Authentication. These features combine with an interface that is easy to use whether you are a security expert or a brand new user.</em></p><p><em>Trezor Model T is the next-generation hardware wallet, designed with the benefits of the original Trezor in mind, combined with a modern and intuitive interface for improved user experience and security. It features a touchscreen, faster processor, and advanced coin support, as well as all the features of the Trezor One.</em></p><figure><a href="https://shop.trezor.io/"><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*BepxMcNdMlfStMsa.jpeg" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b813b07a878" width="1" height="1" alt=""><hr><p><a href="https://blog.trezor.io/bip158-compact-block-filters-9b813b07a878">BIP158: Compact Block Filters</a> was originally published in <a href="https://blog.trezor.io/">Trezor Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenSSH with FIDO2 and Trezor]]></title>
            <link>https://blog.trezor.io/openssh-with-fido2-and-trezor-e565c2277?source=rss-ee7d93e3e375------2</link>
            <guid isPermaLink="false">https://medium.com/p/e565c2277</guid>
            <category><![CDATA[openssh]]></category>
            <category><![CDATA[dev-corner]]></category>
            <category><![CDATA[trezor]]></category>
            <category><![CDATA[fido2]]></category>
            <dc:creator><![CDATA[Pavol Rusnak]]></dc:creator>
            <pubDate>Mon, 24 Feb 2020 17:42:57 GMT</pubDate>
            <atom:updated>2020-03-06T15:45:21.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kD9HpullzBCg9fg3CGsgQ.jpeg" /></figure><p>On Valentine’s day, the OpenSSH team prepared a nice present for all of us; the new <a href="https://www.openssh.com/txt/release-8.2">8.2 release</a>. This release is important because it brings the first-class support for hardware tokens via the <a href="https://github.com/Yubico/libfido2">libfido2</a> library.</p><p>We’ve been in touch with OpenSSH developers <a href="https://mindrot.org/projects/">Damien Miller</a> and <a href="https://github.com/mfriedl">Markus Friedl</a> and libfido2 developer <a href="https://ambientworks.net/">Pedro Martelletto</a> and gladly provided them with free Trezor Model T devices to make the development and testing easier.</p><p>OpenSSH and Trezor are a perfect match because <strong>Trezor Model T is the only FIDO2 hardware token with a display</strong>, which allows you to see which identity is being used for authentication. We are really satisfied with the result and appreciate the great job done in this release!</p><h4>Getting started</h4><p>First, you need to have libfido2 (version 1.3.0 or above) and OpenSSH (version 8.2 or above) installed on your client. OpenSSH needs to be compiled with the --with-security-key-builtin option enabled. For the server, you just need to have OpenSSH (version 8.2 or above) installed.</p><p>It might take some time until these versions are packaged in your Linux distribution, but this will happen eventually. Some distributions such as Fedora, NixOS, and Debian have this functionality already in their pipeline.</p><h4>Generating keys</h4><p>Once you have everything set up properly you can issue the following command to generate a key pair backed by your hardware token (“ecdsa” stands for “elliptic curve digital signature algorithm” and “sk” stands for “security key”):</p><pre>ssh-keygen -t ecdsa-sk</pre><p>If you are using Trezor Model T, you should see a screen like this:</p><figure><img alt="FIDO2 registration screen shown on Trezor Model T device" src="https://cdn-images-1.medium.com/max/1024/1*Deabwodnzhyy-iDacms8yA.jpeg" /><figcaption>Trezor Model T creating a key pair for OpenSSH</figcaption></figure><p>As you can see from the photo, FIDO2 relying party ID is set to ssh: and FIDO2 user ID is set to openssh.</p><p>In case you want to use a different key for every server, you can modify the FIDO2 relying party ID via the -O application flag:</p><pre>ssh-keygen -t ecdsa-sk -O application=ssh:user@example.com</pre><figure><img alt="FIDO2 registration screen shown on Trezor Model T device" src="https://cdn-images-1.medium.com/max/1024/1*P5o0knKOjGaJr1zYDgaIbQ.jpeg" /><figcaption>Trezor Model T creating a key pair for OpenSSH with custom relying party ID</figcaption></figure><p>Once you confirm this screen, two files will be created: ~/.ssh/id_ecdsa_sk and ~/.ssh/id_ecdsa_sk.pub. The contents of the .pub file can be added to ~/.ssh/authorized_keys on the server just like you are used to. Once you do this, the OpenSSH will take care of the rest and next time you’ll try to login to that server, you’ll be prompted with the FIDO2 dialog on your device.</p><p>While following the instructions above, you might have noticed the ~/.ssh/id_ecdsa_sk file was generated in the process. This file does not contain a private key (like it usually does for other key methods), but it contains a FIDO2 credential required to reconstruct the private key inside of the hardware token. You need to keep this file on your client if you want to be able to log in from this machine.</p><h3>About Us</h3><p><em>Created by SatoshiLabs in 2014, the Trezor One is the original and most trusted hardware wallet in the world. It offers unmatched security for cryptocurrencies, password management, and serves as the second factor in Two-Factor Authentication. These features combine with an interface that is easy to use whether you are a security expert or a brand new user.</em></p><p><em>Trezor Model T is the next-generation hardware wallet, designed with the benefits of the original Trezor in mind, combined with a modern and intuitive interface for improved user experience and security. It features a touchscreen, faster processor, and advanced coin support, as well as all the features of the Trezor One.</em></p><figure><a href="https://shop.trezor.io/"><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*BepxMcNdMlfStMsa.jpeg" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e565c2277" width="1" height="1" alt=""><hr><p><a href="https://blog.trezor.io/openssh-with-fido2-and-trezor-e565c2277">OpenSSH with FIDO2 and Trezor</a> was originally published in <a href="https://blog.trezor.io/">Trezor Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>