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.
opentok-cli
Advanced tools
Command line interface to generate a sessionId and token given an apiKey and secret. This is useful when you're trying to quickly test OpenTok code and you want to generate a sessionId and token.
npm install -g opentok-cli
Options:
--apikey, -a An OpenTok API Key
--secret, -s An OpenTok API Secret
--role, -r Optional role to assign to the token, one of moderator, publisher or subscriber (moderator by default)
--expires, -e Optional expire time for the token in milliseconds (30 days from now by default) (integer)
--p2p, -p Whether this session should be a relayed (p2p) session or a routed session ("true" or "false", "false" by default)
--sessionId, -i Optional sessionId parameter to generate a token for
--code, -c Optional whether to output a code snippet ("true" or "false", "false" by default)
--env, -v Optional environment parameter "prod", "dev", "rel" or API URL (prod by default)
Example: opentok-cli -a <APIKEY> -s <API_SECRET>
If you don't want to remember your apiKey and secret every time you can add an alias to your .bash_profile
so you can easily generate sessionIds and tokens whenever you want without any arguments. Although, you should consider the security of your secret, it's probably not the best idea to store it in plain text on your computer.
FAQs
CLI to generate a sessionId and token given an apiKey and secret
The npm package opentok-cli receives a total of 1 weekly downloads. As such, opentok-cli popularity was classified as not popular.
We found that opentok-cli demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.