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.
:traffic_light: Koa middleware to validate and sanitize HTTP request
Koa Legit is a Koa middleware to easily validate HTTP request data including headers, cookies, body, query strings, and url params. It's based on validator.
# NPM
$ npm install --save koa-legit
# Yarn
$ yarn add koa-legit
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const legit = require('koa-legit');
const Router = require('koa-router');
const app = new Koa();
// Set middlewares
app.use(bodyParser({ enableTypes: ['json', 'form'] }));
app.use(legit());
// Bootstrap application router
const router = new Roter();
app.use(router.routes());
app.use(router.allowedMethods());
app.listen(3000);
To be updated
This project follows the Contributor Covenant Code of Conduct.
Please use the issue tracker to report any bugs or ask feature requests.
Like koa-legit? Follow the repository on GitHub. And if you're feeling especially charitable, follow posquit0 on GitHub.
If you have any questions, feel free to join me at #posquit0
on Freenode and ask away. Click here to connect.
Provided under the terms of the MIT License.
Copyright © 2017, Byungjin Park.
FAQs
Koa middleware to validate and sanitize HTTP request
The npm package koa-legit receives a total of 3 weekly downloads. As such, koa-legit popularity was classified as not popular.
We found that koa-legit 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.