Hacker News new | ask | show | jobs
by kibwen 3665 days ago
This is incorrect. Package repositories with namespacing are just as vulnerable to these attacks.
1 comments

Wrong.
Say that a popular package lives at `jack/foo`. An attacker needs only register `jakc` and create a package `foo`, and now anyone typing `blah install jakc/foo` is owned. There's a reason why "namespacing" isn't listed under the "Defenses against typo squatting" section.
Just read my other reply.