Skip to content

VM2 - proposal #308

@BaderBC

Description

@BaderBC

// - Proper sandboxing (e.g., vm2, isolated-vm)

Hi!
Was just searching GitHub for projects that use vm2, it seems interesting what you're building - entire platform / OS to build stuff on top of, or at least that's how I understand it.

Anyway, about vm2, would strongly suggest to put it in docker, as vm2, isn't actually secure. Although it would lose a lot of performance, cold start and add devOps overhead.

I'm reaching out because I had similar problem, like vm2 seemed great, but you can literally invoke any code on the host, it's super easy to bypass the sandbox. Tried isolated-vm and quickjs-emscripten, recommend the second one highly, although you cannot pass anything that doesn't resolve into a primitive, like you can't e.g. pass a fetch or some class instance.

Recently developed a secure vm2 alternative, very lightweight. Looking for beta testers, will publish it as open source soon.

Let me know if you're interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions