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

Secure execution of build scripts #2

Open
mtshiba opened this issue Mar 22, 2024 · 0 comments
Open

Secure execution of build scripts #2

mtshiba opened this issue Mar 22, 2024 · 0 comments
Labels

Comments

@mtshiba
Copy link
Member

mtshiba commented Mar 22, 2024

The erg script specified in poise's pre-build can currently execute arbitrary code. Although this is unavoidable to some extent, it does pose a security risk.

https://blog.rust-lang.org/inside-rust/2023/09/01/crates-io-malware-postmortem.html

The following are some of the counterplans I can think of now:

  • Create a sandbox environment and only allow execution within it
  • Analyze the effects of build scripts to make it clear to the user whether the script is creating files or communicating externally, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant