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.
browser-module-sandbox
Advanced tools
uses browserify-cdn to run node code in an iframe
requires a hosted browserify-cdn
npm install browser-module-sandbox
var Sandbox = require('browser-module-sandbox')
var sandbox = Sandbox({
name: iframe name attribute,
cdn: 'http://localhost:8000', // browserify-cdn API endpoint, defaults to the current browser domain root,
container: dom element where the iframe should be appended,
iframeHead: string that gets prepended to the `<head>` of the output iframe,
iframeBody: string that gets prepended to the `<body>` of the output iframe,
iframeStyle: string for css, gets appended to end of iframeHead,
iframeSandbox: array of capability flag strings,
iframe: iframe instance, default creates a new one inside container
})
sandbox.bundle('console.log(require("underscore"))', {'underscore': '1.3.3'})
preferredVersions
is optional, version will otherwise default to latest
modules is the array of modules that gets parsed out of the bundle entry by the detective
module
emits when the bundle request begins
emits when the iframe content is being built, body
is a string made up of all the bundles (NOTE: it doesn't contain entry
)
emits when the bundle request finishes. html
is an object that has the iframe header contents and the full bundle body (made of up all the bundles + the entry in an executable form)
BSD
FAQs
uses browserify-cdn to run node code in an iframe
The npm package browser-module-sandbox receives a total of 17 weekly downloads. As such, browser-module-sandbox popularity was classified as not popular.
We found that browser-module-sandbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.