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.
an experimental lovely frame
yarn add menhera
import { EventEmitter } from "events";
import Menhera, { Optional } from "menhera";
import minimist from "minimist";
export const CLI = {
name: "CLI",
_data() {
return {
structs: {},
Event: new EventEmitter()
};
},
start() {
let { _, ...flags } = minimist(process.argv.slice(2));
let [command = "*", ...inputs] = _;
const { h, help } = flags;
this.Event.emit(command, { inputs, flags });
},
_hooks() {
return {
onCli({ _key, _val, cp }) {
for (let [key, val] of Object.entries(_val)) {
const { exec } = val;
this.structs[key] = val;
if (exec) {
this.Event.on(key, exec.bind(cp));
}
}
}
};
}
};
const cliTest = {
name: "clitest",
onCli: {
"*": {
exec() {
console.log("help");
}
},
test: {
exec({ inputs, flags }) {
console.log(inputs, flags);
}
}
}
};
const _ = new Menhera({
_mount: {
_: [...Optional, CLI, cliTest]
},
_command: {
run: false
}
}).$use({
_command: {
run: true
}
});
FAQs
an experimental lovely framework
The npm package menhera receives a total of 5 weekly downloads. As such, menhera popularity was classified as not popular.
We found that menhera 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.