Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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).
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.