<?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 Biagio Boi on Medium]]></title>
        <description><![CDATA[Stories by Biagio Boi on Medium]]></description>
        <link>https://medium.com/@bboi?source=rss-6988b9823599------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4S40hRIDRB7SgcQ3lPPuYA.jpeg</url>
            <title>Stories by Biagio Boi on Medium</title>
            <link>https://medium.com/@bboi?source=rss-6988b9823599------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:32:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bboi/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[Revoke HSM-based Authentication using Ethereum Attestation Service (EAS)]]></title>
            <link>https://medium.com/@bboi/revoke-hsm-based-authentication-using-ethereum-attestation-service-eas-1864d7cf9758?source=rss-6988b9823599------2</link>
            <guid isPermaLink="false">https://medium.com/p/1864d7cf9758</guid>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[revocation]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Biagio Boi]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 16:09:01 GMT</pubDate>
            <atom:updated>2024-12-14T16:09:01.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Hardware Security Modules (HSMs) are revolutionizing the entire lifecycle of a cryptographic key. These devices can be used to store asymmetric keys and efficiently generate newer ones securely. These keys are stored in a tamper-resistant memory and cannot be accessed by malicious parties. HSM can be used by companies for generating and managing keys, as well as by users for the generation and management of asymmetric key pairs. These last can be referred to as portable HSM and implement all the features provided by classical HSM and can be used for multiple usages, including authentication.</p><h3>Use of HSM in User Authentication</h3><p>Identification is typically performed using an Authentication Server (AS) responsible for storing the credentials and identities of the users. During the last few years, the mean used to assess the identity of enrolled users is continuously changing with the aim of increasing the overall strength of the security. HSMs are creating an interesting model for decentralized authentication, where users are recognized by their public key. Authentication based on public keys typically requires a server to send a challenge to the user by ciphering it with the user&#39;s public key, and then the user can demonstrate to be the owner of that public key by decrypting the challenge and sending it to the server.</p><p>This approach is widely used in blockchain authentication, where users are identified by their public key, which is associated to the public address of the cryptographic wallet. A more discursive introduction to this kind of authentication can be found in an <a href="https://medium.com/the-blog-chain/how-does-crypto-login-work-c99e43d3293b">article on Medium</a> and in a <a href="https://medium.com/@iiiamigoes/one-click-login-with-blockchain-a-metamask-tutorial-890a84d38821">tutorial</a> for the implementation in React framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXX0OIoA0tW0ZjUg1kQgww.jpeg" /><figcaption>Metamask-based Web Authentication</figcaption></figure><p>Similarly, the public key associated with it can be mapped to a private key stored in a portable HSM, or more properly, a hardware wallet.</p><h3><strong>What is the issue?</strong></h3><p>Much like in the blockchain context, there is a significant problem when a user’s wallet or an HSM is stolen. In such cases, the user may lose the ability to revoke the identity tied to the compromised public key. This creates a critical vulnerability: an attacker who gains control of a cryptographic wallet or HSM can impersonate the user and perform various malicious actions under their identity.</p><h3>How can we revoke the identity?</h3><p>To address this, it is essential to employ a registry to maintain a record of the public key. Additionally, the user must have a way to prove ownership of the key even if they can no longer access it directly. This ensures that the identity associated with the stolen key can still be revoked securely and effectively. An interesting resolution to this problem has been discussed in the paper <a href="https://dl.acm.org/doi/abs/10.1145/3605098.3636004">https://dl.acm.org/doi/abs/10.1145/3605098.3636004</a> where an approach based on attestation has been employed. Link to <a href="https://github.com/biagioboi/eas">GitHub Project</a>.</p><p>The driving idea of this approach is to use an Ethereum application called <a href="https://attest.org/">Ethereum Attestation Service (EAS)</a>. It is an infrastructure public good for making attestations onchain or offchain about anything.</p><p>In the specific case, it is possible to use EAS for managing all the keys released by a particular HSM and eventually ask for the revocation of these keys if someone steals access. The process of attestation is depicted in the diagram below and requests the Verifier to ask the Holder to sign a challenge (Step 1), which it signs using the private key of the cryptographic wallet. In Step 2, the Verifier checks for the signature applied to the challenge, and if it meets the public key of the Holder, then in Step 3, the Verifier releases an attestation bound to the <em>walletAddress</em> reaching the EAS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrG8dPaDNpLdJvBo3jgZGw.png" /><figcaption>Release of the attestation binded to the crypto wallet of the user</figcaption></figure><p>This attestation can be intended as the mechanism used by the Holder to demonstrate the validity of his own HSM, identified by the <em>walletAddress.</em></p><p>During the authentication procedure, the Attestator requests for a signature over the challenge (Step 1), similar to what happens in the Metamask-based authentication, using the public key previously associated with the Holder within the platform. If the signature is valid, then the Attestator in Step 3 and 4 checks the status of the HSM identified by the <em>walletAddress </em>using the EAS. This particular transaction is cost-free and can be invoked in a short amount of time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7COmUr-0ufJdZjoKBQAaw.png" /></figure><p>If someone steals the identity of the Holder, by stealing its HSM, then the holder can call the EAS to ask for the revocation of the attestation. In particular, the Holder will leverage the ownership of the cryptographic wallet to grant access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QwTPSL8A8_kj0E9h-YJMQg.png" /></figure><blockquote>Are you interested in decentralized authentication and novel authentication mechanisms? Keep posted on our <a href="https://habes.cs.unisa.it/">webpage</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1864d7cf9758" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>