Resources

People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!

Rust 1.100 Will Add Dependency Cooldowns to Cargo- 2231

socketPosted 18 Days Ago
  • For years, the recommendation has been to update your code as soon as a new release comes out. This works until the release is backdoored. How do we fight this? By delaying adopting of a new package for a certain length of time. Rust is adding this as a feature to Cargo.
  • In August, attackers compromised many important packages like arrayref, and others. Because Socket does scanning, they were able to find these attacks quickly (under two hours for both). This is still plenty of time to compromise servers, CI, or developer machines though.
  • The new feature is called cooldown. By specifying global-min-publish-age you can add an amount of time before upgrading to a new package. In the case of nothing being able to satisfy the dependencies, it fails closed. This is because an attacker could revoke all older versions of the package, and force you to download the new malicious one.
  • A good new feature, even if it does have some limitations on when/how it can be used. Good job to the Rust team for this change!