While utilizing the Naive Bayes classifier to detect brute force attacks, validate inputs, identify insecure authentication, and analyze security headers, the model currently trains separately for each JavaScript test file (.js, .jsx, .tsx, etc.). This process can be streamlined by generating a single (or multiple depending upon the vulnerability) weighted pickle model, which can be reused each time a JavaScript file is tested for vulnerabilities, improving efficiency and consistency.
Steps to be considered by the contributor:
- Organizing data and cleaning data.
- Training a model.
Files to be referred/altered for this change:
- DetectBruteForceAttack.ts
- DetectInputValidation.ts
- InsecureAuthentication.ts
- AnalyzeSecurityHeaders.ts
- Vulnerability.ts
Make sure the end user/developer (who downloads the NPM package) is able to smoothly run the NPM package after these changes.
While utilizing the Naive Bayes classifier to detect brute force attacks, validate inputs, identify insecure authentication, and analyze security headers, the model currently trains separately for each JavaScript test file (.js, .jsx, .tsx, etc.). This process can be streamlined by generating a single (or multiple depending upon the vulnerability) weighted pickle model, which can be reused each time a JavaScript file is tested for vulnerabilities, improving efficiency and consistency.
Steps to be considered by the contributor:
Files to be referred/altered for this change:
Make sure the end user/developer (who downloads the NPM package) is able to smoothly run the NPM package after these changes.