GithubHelp home page GithubHelp logo

Comments (3)

dune73 avatar dune73 commented on August 16, 2024

That was quick. Thank you. Could you update the sample1.conf, so I can check how this really looks now?

I have not yet tried your code, nor the rules, but this looks really promising.

May I point you to my whitelisting recipe in the https://www.netnea.com/cms/apache-tutorial-6_embedding-modsecurity/ tutorial. It could serve as an inspiration and further validation of your approach.

For example, my rule id 11000 is really crucial when it comes to prevent bypasses.

from swagger2modsec.

angeloxx avatar angeloxx commented on August 16, 2024

Thank you, sample updated. My first objective is to get a simple script to create a stub for the modsecurity configuration, the second one is to use pymodsecurity (based on modsecurity 3) to validate output file and use a "standard" set of attacks and test rules, but I'm unable to compile the module at the moment. The second change is to start a docker container with apache+modsecurity, load the generated rules and test it. I've to think about it.

About you rule set, you are right (I've clearly remember your training course), but I suppose that the generated rules are inserted in a wider set of rules. I'm also not so sure that I'm using the right approach to whitelist paths.

As usual, any comment is appreciated.

from swagger2modsec.

dune73 avatar dune73 commented on August 16, 2024

I second your plan. I think this is a viable approach. If unsure about a container, you may want to look in Franziska Bühler's docker container. But it's ModSec 2.9...

As for the right approach to the rules: I am intrigued by your approach. I have not tried out the sample, but I am very interested to really understand how it is working.

Good luck with your project!

from swagger2modsec.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.