Skip to content

marcoshioka/node_security_tests

Repository files navigation

node_security_tests

Security tests in Node.js

Basic framework:

  • Node.js (JavaScript), is-website-vulnerable and pentest-tool-lite npm packages.

Configuration:

  • Clone this repository.
  • You must have Node.js installed in your local machine.
  • After that, install the dependencies running this command in the root:
 npm install

Project structure:

  • There are scripts configured for each security test on package.json.
  • It was created a .gitignore file to not push "node_modules" folder.
  • It was added CircleCI file to run tests in pipeline (CI/CD/Continuous Testing).

About test script:

vulnerable N|vulnerable

It's a script using npm package "is-website-vulnerable" to finds publicly known security vulnerabilities in a website's frontend JavaScript libraries.

To execute this script, run the command (ps: a log file "log-vulnerable.txt" is generated in the end of execution):

npm run vulnerable

pentest N|pentest

It's a script using npm package "pentest-tool-lite", to finds common vulnerabilities. That includes: file availability, caching, content sniffing and minification.

To execute this script, run the command (ps: a log file "log-pentest.txt" is generated in the end of execution):

npm run pentest

CircleCI:

It was included a configuration to execute these security tests in CircleCI (CI/CD/Continuous Testing). The config is in "circle.yml" file, in the project root. With this config the project execute in Circle CI, including the log file in the end of execution.

Version information:

  • 1.0.0: first version

Author:

About

Security tests in Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published