
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
fuse-box-node-plugin
Advanced tools
Plugin for fuse-box to allow inclusion of .node
binaries and related dependencies
Install via npm i fuse-box-node-plugin --save-dev
.
NodePlugin
follows the factorization and configuration pattern of official fuse-box plugins.
Including const {NodePlugin} = require("fuse-box-node-plugin");
will return a factory function, which accepts an options literal in the following format:
interface NodePluginOptions {
// file path to the .node file
file: string;
// a root folder to be used when copying over, defaults to file's dirname
root?: string;
// output folder for NodePlugin assets. defaults to "modules"
moduleFolder?: string
// defaults to file's basename, defines subfolder in moduleFolder
identifier?: string;
// a list of globs relative root-folder, matching files will be copied into the bundle
relativeDependencies?: string[];
}
The sharp-package creates platform specific files during npm's prebuild-step.
sharp.node
in node_modules/sharp/Build/Release/
node_modules/sharp/vendor/
sharp.node
requires most of these files, depending on features used in your code, and looks for them relative to itself.
To include sharp
in your fuse-box bundle add NodePlugin
to your plugin configuration:
plugins: [
NodePlugin({
file: "node_modules/sharp/build/Release/sharp.node",
root: "node_modules/sharp",
relativeDependencies: ["**.dll", "vendor/**"]
})
]
This will generate a modules/sharp/
directory in your configured output, which mirrors the tree structure of node_modules/sharp
for all files matching relativeDependencies
.
FAQs
a cli tool to reduce your docker-compose overhead
We found that fuse-box-node-plugin 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.