Giter Site home page Giter Site logo

sitedata / net_healer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenvdeluca/net_healer

0.0 1.0 0.0 902 KB

NET HEALER receive DDoS Attack reports from FastNetMon collectors allowing custom triggers on a per stage based actions.

Shell 0.84% Ruby 99.16%

net_healer's Introduction

NET HEALER

NET HEALER receive DDoS Attack reports from FastNetMon collectors allowing custom triggers on a per stage based actions.
Allows integration with non gaussian algorithms for anomaly detection.
Provides a RESTful like API

STAGES

  • clear - no Attack Reports received for any /32 target
  • warning - less or equal to 2 Attack Reports received for /32 target(s)
  • critical - more than 2 Attack Reports received for /32 target(s)
  • under_attack - FastNetMon + anomaly detected

Each 1 FNM /32 ban = 1 NET HEALER Attack Report
Lower the FNM ban time, faster NET HEALER will advance in stages (thresholds can be customized)
Start with FNM ban time: 45 seconds (NET HEALER will converge from cleared to warning after 90 seconds)

ACTIONS

  • Grafana vertical bars markdown including stage/target(s)
  • Email
  • Pagerduty
  • Flowdock chat messages
  • BGP announces (BIRD + kernel blackhole tables)

Requirements

Nice to have

##Installation 0. FastNetMon (FNM) should be configured to use:

  1. install ruby (https://www.ruby-lang.org/en/documentation/installation/)
  2. $ gem install bundler
  3. $ bundle install
  4. $ bundle exec script/bootstrap
  5. Populate .env with a config
  6. $ bundle exec script/start

Screenshot during an attack

alt tag

##How to query the API

GET /healer/v1/ddos/status

{
  "status": "clear",
  "timestamp": "20150913-115403"
}

GET /healer/v1/ddos/reports

{
    "reports": {
        "200.200.200.10": {
            "fqdn": "nethealer.hostingxpto.com",
            "attack_type": "udp_flood",
            "alerts": 2,
            "protocol": [
                "udp"
            ],
            "incoming": {
                "total": {
                    "mbps": 2894.96,
                    "pps": 781380,
                    "flows": 628
                },
                "tcp": {
                    "mbps": 1.71,
                    "pps": 2654,
                    "syn": {
                        "mbps": 0.08,
                        "pps": 109
                    }
                },
                "udp": {
                    "mbps": 2761,
                    "pps": 779884
                },
                "icmp": {
                    "mbps": 0,
                    "pps": 0
                }
            }
        }
    }
}

### GET /healer/v1/ddos/brief 
=> query /32 targets + amount of current Attack Reports
```json
{
  "reports": {
    "200.200.200.10": 3,
  },
  "timestamp": "20150913-030255"
}

WORK IN PROGRESS

=> PRs are more than welcome !

Need help ?

send me an email [email protected]

net_healer's People

Contributors

akakuruma avatar nettofarah avatar zenvdeluca avatar

Watchers

 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.