Giter Site home page Giter Site logo

jamiewingfield / waf-log-modsecurity-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intika-linux-server/waf-log-modsecurity-dashboard

0.0 0.0 0.0 2 KB

ModSecurity Log Viewer--My Research project about integrating Modsecurity log with ELK-Stack (Elastic Search, Logstash, and Kibana ) as Web Dashboard i.e GUI for analysing the log and manage them as statistical graph based on the real time attacks.

waf-log-modsecurity-dashboard's Introduction

Modsecurity-WAF-Dashboard (ELK-Stack)

Research Project aboiut integrating Modsecurity log with ELK-Stack (Elastic Search, Logstash, and Kibana ) as Web Dashboard i.e GUI for analysing the log and manage them as statistical graph based on the real time attacks.

[FOS] Demo WAF Dashboard

Alt text

Set Up Instruction:

  1. Install ModSecurity 2.x in your machine and configure the SecAuditLogType as Serial
  2. Configure SecAuditLog /var/log/modsecurity/audit/modsec_audit.json
  3. Dowload ELK latest version or 5.4.0 tar archieve or install it in machine

Note: I tried with 5.4.0 version by downloading the tar file and running it directly in my machine, it was working fine. I am not sure about lastest version.

 - Elasticsearch-5.4.0
 - Kibana-5.4.0
 - logstash-5.4.0
  1. Create Logstash cofig file and provide the following config with log path as mention below
   input {
       file{
           type => "modsecurity"
           path => ["/var/log/modsecurity/audit/modsec_audit.json"]
           start_position => beginning         
       }

  }
  filter {
    json {
   source => "message"
  }
  }

  output {
       elasticsearch {
           hosts => "localhost"
           index => "logstash.json"
       }

       stdout {
           codec => rubydebug
       }
   }

  1. Run Elastic Search binary directly from bin directory i.e /**/elasticsearch-5.4.0/bin or start the service if you have installed it
  2. Run Kibana binary directly from bin directory with sudo i.e /**/kibana-5.4.0-linux-x86_64/bin or start the service if you have installed it.
  3. Run the Logstash binary with option -f providing your logstash config file location with sudo if required.
  4. Check the status Elastic Search, Kibana & Logstash in terminal if you are running directly as binary.
  5. Go to http://localhost:5601/ (Kibana UI)
  6. Click Management section and select index pattern
  7. Click add button and provide pattern as * and click create.
  8. Go to dashboard section and click your index pattern.
  9. Select required field to show in dashboard from avaiable field secction and click add.
  10. Start testing the Web application with malicious payload, which will be logged by modsecurity.
  11. ModSecurity log event will be indexed by kibana and will be show in dashboard as real time.

Support !

Email address: [email protected] for more details.

Useful links:

  1. Modsecurity
  2. Kali
  3. ELK-Stack

waf-log-modsecurity-dashboard's People

Contributors

umarfarook882 avatar

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.