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.
@miniflare/runner-vm
Advanced tools
Readme
@miniflare/runner-vm
VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers.
import { VMScriptRunner } from "@miniflare/runner-vm";
const runner = new VMScriptRunner();
// Pass `console` into sandbox
const globalScope = { console };
// Run regular script
const blueprint1 = {
code: 'console.log("hello")',
filePath: "test.js",
};
await runner.run(globalScope, blueprint1); // hello
// Run module script
const blueprint2 = {
code: 'import thing from "./thing.js"; console.log(thing);',
filePath: "test.mjs",
};
const moduleRules = [{ type: "ESModule", include: /\.js$/ }];
// Assuming thing.js contains `"export default "thing";`...
await runner.run(globalScope, blueprint2, moduleRules); // thing
// Run module script with additional module
const blueprint3 = {
code: `import additional from "__ADDITIONAL"; console.log(additional);`,
filePath: "test.mjs",
};
const modules = {
__ADDITIONAL: { default: "stuff" },
};
await runner.run(globalScope, blueprint3, moduleRules, modules); // stuff
FAQs
VM script runner module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
We found that @miniflare/runner-vm demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.