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.
/'maɪ.kɑː/
A thin wrapper around mocha that finds tests anywhere in your project and provides a utility that gets tests up and running quickly
npm install --save-dev mycha
./node_modules/.bin
to your PATH environment variablemycha install
prompts you for where you would like to install your default test helper, testHelperPath
runs
npm install --save-dev chai
npm install --save-dev sinon
npm install --save-dev sinon-chai
writes to testHelperPath
chai = require 'chai'
sinon = require 'sinon'
chai.use require 'sinon-chai'
global.expect = chai.expect
global.sinon = sinon
process.env.NODE_ENV = 'test'
writes to mycha.coffee
module.exports =
# Default options to pass to mocha (can be overriden by command line options)
mochaOptions:
colors: yes
compilers: 'coffee:coffee-script/register'
reporter: 'dot'
# Regular expression used for finding tests
testFileRegex: /_(spec|test)\.(coffee|js)$/
# Files to include before all tests
testHelpers: [
'#{@testHelperPath}'
]
mycha [mochaOptions] [<folder>...] [<file>...]
./release
FAQs
Unknown package
The npm package mycha receives a total of 13 weekly downloads. As such, mycha popularity was classified as not popular.
We found that mycha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.