Cointime

Download App
iOS & Android

Single-Tenant or Multi-Tenant HSMs? Do You Trust Your Cloud Provider Not To Peek At Your Keys?

Validated Individual Expert

Your encryption keys are your crown jewels. Lose or compromise them, and you are likely to have significant costs. In fact, a breach of a trust infrastructure has been assessed as the most costly of all cybersecurity attacks.

And, so, we are increasingly moving our data infrastructures from on-premise to the public key. So where should we store our encryption keys? Well, it all depends on which level of FIPS 140–2 you need to comply with.

For AWS, we can use an HSM (Hardware Security Module) to store our private and symmetric keys, but this is a multi-tenant system, and where you share the HSM with others. There should be no way that other AWS customers can have access to your keys, but there is the opportunity for AWS to access them. This is FIPS 140–2 Level 2.

For FIPS 140–2 Level 3, we have separation from other users and from AWS, and where we run a CloudHSM. This is much more costly and starts at around $1.45/hr to run in AWS (as compared to around $1/month for using a key in the HSM).

FIPS 140 levels

In 2019, FIPS 140–3 replaced FIPS 140–2. It defines 11 areas of design involved in designing and implementing modules [here][docs]. This includes four security levels for the cryptographic module specification; cryptographic module interfaces; roles, services, and authentication; software/firmware security; operating environment; physical security; non-invasive security; sensitive security parameter management; self-tests; life-cycle assurance; and mitigation of other attacks. Each layer builds on the previous level, and where Level 1 is the lowest level, and Level 4 provides the highest level. For those working in finance and in high-risk areas, Level 3 is often the benchmark, while in defence-related areas, Level 4 would often be applied. Table 1 outlines the differences between the levels.

Table 1: FIPS 140–3 overview

Physical security

For physical security, the tamper-proof nature of the target system is key, and where tamper detection becomes important at the higher levels of security.

Security levels

As Figure 1 illustrates, Level 1 provides a minimum security level, while Level 2 implements methods around role-based authentication, and also integrates physical tamper evidence. As we move up to Level 3, we integrate identity-based authentication and also have an isolation barrier between the identity system and the place where the keys are stored. This would integrate a secure enclave (such as with the Apple T2 chip), or a hardware security module (HSM).

For Level 4, we see formal models, detailed explanations, and pre/post conditions. It also contains a great integration of tamper detection, with EFP (Environmental Failure Protection) and EFT (Environmental Failure Testing). This would involve testing where other components around the target system were to fail, and for the target to not be compromised. A typical focus is around side channels, such as for radio frequency (RF) or electromagnetic (EM) radiation from devices.

Figure 1: FIP 140 levels

Isolation

For isolation, a method often used is key wrapping, and where a key is protected outside a trusted environment. Within the Cloud, AWS CloudHSM (hardware security module) supports AES key wrapping with the default initialization vector — 0xA6A6A6A6A6A6A6A6- or a user-defined value. This provides a FIPS 140–2 Level 3 environment and where the keys in their raw form are only handled within a trusted cloud instance. The wrapped keys can then exist outside this but only be converted into their actual form within the CloudHSM. A key generated within the CloudHSM can then be wrapped for export from the environment, or imported from an external wrapped key. The AWS CLI is on the form which defines a key handle (with -k) and the wrapping key handle (with -w):

> wrapKey -k 7 -w 14 -out mykey.key -m 5Key Wrapped.Wrapped Key written to file "mykey.key: length 612Cfm2WrapKey returned: 0x00 : HSM Return: SUCCESS

Conclusions

And, so, you need to decide whether you want to share your HSM with others, or run your own. Basically, it typically comes down to the level of FIP 140–2 we want to comply with. Level 3 is much better than Level 2, but you might struggle a bit in getting all our Cloud services to integrate with it, so often it is a balance between the two.

https://billatnapier.medium.com/single-tenant-or-multi-tenant-hsms-do-you-trust-your-cloud-provider-or-not-to-peek-at-your-keys-da28831a5217

Comments

All Comments

Recommended for you

  • Zhipu Secures $5 Billion Financing Through Zero-Coupon Convertible Bonds and Premium Share Placement

    On September 13, Zhipu (02513.HK) announced the completion of approximately $5 billion in financing, which includes around $2 billion from a share placement and about $3 billion from the issuance of convertible bonds. This financing is primarily aimed at developing the next-generation GLM model, a fully self-training system, and related computing infrastructure. According to the announcement, the share placement price is set at HKD 714 per share, representing a discount of approximately 9.96% compared to the closing price before the announcement, with the placed shares accounting for about 4.50% of the expanded issued capital. The convertible bonds are structured as zero-coupon bonds, issued at 100.5% of the principal, redeemable at maturity at par value; the initial conversion price is set at HKD 892.50 per share, which is a 25% premium over the placement price and approximately 12.55% over the closing price prior to the announcement. The combination of zero-coupon and premium issuance serves as an important signal for this round of financing. With the R&D budget and funding arrangements becoming clearer, Zhipu is enhancing its capital foundation for ongoing training experiments, advancing model iterations, and improving its computing system, thereby strengthening its position in the upcoming competition for leading global models.

  • Iranian Cargo Ship Attacked, 1 Dead and 4 Injured

    On September 13, the Islamic Republic News Agency reported, citing local Iranian officials, that an Iranian container cargo ship was attacked by an unidentified projectile near the Strait of Hormuz, resulting in 1 death and 4 injuries. (Xinhua)

  • ETH Falls Below $2500

    Market data shows that ETH has fallen below $2500, currently priced at $2498.62, with a 24-hour decline of 1.19%. The market is experiencing significant volatility, so please ensure proper risk management.

  • BTC Falls Below $77,000

    Market data shows that BTC has fallen below $77,000, currently priced at $76,989.22, with a 24-hour decline of 0.41%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Ukrainian Official: Ukraine Prepares for New Round of Tripartite Talks with US and Russia in October

    On the 12th local time, Andriy Yermak, the head of the Ukrainian President's Office, stated that Ukraine is preparing to hold a new round of negotiations in October, involving Ukraine, Russia, and the United States. Yermak did not disclose specific details about whether the upcoming talks would take place in the Middle East or elsewhere. The day before, Kremlin spokesperson Dmitry Peskov mentioned in an interview that the Kremlin expects a tripartite meeting between Russia, the United States, and Ukraine to take place soon to continue dialogue. (CCTV News)

  • SpaceX to Increase Weight in Nasdaq-100 Index After Rebalancing

    Later this month, SpaceX's weight in the Nasdaq-100 Index will be increased, potentially generating billions of dollars in buying demand from passive funds that track the benchmark index. According to estimated data from the Nasdaq Global Index Watch platform, its weight is expected to rise from approximately 1.28% to about 2.82%. The weight adjustment is significant, as passive funds linked to the index must adjust their holdings accordingly, including the $481 billion Invesco QQQ Trust.

  • Major Central Banks of the US, Japan, and UK to Announce Monetary Policy This Week

    On September 12, the Federal Reserve, the Bank of Japan, and the Bank of England will announce their monetary policy decisions this week, with the focus on whether the Federal Reserve will raise interest rates for the first time in three years. Iran and Gulf countries have been negotiating a temporary management agreement for shipping in the Strait of Hormuz.

  • Anthropic CEO: We Must Slow Down the Advancement of AI Model Capabilities

    On September 12, the co-founder and CEO of Anthropic stated that the pace of enhancing AI model capabilities must be slowed down. 'Slowing down the pace' does not mean halting model training or technological progress, but rather ensuring that companies have ample time for alignment and to ensure the safety of the models.

  • Morgan Stanley Increases Bitcoin Holdings for Three Consecutive Days, Total Holdings Exceed 7,800 BTC

    On September 12, Morgan Stanley increased its Bitcoin holdings for three consecutive days through its spot Bitcoin exchange-traded fund MSBT, investing $15.81 million to acquire approximately 203.45 BTC. The total holdings now amount to 7,855 BTC, valued at over $600 million.

  • Anthropic IPO Approaches, Off-Market Valuation Peaks and Retracts to $2.159 Trillion

    On September 12, HIP-3 market deployer Entropy launched the Anthropic Pre-IPO market on Hyperliquid. As the Anthropic IPO draws near, its market valuation peaked at over $2.3 trillion on the platform on the 9th before retracting to $2.159 trillion. As of the time of this report, the pre-market contract volume for Anthropic reached $28.19 million, with a trading volume of $6.74 million. Additionally, OpenAI's pre-market contract valuation on Entropy is currently reported at $164 million, with a volume of $7.67 million.