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.
node-switchcoder
Advanced tools
This node module provides a simple API wrapper to access SwitchCoder from any node app.
It is just now getting started.
You will need to create an account on SwitchCoder and create your API token. This client presumes you have a valid account and API token already configured
npm install node-switchcoder
var switchCoder = require('node-switchcoder');
var client = new switchCoder.Client('apiToken', 'host');
var phoneNumber = client.getPhoneNumber("yourNumber", opts);
// get an instance of the script from the client
var code = client.getCode(scriptId, phoneNumber, opts);
//invoke the code with all parameters
code.invoke(queryParameters, requestBody, function(response, err){});
//invoke script with just the callback
code.invoke(function(response,err){});
var switchCoder = require('node-switchcoder');
var client = new switchCoder.Client('1231232123', 'api.switchcoder.com');
var phoneNumber = client.getPhoneNumber('19195551212');
var code = client.getCode(123);
var requestParameters = {parameter1:'parameter1Value', parameter2:'parameter2Value'};
var requestBody = {bodyValue1:'my text'};
code.invoke(requestParameters, requestBody, function(response,err) {
if(err){
console.log("Got an error: " + err.message)
} else {
console.log("Response status: " response.statusCode + " with data: " + response.data);
}
});
FAQs
Node.js module which provides a Switchcoder API client
The npm package node-switchcoder receives a total of 1 weekly downloads. As such, node-switchcoder popularity was classified as not popular.
We found that node-switchcoder 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.