News for hackers. Stuff that matters.
Re:The Frequency of Known Vulnerabilities in JavaScript by ghiculescu on Thursday March 09, 2017 @02:36PM (#13832533)
In ruby land, there's a great gem - https://github.com/rubysec/bundler-audit - that lets you know when specific gem versions have a known security vulnerability.

We run it as part of our CI. When a vulnerability drops, it gets fixed pretty quickly since otherwise everyone's build fails.

Does anyone know of any equivalents for the JS world? A quick google finds https://github.com/nodesecurity/nsp but keen to hear what other people are doing.

Re:The Frequency of Known Vulnerabilities in JavaScript by RKoutnik on Thursday March 09, 2017 @05:34PM (#13834468)
Snyk, the site hosting this article, provide such a service: https://snyk.io/
Re:The Frequency of Known Vulnerabilities in JavaScript by bugmen0t on Thursday March 09, 2017 @02:45PM (#13832673)
Sure, there's retire.js at https://retirejs.github.io/retire.js/
Re:The Frequency of Known Vulnerabilities in JavaScript by libertymcateer on Thursday March 09, 2017 @02:38PM (#13832567)
What do you use for CI?

And yes, that is a great question. I would love to know. I guess, however, the follow-up question is how current the audit package is kept. It seems like this is the sort of thing that would need -constant- update in order to be useful. However, as is often the case, please do correct me if I am wrong.

Edit: one of the folks from Snyk responded to me below: https://snyk.io/ This seems to be what they do. No endorsement, but this certainly seems interesting.

Re:The Frequency of Known Vulnerabilities in JavaScript by EvanDotPro on Thursday March 09, 2017 @03:26PM (#13833186)
I haven't researched the JS options in this space yet either, but if anyone reading is looking for something like this for PHP, there is Roave Security Advisories — https://github.com/Roave/SecurityAdvisories

Add it to your composer.json and it will simply conflict with all lib versions with known vulnerabilities.

The data source used (https://github.com/FriendsOfPHP/security-advisories) has an excellent history of keeping up-to-date.

Disclosure: I'm the founder of Roave.

Re:The Frequency of Known Vulnerabilities in JavaScript by sverweij on Friday March 10, 2017 @06:18AM (#13837786)
We're currently using nsp - it checks advisories on nodesecurity.io against our _direct_ dependencies & devDependencies.

For my private projects I use both nsp and bithound. Bithound apparently uses snyk, which checks both direct _and_ indirect dependencies.

Both nsp and snyk use central repos of vulnerabilities - and both are backed by a business with a vested interest to keep these up to date (^lLift and Snyk respectively).

Don't get the hassle about upgrading to latest versions though. It's super easy to automate (ncu --upgrade && npm i && npm test).

Re:The Frequency of Known Vulnerabilities in JavaScript by adminu on Saturday March 11, 2017 @04:42PM (#13847416)
I build a Haskell program that checks the RSS-feed that you can download from Snyk against a package.json file of an NPM-project. I do not have some of my projects on github and never will have. I am especially alergic to providing anybody access to my private repos if i do not have to, so... https://github.com/phuhl/SnykVulnChecker
Re:The Frequency of Known Vulnerabilities in JavaScript by azeirah on Thursday March 09, 2017 @02:52PM (#13832778)
Re:The Frequency of Known Vulnerabilities in JavaScript by guypod on Thursday March 09, 2017 @02:56PM (#13832836)
Rubysec is awesome but outdated, lacks many of the vulnerabilities in https://Snyk.io/

Also, Snyk covers JS issues, both Nodd and client side

Re:The Frequency of Known Vulnerabilities in JavaScript by phillmv on Thursday March 09, 2017 @04:38PM (#13833969)
>Rubysec is awesome but outdated, lacks many of the vulnerabilities in https://Snyk.io/

I'm one of the Rubysec maintainers.

If you're reading this and you know about vulns not present in the advisory-db, please submit a PR to the github repo, or use the crappy form we put together: https://rubysec.com/advisories/new

I too run a vulnerability notification service, and it's frustrating when other people use public data but don't contribute back.

Re:The Frequency of Known Vulnerabilities in JavaScript by ghiculescu on Friday March 10, 2017 @01:51PM (#13840980)
Thank you for maintaining such a great service! You should promote your service as part of it.
Re:The Frequency of Known Vulnerabilities in JavaScript by mistercow on Thursday March 09, 2017 @02:50PM (#13832752)
It sounds like these Snyk folks have a CLI that can check your node modules against their database. I haven't tried it though, so all I have to go on is their feature page.
Re:The Frequency of Known Vulnerabilities in JavaScript by aviadR on Thursday March 09, 2017 @03:13PM (#13833043)
There is also a way to test on the website, if your project is hosted
Re:The Frequency of Known Vulnerabilities in JavaScript by narsil on Thursday March 09, 2017 @03:06PM (#13832958)
Nice. Is there an equivalent for Python? A quick Google search doesn't seem to pull up anything obvious.
Re:The Frequency of Known Vulnerabilities in JavaScript by ubernostrum on Thursday March 09, 2017 @07:53PM (#13835385)
See https://requires.io/ for this as a service with source-control integration.
Re:The Frequency of Known Vulnerabilities in JavaScript by mdzn on Thursday March 09, 2017 @04:35PM (#13833947)
I'd recommend safety for Python.

https://github.com/pyupio/safety