3 ms·
Couldn't forcing publishers to sign a hash of the module not be a solution? The certificate could contain information about the owner and the consumer could ch
by qwertox 4y ago
Couldn't forcing publishers to sign a hash of the module not be a solution?
The certificate could contain information about the owner and the consumer could check if he wants to deal with the owner or not. Developers could add a desired whitelist to pip (or use a curated one) to continue using automation.
- louislang 4y agoHashing solves one side of the coin. Namely, whether or not you got the thing you expected (or perhaps, got the thing you expected from the individual you expected it to come from). On the other side, we have to contend with the fact that malware can be slipped into otherwise legitimate packages. This has happened numerous times over the years. In this case, the hash would serve as a way to say "yup, you definitely got malware". Useful for incident response, but I think we can do better and try and prevent these attacks from being viable in the first place.