Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenge around node.js package typo squatting #368

Closed
tghosth opened this issue Aug 6, 2017 · 4 comments
Closed

Challenge around node.js package typo squatting #368

tghosth opened this issue Aug 6, 2017 · 4 comments

Comments

@tghosth
Copy link
Contributor

tghosth commented Aug 6, 2017

This might be a bit too obscure but I wonder if there could be a challenge related to reporting to juiceshop devs that they are using a fake version of a package, based on the issue documented here.

https://iamakulov.com/notes/npm-malicious-packages/

They could discover this from the package.json.bak.

Maybe if we created a harmless typosquatting package (i.e. it just says it is used for this challenge but doesnt do anything malicious) then it wouldn't get deleted from npm?

Also needs to be obvious enough, e.g. jsonweebtoken

@bkimminich
Copy link
Member

That's a wonderful idea. Making a typosquatted version of one of the security libs, e.g. "helmetjs" or the one for file upload "multr" or. "mullter".

bkimminich added a commit that referenced this issue Aug 15, 2017
(for upcoming typo squatting challenge #368)
@bkimminich
Copy link
Member

I created https://github.com/bkimminich/epilogue-js which is a bare copy of https://github.com/dchester/epilogue where I removed all build automation configs and bumped the version to 0.7.2 (whereas the original is 0.7.1) - there is no malicious content in epilogue-js whatsoever.

@dchester CC'ing you into this ticket to make you aware of the fact that there now is a package https://www.npmjs.com/package/epilogue-js on NPM which is essentially stolen 1:1 from your epilogue with just adding a disclaimer to make sure nobody actually uses it:
image
In case you are not happy with me abusing epilogue as a demo for typosquatting NPM modules, please let me know and I will find another module to typosquat.

@bkimminich
Copy link
Member

Added new typosquatted Angular package ng2-bar-rating which mirrors ngx-bar-rating by @MurhafSousli. No malicious changes were made to the library and it features a disclaimer header:

image

@lock
Copy link

lock bot commented Nov 4, 2019

This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.

@lock lock bot locked and limited conversation to collaborators Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants