
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Experimental JavaScript sandbox based on iframe for frontend (electron, micro apps, etc).
vm()
with window
(if you don't want protection)!debugger
.babel
to implement that though).npm install secure-vm
yarn add secure-vm
pnpm install seucre-vm
<script src="https://cdn.jsdelivr.net/npm/secure-vm@latest/dist/index.global.js"></script>
<script>
const ctx = SecureVM.vm()
</script>
import { vm } from 'secure-vm'
const ctx = vm() // Create an isolated context.
ctx.console = globalThis.console
ctx.eval(`
console.log("Hello secure-vm")
`)
☣️ This is an experimental library that may be incompatible with some old browser kernels (for example, Opera). However, it works on latest versions of Chromium, Firefox, Edge and Safari.
💫 Try it out by yourself: (Demo not ready)
🔰 Ease to use✅ To create a simple isolation, you only have to use a simple function,
👽 You can bypass almost everything to your sandbox and it will work properly, for example,
|
🔒 Security🥰 Feel free to add anything you want, secure-vm also fixed almost all security issues on evel, for example, Object.prototype bypass will fail.
🤖 Dynamic Maybe we can run these code by using
|
🤔 Obfuscation🔏 secure-vm will automatically erase the traceback line info (if available) so hackers cannot access source code, making it harder to deobfuscate.
|
🎨 Customization😎 You can customize global objects by:
...or use our default whitelist by:
|
This project is licensed under the MIT license.
❤️
FAQs
Experimental JavaScript sandbox based on iframe for frontend (electron, micro apps, etc).
The npm package secure-vm receives a total of 1 weekly downloads. As such, secure-vm popularity was classified as not popular.
We found that secure-vm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.