enclave-vm@2.1.0
·
51 commits
to main
since this release
enclave-vm v2.1.0
📦 npm: enclave-vm@2.1.0
Added
- Default double VM layer with parent/inner VMs, operation validation, rate limiting, and suspicious-pattern detection (
libs/enclave-vm/src/double-vm/**/*). - Configurable
doubleVmoptions plus exportedDoubleVmConfig/ParentValidationConfigso callers can tune the parent validation stage (libs/enclave-vm/src/types.ts,libs/enclave-vm/src/enclave.ts). - AST validation preset selection via the new
presetoption covering agentscript/strict/secure/standard/permissive modes (libs/enclave-vm/src/enclave.ts,libs/enclave-vm/src/index.ts). - Reference helpers such as
BlockedPropertyCategoryandREF_ID_SUFFIXare now exported for consumers that integrate with the reference sidecar (libs/enclave-vm/src/types.ts,libs/enclave-vm/src/sidecar/reference-config.ts).
Changed
- Breaking:
Enclavenow routes execution through the double VM wrapper by default and only falls back to raw adapters whendoubleVm.enabledis set to false (libs/enclave-vm/src/enclave.ts). - Custom globals injected into the VM are automatically wrapped in secure proxies to block prototype-chain attacks (
libs/enclave-vm/src/adapters/vm-adapter.ts). clearProxyCache()now throws to make it clear the API is unsupported and unnecessary (libs/enclave-vm/src/secure-proxy.ts).
Removed
- Removed the unused
allowFunctionBindingoption fromSecureProxyOptions; function binding is always handled by the proxy rules (libs/enclave-vm/src/secure-proxy.ts).
Fixed
- Pattern serialization and suspicious-pattern plumbing now reject unsafe detector bodies, handle
JSON.stringifyfailures, and preserve error causes when bubbling through the parent VM (libs/enclave-vm/src/double-vm/suspicious-patterns.ts,libs/enclave-vm/src/double-vm/double-vm-wrapper.ts).
Security
- Parent VM suspicious-pattern detectors block data exfiltration, enumeration, credential leaks, and bulk operations before tool calls reach the host (
libs/enclave-vm/src/double-vm/suspicious-patterns.ts,libs/enclave-vm/src/double-vm/parent-vm-bootstrap.ts).