Skip to content

Neccolini/seccampZ3-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint plugin for ReDoS

no longer supported

What's this?

This is a tool for identifying and reporting on regular expressions where there is a risk of ReDoS (the regular expression denial of service) attack.
for example: "/^(a|a)$/", "/^(\w|\d)+$/", "/^(.)="(.*)"$/"

Usage

In your project, run
npm install eslint@4.0.0
npm install git+https://github.com/Neccolini/seccampZ3-linter.git
Then, add ↓ to .eslintrc.js

module.exports = {

    "plugins": [
        "seccamp-z3"
    ],
    "rules": {
        "seccamp-z3/no-literal":"error"
    }
};

To detect ReDoS, run node_module/.bin/eslint <filename | directory>
This repository includes:

  • TypeScript setting
  • Jest
  • CircleCI configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published