Skip to content

Secure execution of build scripts #2

@mtshiba

Description

@mtshiba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions