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.
@meeshkanml/express-middleware
Advanced tools
Express middleware to create .jsonl files for consumption by Meeshkan.
Express server middleware to log requests and responses in the HTTP Types format.
Install via npm:
npm install @meeshkanml/express-middleware
Add this middleware before adding routes, otherwise it won't work.
const mw, { LocalFileSystemTransport } = require("@meeshkan/express-middleware");
// Add custom transports with signature
// `type HttpExchangeTransport = (httpExchange: HttpExchange) => Promise<void>;`
// Here `HttpExchange` is defined in `ts-http-types`
const customTransport = async httpExchange => {
console.log("Got http exchange", httpExchange);
};
// Add middleware
app.use(
middleware({
transports: [
LocalFileSystemTransport("http-exchanges.jsonl"),
customTransport
],
})
);
// add routes
Install dependencies:
$ yarn
Run tests:
$ yarn test
Compile TypeScript:
$ yarn compile
Publish package:
$ yarn publish --access public
Push git tags:
$ TAG=v`cat package.json | grep version | awk 'BEGIN { FS = "\"" } { print $4 }'`
$ git tag -a $TAG -m $TAG
$ git push origin $TAG
FAQs
Express middleware to create .jsonl files for consumption by Meeshkan.
We found that @meeshkanml/express-middleware 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.