
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
native-keyvault
Advanced tools
A simple cross platform native keyvault for storing secrets securely on your local machine. Supports Windows, macOS, and Linux with native encryption methods and optional fallback.
A cross-platform Node.js credential storage library that securely stores passwords using native OS credential managers with an encrypted fallback option.
save(), get(), and delete()pnpm add native-keyvault
Linux only: Requires libsecret-tools for native credential storage:
sudo apt-get install libsecret-tools
macOS and Windows have native support built into the OS.
import { CredentialStore } from 'native-keyvault'
const store = new CredentialStore('my-app')
store.save('user@example.com', 'my-secure-password')
const password = store.get('user@example.com')
console.log(password)
store.delete('user@example.com')
If you want to always use encrypted file storage instead of the native credential manager:
const store = new CredentialStore('my-app', { fallback: true })
new CredentialStore(service, options?)Creates a new credential store instance.
service (string): Identifier for your applicationoptions.fallback (boolean): Force fallback storage instead of native. Default: falsesave(account, password)Saves a credential.
account (string): Account identifier (e.g., email, username)password (string): Password to storeget(account): string | nullRetrieves a credential.
account (string): Account identifiernull if not founddelete(account)Deletes a credential.
account (string): Account identifier to deleteNative Storage (default): Uses OS-specific credential managers
security commandcmdkeysecret-toolFallback Storage: If native storage fails or is unavailable
~/.cache/{service}/credentials.json~/.cache/{service}/key.bin with restricted permissions (600)MIT
FAQs
A simple cross platform native keyvault for storing secrets securely on your local machine. Supports Windows, macOS, and Linux with native encryption methods and optional fallback.
The npm package native-keyvault receives a total of 1 weekly downloads. As such, native-keyvault popularity was classified as not popular.
We found that native-keyvault demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.