Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
facehugger
Advanced tools
Readme
back-packed child-process with callback stack and more batteries included
runTask().then(result => {})
actionsrunQueueTask().then(result => {})
api to enqueue worker requests (prevent overload/enable backpressure)npm i facehugger
const { FaceHugger } = require("facehugger");
const moduleFile = "./../../test/TestProcess.js";
const log = new Logger({level: "DEBUG"}); //e.g. log4bro
const config = {
autoRestart: true,
forkDelay: 10
};
const faceHugger = new FaceHugger(moduleFile, log, config);
faceHugger.start({}); //you can pass init data
//some available events
faceHugger.once("ready", () => {});
faceHugger.on("restart", () => {});
faceHugger.on("close", () => {});
faceHugger.on("message", message => {});
faceHugger.on("metrics", metrics => {});
faceHugger.pullMetrics({}, 1000) //arg, timeout in ms
.then(metrics => {});
faceHugger.runTask("sometask", {}, 200) //taskname, arg, timeout in ms
.then(result => {})
.catch(error => {});
faceHugger.restart(); //kills and spawns child process
faceHugger.stop(); //kills child process and halts
const { ForkProcess } = require("facehugger");
const fork = new ForkProcess();
const processCallback = data => {
fork.log("ready");
//run something to keep the process alive
setInterval(() => {}, 1000);
};
const metricsCallback = cb => {
cb(null, {
//return whatever you like
});
};
//register callbacks (that can be called from the parent process)
fork.register("sometask", (data, callback) => {
process.nextTick(() => {
fork.log(data);
callback(null, "yeah");
});
});
fork.connect(processCallback, metricsCallback);
FAQs
back-packed child-process with callback stack
We found that facehugger 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.