Re:Rust Malware Staged on Crates.io
by vladvasiliu on Saturday August 26, 2023 @02:40AM
(#37270392)
> 1) Typosquatting DNS adds cost (it's harder to spam the namespace), and it forces the attacker to put down a credit card.
It also raises the bar of who will publish things. I have a few random projects on github that some people seem to use. I wouldn't pay for a domain name to publish those.
Re:Rust Malware Staged on Crates.io
by yencabulator on Saturday August 26, 2023 @09:12AM
(#37272571)
github.com/vladvasiliu/foo works fine, if that's what you want.
2) Go-style import URLs prevent you from typosquatting a large part of the path. On `example.com/hrd2spll` you can't typosquat the latter part (which would be easier to attack), only the hostname.