Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@neon-exchange/nash-protocol
Advanced tools
Implementation of Nash cryptographic routines.
This library requires Node v14 or higher. Install on lower versions is not supported.
yarn install
yarn build
yarn test
The Nash Protocol contains functions necessary to create, setup, and authenticate into an account.
This step registers a new user with Nash's Central Accounts System.
hashPassword()
should be called to hash the password, and getHKDFKeysFromPassword()
should be called on the hashed password to get an authentication key and encryption key.This step creates blockchain wallets for a user.
getEntropy()
is called to generate a secret key.secretKeyToMnemonic()
is called on the secret key to provide a user's mnemonic. The user should persist this and never share this value.mnemonicToMasterSeed()
is called on the mnemonic to create the master seed, which is the seed value for BIP-44 HD wallet generation.generateWallet
is called using the master seed for all supported coin types.encryptSecretKey()
, which produces an encrypted secret key AEAD object. This is sent to Nash.getHKDFKeysFromPassword()
is used to get the authentication key and encryption key.initialize()
with the encrypted secret key AEAD object, encryption key, wallet metadata, and some Nash Matching Engine market and asset data to receive a config.Secret values are never sent to Nash. Values that are visible to Nash are. A combination of secret values and values accessible by Nash are needed for all sensitive operations. Both types of values are sensitive and should be carefully guarded.
We will NOT support the user supplying their own wallet keys. While users will control their own wallets, we will generate the wallets for them. This is partially because we want wallets to be deterministically derivable from the master seed.
FAQs
TypeScript implementation of Nash crypto routines
We found that @neon-exchange/nash-protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.