News for hackers. Stuff that matters.
Re:Typosquatting programming language package managers by ysavir on Wednesday June 08, 2016 @12:56PM (#11863667)
Instead of blacklisting, why not respond with a "You requested package ABD, but we think you might mean package ABC. Enter 'yes' to continue or anything else to start over."

That way authors can continue to use any name they want, and the emphasis is on letting installers know that they might be installing the wrong package.

Re:Typosquatting programming language package managers by VLM on Wednesday June 08, 2016 @02:48PM (#11864578)
"You requested package ABD, but we think you might mean package ABC. Enter 'yes' to continue or anything else to start over."

That'll be fun to automate around in puppet or ansible.

Re:Typosquatting programming language package managers by voltagex_ on Tuesday June 14, 2016 @01:40AM (#11900019)
I hope you're using a local package cache for puppet or ansible or even specifying via hash (think git commit)
Re:Typosquatting programming language package managers by sheac on Wednesday June 08, 2016 @01:01PM (#11863713)
But if ABD and ABC are both package names in the system, then in order to present that warning we have to do some sort of resolution process to determine whether one is typosquatting.

Now that there's a strategy for finding fakers: 1) You have an attacker-defender arms race. The attacker will always be one step ahead of the defender. 2) You have the extra burden of keeping up in this race, otherwise your security feature is a facade. At best, this is useless. At worst, it lulls your users into a false sense of security.

Re:Typosquatting programming language package managers by zardeh on Wednesday June 08, 2016 @01:25PM (#11863897)
I feel like "pick the more popular package" is a good enough solution in this case.
Re:Typosquatting programming language package managers by sheac on Wednesday June 08, 2016 @02:28PM (#11864398)
Cool. Attacker-defender race is on!

As attacker, my next strategy is create a bunch of agents (<10K should be enough) to download my typo packages.

Your move, defender ;)

But seriously, my point has less to do with the particular tactics of the adversaries and more to do with how the proposed strategy of automatically detecting potential typos invites gaming.

Re:Typosquatting programming language package managers by zardeh on Wednesday June 08, 2016 @06:38PM (#11866249)
Perfect, if each of those 10K hosts downloads the library 100 times you can now typo-attack the zope.event (working in python) library, which gets ~100 downloads per day, many of which are automated and so invulnerable to your attack. Your attack vector gets you, we'll say 1 new hit every 2 days at most, and likely only one a week or so (according to some math, on `requst` vs. requests)