Skip to content

Discussion: Mitigating supply chain & CI attacks via delayed dependency updates #1653

Description

@0xmuon

Supply chain attacks (like those recently seen in npm) and AI-assisted CI cache poisoning are escalating. In Rust, a compromised "day-zero" dependency could execute malicious build.rs scripts or proc-macros during an automated PR build to poison shared CI caches or exfiltrate runner tokens.

To be proactive, a deliberate "cool-down" period(like 7 days) before bumping dependency versions in Cargo.toml. Waiting a week gives the wider community and automated security scanners time to detect and yank compromised packages. This keeps cg_clif and our CI infra out of the immediate blast radius.

Doubt:

How would a 1 week delay impact the workflow for pulling in crucial cranelift fixes or keeping up with rustc API changes? Would it make sense to apply this 7 day rule strictly to third-party transitive dependencies, while exempting high-trust core dependencies (like cranelift itself)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions