sandworm-hq / sandworm-guard-js Goto Github PK
View Code? Open in Web Editor NEWEasy auditing & sandboxing for your JavaScript dependencies 🪱
Home Page: https://sandworm.dev
License: MIT License
Easy auditing & sandboxing for your JavaScript dependencies 🪱
Home Page: https://sandworm.dev
License: MIT License
Create a cache for the stack line parser, so we can increase performance by reducing regex match calls.
We've explored the idea of supporting the collection of anonymous reports from the inspector, including the module name and the family and method invoked. This would bring several mid and long term benefits:
We should start with a simple serverless raw ingestion setup for events.
Users should be informed about what & why we track, and should be able to easily opt out.
CI should fail if lint issues are present in the code.
Since we're using Release Please to put our releases together, we should also enforce the usage of conventional commits, since the changelog and semver rely on that.
The SandwormError
being thrown on access denied can get swallowed by any dependency before it's able to reach root.
We should allow users to provide a custom callback that gets invoked before the error being thrown, so root-level code can always know about access denied issues.
Manage releases via https://github.com/googleapis/release-please/ and our CircleCI pipeline.
Closes #24
Some Node methods internally invoke other Node methods from our library as part of their standard execution process.
For example:
require
itself calls a number of methods, like fs.openSync
or vm.compileFunction
;https.request
internally calls dns.lookup
.Our current sourcemap parsing engine, source-map-js
, is a fork of the original Mozilla module, but with several optimizations and without WASM.
This is not ideal because:
source-map-js
also bundles a generator that we don't neednew Function()
internally, which is potentially dangerousIdeally, we should be able to internally parse sourcemaps, and remove this single dependency that Sandworm currently has.
We should let users know about the inspector sending anonymous data to the permission db, and how to disable it.
Many of our unit tests are currently batched together. This makes errors harder to debug and running specific tests impossible. Many tests are also opaque, and lack a proper description of what's being tested.
We should:
Currently, our library descriptors include description
and url
props that are not used by the core library, and are only used:
generate-library-md
script, to build LIBRARY.mdThis adds a lot of bulk to the Sandworm lib, and should be excluded from the build.
We should allow segmenting root code into multiple "virtual" modules based on the file path.
This would enable easier auditing of specific portions of the root code. For example, when running tests, we could discern between calls being made from the core code and calls being made from testing infrastructure.
Currently, with the default setting of ignoreExtensions: true
:
root
;What is expected:
ignoreExtensions
is true, any call path that includes extensions should be passed through with no capturing or tracking.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.