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.
@kametventures/metrics
Advanced tools
npm install --save @kametventures/metrics
import { createClient } from '@kametventures/metrics/client/factory';
const client = createClient({
token: 'ez1234...'
});
See the reference for all the configuration options.
import collectorFactory from '@kametventures/metrics/koa/collector';
app.use(collectorFactory(client));
You can use the 2nd argument to give a set of options:
app.use(collectorFactory(client, options))
The supported options are:
additionalAttributes
. When using koa-router
import Router from 'koa-router';
import routesFactory from '@kametventures/metrics/koa/routes';
const router = new Router();
// You register all your routes...
app.use(routesFactory(router));
Name | Description | Required |
---|---|---|
token | Your authentication token to the collection API | Yes |
apiBaseUrl | Base URL used for the API. | No |
globalAttributes | List of attributes to be added to every sent event. Example: {user: 'username', release: 'something'} |
FAQs
## Install
We found that @kametventures/metrics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.