Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best tool for Javascript security auditing?

Something that can at least scan a batch of .js files looking for eval statements and other questionable code. Maybe just a regex pattern would do it, but I'd like to find a more sophisticated (and regularly maintained) tool.

like image 358
mcqwerty Avatar asked Jan 05 '11 17:01

mcqwerty


2 Answers

old topic but new tool : ScanJS, developed by mozilla in order to check the Firefox OS security. https://github.com/mozilla/scanjs

like image 183
maggick Avatar answered Sep 17 '22 15:09

maggick


Have you tried Douglas Crockford's JSLint? Although it doesn't scan your code for security problems, however, it does alert you on "eval" statements. OTOH, Predrag Tomasevic has wrote a JavaScript Verifier based on JSLint that can be integrated with Visual Studio (read more on this here).

like image 26
J. Rattz Avatar answered Sep 21 '22 15:09

J. Rattz