enclave-vm@2.5.0
·
41 commits
to main
since this release
enclave-vm v2.5.0
📦 npm: enclave-vm@2.5.0
Added
- Serialized worker protocol now carries a
securityLevelflag so worker-pool executions mirror the AST guard preset in use. - Worker sandbox utilities now derive security-level-specific global maps and the Enclave validator pulls its base allow list from
getAgentScriptGlobalsbefore appending custom globals.
Changed
serializeErrornow tolerates string throws from transformed loop guards before sanitizing stack traces.
Security
- Sandbox creation now exposes only the globals permitted for the selected security level, removing constructors like
console,Promise, orRegExpunder stricter tiers for defense-in-depth. - Double-VM bootstrap instantiates safe objects using inner-context intrinsics, makes the injected
__host_vm_module__removable, and nullsvm.createContext/vm.Scriptbefore user code executes.