Giter VIP home page Giter VIP logo

unifiedbeat's Introduction

Unifiedbeat

Unifiedbeat reads records from Unified2 binary files generated by network intrusion detection software and indexes the records in Elasticsearch. Unified2 files are created by IDS/IPS software such as Snort and Suricata.

More

Note

This version is no longer based on a clone of Filebeat, but follows the Beats development guide.


February 18, 2016

Usage

  1. build from source:
  • git clone https://github.com/cleesmith/unifiedbeat
  • cd unifiedbeat
  • go build
    • if building for linux 64bit platform but on a mac do the following to cross-compile:
      • env GOOS=linux GOARCH=amd64 go build
  1. mkdir unifiedbeat
  2. cd unifiedbeat
  3. copy or scp the unifiedbeat binary file to the unifiedbeat folder
  4. curl -XPUT 'http://localhost:9200/_template/unifiedbeat' -d@etc/unifiedbeat.template.json
  5. rm .unifiedbeat if exists ... this file tracks the previous positions within the unified2 files being tailed and indexed
  6. nano or vim etc/unifiedbeat.yml then change YAML configuration file:
  • sensor:
    • unified2_path: ? # where are the unified2 files, typically: /var/log/snort/snort.log*
    • unified2_prefix: "snort.log"
    • rules:
      • gen_msg_map_path: ? # the absolute full path, typically: /etc/snort/gen-msg.map
      • paths: ? # where are the .rules files, typically: /etc/snort/rules/*.rules
    • fields: # add fixed/known details about this sensor
  • .   .   .
  • output:
    • elasticsearch:
      • hosts: ["?.?.?.?:9200"] # elasticsearch's ip:port - most securely/typically on the same host as Snort
  1. cp etc/unifiedbeat.yml /etc/unifiedbeat.yml ... this is not required but typically done
  2. ./unifiedbeat -c /etc/unifiedbeat.yml
  • typically this command would be in a systemd, Upstart, or SysV (init.d) script
  • for a quick test use:
    • nohup ./unifiedbeat -c /etc/unifiedbeat.yml &
    • ps aux | grep -i unifiedbeat ... remember it's pid, so you can kill it
    • use curl, sense, or kibana to look at the indices in elasticsearch
    • kill ?pid? ... when done testing
  1. now, use Kibana or a custom app daily to see what's up with your host and network ... sleep better at night

Kibana screenshots

Dashboard

this is just a simple example of a Kibana dashboard and not very useful for security analysts

see kibana/export.json to import the provided dashboard, search, and visualizations into Kibana

new to Kibana? this YouTube playlist is helpful


Event record as shown in Kibana's Discover

Event

notice the signature and rule_raw fields


Packet record as shown in Kibana's Discover

Packet

notice the human readable packet_dump field with all layers shown in both hex and text


Sense screenshots

Event type document in ElasticSearch

Event


Packet type document in ElasticSearch

Packet



unifiedbeat's People

Contributors

cleesmith avatar

Watchers

Nicolas Ruflin avatar James Cloos avatar  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.