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.
request-oauth
Advanced tools
OAuth 1.0a support for request-compose
var request = require('request-compose').extend({
Request: {oauth: require('request-oauth')}
}).client
;(async () => {
try {
var {res, body} = await request({
url: 'https://api.twitter.com/1.1/users/show.json',
qs: {
screen_name: '[SCREEN NAME]'
},
oauth: {
consumer_key: '[APP ID]',
consumer_secret: '[APP SECRET]',
token: '[ACCESS TOKEN]',
token_secret: '[ACCESS SECRET]',
}
})
console.log(body)
}
catch (err) {
console.error(err)
}
})()
Option | Description |
---|---|
Required | |
consumer_key | OAuth application key |
consumer_secret | OAuth application secret |
private_key | in PEM format, set this key instead of consumer_secret when using RSA-SHA1 signing |
token | user's access token |
token_secret | user's token secret |
Defaults | |
version | 1.0 |
signature_method | HMAC-SHA1 , RSA-SHA1 , PLAINTEXT |
transport_method | header , query , form |
Generated | |
timestamp | |
nonce | |
signature | |
Optional | |
realm | |
body_hash | body hash string to use or true to get one generated for you |
FAQs
OAuth 1.0a support for request-compose
The npm package request-oauth receives a total of 167,984 weekly downloads. As such, request-oauth popularity was classified as popular.
We found that request-oauth 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.