You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SHSM (Software Emulated Hardware Security Module) is a piece of digital security infrastructure originally designed to address a specific class of side-channel attacks that arise from immutable data types in languages like Go, Python, Node.js, and Java.
The typical vulnerabilities it targets include:
Processing passwords as immutable String types.
Handling Base64/PEM-encoded cryptographic keys stored and retrieved as String.
Managing OAuth API keys (client_id, client_secret) as String in memory.
SHSM is not intended to replace existing HSMs or offer the same level of security. Instead, it aims to reduce the risk by using C# (and, where applicable, C or C++) alongside libsodium to clear the last in-memory copy of sensitive String material after use.
What I've already built
SHSM is currently published under an AGPL v3 open-source license on GitHub. The repository includes:
Server-side code (HTTP API)
A cross-platform client application (C# with AvaloniaUI for Linux, macOS, and Windows)
A CLI that supports both standard and privileged operations
OpenBao is primarily designed to manage, store, and distribute sensitive data, including secrets, certificates, and keys.
SHSM focuses on reducing programming-language-oriented side-channel risks that exist natively in environments like Go, Python, Java, and Node.js.
In situations where handling String-based secrets is unavoidable, SHSM may offer a way to handle such data more safely—particularly in memory-sensitive contexts. This is a niche that these languages do not natively address. I previously filed a feature request on the Node.js repository to explore similar ideas, which you can find here: nodejs/node#59965
I’m not sure if there is an integration that the OpenBao community would consider useful. If there is, I’d like to explore it. If not, I’m also happy to hear why.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
What is SHSM?
SHSM (Software Emulated Hardware Security Module) is a piece of digital security infrastructure originally designed to address a specific class of side-channel attacks that arise from immutable data types in languages like Go, Python, Node.js, and Java.
The typical vulnerabilities it targets include:
Stringtypes.String.client_id,client_secret) asStringin memory.SHSM is not intended to replace existing HSMs or offer the same level of security. Instead, it aims to reduce the risk by using C# (and, where applicable, C or C++) alongside libsodium to clear the last in-memory copy of sensitive
Stringmaterial after use.What I've already built
SHSM is currently published under an AGPL v3 open-source license on GitHub. The repository includes:
All code is publicly available here: https://github.com/Chewhern/SHSM/tree/main
Why I think there may be potential overlap
OpenBao is primarily designed to manage, store, and distribute sensitive data, including secrets, certificates, and keys.
SHSM focuses on reducing programming-language-oriented side-channel risks that exist natively in environments like Go, Python, Java, and Node.js.
In situations where handling
String-based secrets is unavoidable, SHSM may offer a way to handle such data more safely—particularly in memory-sensitive contexts. This is a niche that these languages do not natively address. I previously filed a feature request on the Node.js repository to explore similar ideas, which you can find here: nodejs/node#59965I’m not sure if there is an integration that the OpenBao community would consider useful. If there is, I’d like to explore it. If not, I’m also happy to hear why.
All reactions