Giter Site home page Giter Site logo

Index and show rules about evebox HOT 9 CLOSED

jasonish avatar jasonish commented on July 26, 2024
Index and show rules

from evebox.

Comments (9)

jasonish avatar jasonish commented on July 26, 2024

Should be doable soon. I've had a Golang rule parser sitting around for sometime now not in version control. Sounds like a good idea for the "agent" feature I've been prototyping, which would make this work even if the sensor is on a different machine.

from evebox.

rhaist avatar rhaist commented on July 26, 2024

I have also been experimenting with a golang rule parser. Let me know if you need some help/ideas.

from evebox.

jasonish avatar jasonish commented on July 26, 2024

If interested, here's my go parser: https://github.com/jasonish/go-idsrules

It doesn't go so far as to validate that rules will actually run, it currently only looks at syntax.

from evebox.

rhaist avatar rhaist commented on July 26, 2024

Looks very nice. I will have a look and watch for stuff that I can contribute from my implementation.

I see from tests that you have solved a problem of mine. Am I right, that suricata does in fact allow spaces in the address lists in the net part of the rule contrary to snort?

from evebox.

jasonish avatar jasonish commented on July 26, 2024

I see from tests that you have solved a problem of mine. Am I right, that suricata does in fact allow spaces in the address lists in the net part of the rule contrary to snort?

I actually haven't checked Suricata, and my parser doesn't either - the test is to make sure that they fail. Currently I still want to parse valid Snort rules as well. If Suricata can (I should check) then I'll have to go a little farther where you can set a parser flavour.

from evebox.

jasonish avatar jasonish commented on July 26, 2024

Edit in last comment.. I haven't checked Suricata yet for allowing spaces.

from evebox.

rhaist avatar rhaist commented on July 26, 2024

I checked - suricata does allow blanks for net and port definitions.

from evebox.

jasonish avatar jasonish commented on July 26, 2024

It might not help in your use case, but there are now ways to include the rule with the alert...

The evebox server (if also reading events), the evebox agent as well as esimport can all parse a directory of Snort rules and add the rule to the event.

This doesn't help if you are using Logstash/Filebeat or other tools to handle your logs though, so I'll leave this open for now.

from evebox.

jasonish avatar jasonish commented on July 26, 2024

Closing for now. As mentioned above the EveBox log readers can also parse rules and add them to events. In the future, Suricata may also include the rule with an alert.

from evebox.

Related Issues (20)

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.