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.
@mintlab/kitchen-sink
Advanced tools
Everything but: miscellaneous Mintlab utility functions.
$ npm install @mintlab/kitchen-sink
Public API entry point:
const kitchenSink = require('@mintlab/kitchen-sink');
Destructuring:
const { dictionary } = require('@mintlab/kitchen-sink');
Single module:
const dictionary = require('@mintlab/kitchen-sink/dictionary');
Start an interactive ash
shell for development:
$ docker-compose exec sink sh
If you edit .*rc
files in ./root
, you must manually copy
them to your current working directory in the container.
The package*.json
files are symlinked because they can be
mutated both on the host and in the container.
The package is published with semantic-release-gitlab on every merge to the master branch. Mind your commit messages.
Files in ./source
are copied to the root and removed after publication.
See the prepublishOnly
and postpublish
lifecycle scripts in package.json
.
In edge cases when semantic release cannot increment:
root/.npmrc
and root/package.json
to the working copy rootversion
field in package.json
npm login
if needednpm publish --access public
The modules in this package export Node.js modules and work natively on the server. There is no transpilation and distribution build included, to consume them in the browser use your bundler of choice.
Unit tests use tape, a TAP producing test harness for node.
No special libraries or plugins are needed for async tests:
async
plan
the number of assertionsawait
the async valuetest('The async answer', async assert => {
assert.plan(1);
const answer = await new Promise(resolve => {
setTimeout(() => resolve(42), 1000);
});
assert.equal(answer, 42, 'is always 42');
assert.end();
});
Copyright 2017 Mintlab B.V.
Licensed under the EUPL, Version 1.1 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence").
You may not use this work except in compliance with the Licence.
You may obtain a copy of the Licence at: https://joinup.ec.europa.eu/software/page/eupl
FAQs
Mintlab utility functions.
We found that @mintlab/kitchen-sink 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.