
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
keyshare-cli
Advanced tools
Command-line interface for secure key sharing.
npm install -g keyshare-cli
npm install
npm link
npx keyshare-cli init
npx keyshare-cli fetch
Set the API URL via environment variable:
export KEYSHARE_API_URL=https://keyshare.yourcompany.com
Or create a .env file:
KEYSHARE_API_URL=https://keyshare.yourcompany.com
keyshare initCreate a new share and get a share code.
Options:
--api-url <url> - API server URL--from-file <path> - Read secret from file--ttl <minutes> - Time-to-live in minutes--qr - Display QR code--no-clipboard - Don't copy to clipboard--no-confirm - Skip confirmation promptsExamples:
# Interactive mode
keyshare init
# From file
keyshare init --from-file ./api-key.txt
# Custom TTL
keyshare init --ttl 5
# With QR code
keyshare init --qr
# Custom API URL
keyshare init --api-url https://keyshare.company.com
Output:
✓ Share created successfully!
Share code (give this to your colleague):
AB12XY9Q
Expires: 10/4/2025, 9:23:32 AM
TTL: 10 minutes
✓ Code copied to clipboard
keyshare fetchRetrieve a secret using a share code.
Options:
--api-url <url> - API server URL--code <code> - Share code--env-file <path> - Environment file path (default: .env)--var-name <name> - Variable name (default: API_KEY)--no-write - Don't write to file, just display--overwrite - Overwrite existing variable--no-confirm - Skip confirmation promptsExamples:
# Interactive mode
keyshare fetch
# With code
keyshare fetch --code AB12XY9Q
# Custom env file
keyshare fetch --env-file .env.local
# Custom variable name
keyshare fetch --var-name DATABASE_URL
# Just display (don't write)
keyshare fetch --no-write
# Overwrite existing
keyshare fetch --overwrite
Output:
✓ Share retrieved successfully!
✓ Secret written to /path/to/.env
Variable: API_KEY
Backup created
Permissions: 600 (owner read/write only)
keyshare revokeRevoke a share before it's used.
Options:
--code <code> - Share code to revoke (required)--api-url <url> - API server URL--no-confirm - Skip confirmation promptsExamples:
# Revoke a share
keyshare revoke --code AB12XY9Q
# Skip confirmation
keyshare revoke --code AB12XY9Q --no-confirm
.env file with 600 permissions (owner read/write only)--no-clipboard--qr flagClear, user-friendly error messages:
npm test
Run tests in watch mode:
npm run test:watch
cli/
├── bin/
│ └── cli.js # Executable entry point
├── src/
│ ├── index.js # Command definitions
│ ├── apiClient.js # API communication
│ └── envWriter.js # Env file management
└── test/
└── envWriter.test.js
src/index.js# Update version
npm version patch # or minor, major
# Publish to npm
npm publish
# Test installation
npm install -g keyshare-cli
MIT
FAQs
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.