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.
$ npm install sc
$ npm install -g sc $ sc --username yourusername --accessKey yourkeyhere
var wd = require('wd') , assert = require('assert') , sauceconnect = require('sc') , colors = require('colors') ; var obj = { username: process.env.SAUCE_USERNAME , accessKey: process.env.SAUCE_ACCESS_KEY }; var connect = new sauceconnect(obj); connect.on('status', function(info) { console.log(info.green); }); connect.start(function(err, session) { console.log(session); var browser = wd.promiseRemote("ondemand.saucelabs.com", 80, obj.username, obj.accessKey); browser.on('status', function(info) { console.log(info.cyan); }); browser.on('command', function(meth, path, data) { console.log(' > ' + meth.yellow, path.grey, data || ''); }); browser.init({ browserName: 'chrome', tags: ["examples"], name: "This is an example test" }).then(function () { return browser.get("http://google.com"); }).then(function () { return browser.title(); }).then(function (title) { assert.ok(~title.indexOf('Google'), 'Wrong title!'); }).fin(function () { browser.quit(function() { session.stop(function(cObj) { console.log("Connect Session Stopped"); }); }); }).done(); });
FAQs
Connect your machine to Sauce Labs.
The npm package sc receives a total of 124 weekly downloads. As such, sc popularity was classified as not popular.
We found that sc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.