- 1 / 23
- 2 / 23
- 3 / 23
- 4 / 23
- 5 / 23
- 6 / 23
- 7 / 23
- 8 / 23
- 9 / 23
- 10 / 23
- 11 / 23
- 12 / 23
- 13 / 23
- 14 / 23
- 15 / 23
- 16 / 23
- 17 / 23
- 18 / 23
- 19 / 23
- 20 / 23
















![Gotcha #1: exceptions
const LAVAMOAT_UNSAFE_ENTRIES = new Set([
'ambire-inpage', 'ethereum-inpage',
'content-script', 'content-script-ambire-injection',
'content-script-ethereum-injection'
])
Some parts can’t be sandboxed.](https://image.slidesharecdn.com/yournpmdependenciescanseeeverything-260826144241-e9e7a4fe/85/Your-npm-dependencies-can-see-everything-How-we-lock-them-down-with-SES-LavaMoat-Ambire-Wallet-17-320.jpg)
![Gotcha #2: performance
{ "packages": ["react-fast-compare"] }
The with(scopeProxy) wrapper stops the JIT from optimizing hot code.
react-fast-compare is a deep-equality helper on a very hot path.
It touches no sensitive capability, so we took it out of the sandbox.](https://image.slidesharecdn.com/yournpmdependenciescanseeeverything-260826144241-e9e7a4fe/85/Your-npm-dependencies-can-see-everything-How-we-lock-them-down-with-SES-LavaMoat-Ambire-Wallet-18-320.jpg)





Learn how to protect your npm dependencies using SES and LavaMoat to sandbox packages, control install scripts, and mitigate security risks in your JavaScript projects. Presented by Kaloyan Kosev (@0xSuperKalo), Ambire/gm.
















![Gotcha #1: exceptions
const LAVAMOAT_UNSAFE_ENTRIES = new Set([
'ambire-inpage', 'ethereum-inpage',
'content-script', 'content-script-ambire-injection',
'content-script-ethereum-injection'
])
Some parts can’t be sandboxed.](https://image.slidesharecdn.com/yournpmdependenciescanseeeverything-260826144241-e9e7a4fe/85/Your-npm-dependencies-can-see-everything-How-we-lock-them-down-with-SES-LavaMoat-Ambire-Wallet-17-320.jpg)
![Gotcha #2: performance
{ "packages": ["react-fast-compare"] }
The with(scopeProxy) wrapper stops the JIT from optimizing hot code.
react-fast-compare is a deep-equality helper on a very hot path.
It touches no sensitive capability, so we took it out of the sandbox.](https://image.slidesharecdn.com/yournpmdependenciescanseeeverything-260826144241-e9e7a4fe/85/Your-npm-dependencies-can-see-everything-How-we-lock-them-down-with-SES-LavaMoat-Ambire-Wallet-18-320.jpg)




