- A security middleware for node.js. app to Detect and generate report in your dashboard
npm install node-soc-lite --save
yarn add node-soc-lite
After doing those things "The node-soc-lite is successfully install" the message will be show in your terminal.
-
Open
server.js
orapp.js
file. Calling our plugin function immediate after express call. Ex:var app = express(); var nodeSoc = require("node-soc-lite");
-
Configure the middleware function:
app.use(function(req, res, next){ nodeSoc.ThreatEquationMiddleware(req, res); next(); });
-
add following lines
PRODUCT_KEY=<your_product_ky> API_KEY=<your_api_key>
restart the app.
Monitoring request data and generate reports on following areas -
1.SQL injection
2.XSS (Cross Site Scripting)