Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/lavamoat - Allow scripts list #909

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

aristidesstaffieri
Copy link
Contributor

This adds the allow-scripts package from the Lavamoat suite of JS security tools.

This lets us define which packages can use scripts and which scripts they can use during the build/install lifecycles. This acts as a whitelist and serves to protect against supply chain attacks that are popular on npm and which take advantage of the open access to lifecycle scripts by the npm runtime.

Adds the allow scripts package and configures allow lists for all workspaces.
Adds yarn setup to replace yarn install.

Future work -

I was not able to add any runtime hardening with either Lavamoat or SES directly, most roadblocks are related to Webapcks dynamic module resolution and some refactoring needed to support proper use of the shimmed global object. Future possible solutions include investing in a webpack plugin and/or porting pieces of ses back to freighter directly.

@aristidesstaffieri aristidesstaffieri self-assigned this Jul 21, 2023
@aristidesstaffieri aristidesstaffieri changed the base branch from master to release/5.2.5 July 21, 2023 17:00
@aristidesstaffieri aristidesstaffieri merged commit 67ff40b into release/5.2.5 Jul 21, 2023
@aristidesstaffieri aristidesstaffieri deleted the feature/lavamoat branch July 21, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants