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.
rettiwt-auth
Advanced tools
A CLI tool for authenticating against Twitter API
The package is intended to be installed globally.
npm install -g rettiwt-auth
yarn global add rettiwt-auth
The following are the two types of authentcation methods available, with each method providing access to different set of resources:
The following examples demonstrate authenticating against Twitter API and generating the credentials.
Install the package globally by following the steps in the 'Installation' section.
Open a commandline/shell and use the command:
rettiwt-auth generate <email> <username> <password>
Where,
Store the generated API key in a safe spot for later use.
Install the package globally by following the steps in the 'Installation' section.
Open a commandline/shell and use the command:
rettiwt-auth generate -h <email> <username> <password>
Where,
The '-h' option specifies the CLI to generate the credentials as HTTP headers.
Store the generated API key in a safe spot for later use.
For authenticating the requests to Twitter, append the headers to outgoing HTTP requests.
To get a list of all commands available, use the command:
rettiwt-auth help
To check the description of single command, use the command:
rettiwt-auth help <command_name>
Where,
When you generate the credentials as API key/HTTP headers,
The generated API key/HTTP headers are valid for a duration of 1 year, starting from the day of generation.
As such, it is suggested to generated the API key/HTTP headers once, then store them in a safe place (such as in an environment variable or a JSON file).
Notes:
Whenever it is required to authenticate against Twitter API, use the stored API key/HTTP headers.
The complete API reference can be found this page
FAQs
A CLI tool for authenticating against Twitter API
The npm package rettiwt-auth receives a total of 1,376 weekly downloads. As such, rettiwt-auth popularity was classified as popular.
We found that rettiwt-auth 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.
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.