Git Product home page Git Product logo

vector-influx-siem's Introduction

Vector & Influx as a "SIEM"

Disclaimer / How bad of an SIEM is it ? / Should I use it for any projects whatsoever ?

This whole stack currently works only as a logging stack and not as a SIEM.

The attempt here is to try vector.dev and InfluxDB both as alternative to usual ELK stacks for SIEM usage, which will probably require more tools to plug-in with this stack. I'm still a junior cybersecurity engineer and I'm barely used to handle and/or configure SIEMs and this is a discovery project.

Nothing too fancy, it barely works. I discovered vector.dev a few weeks ago but I didn't get more information until now I found the time for it. I like Datadog so I figured out this tool would be cool. I'm using a centralized aggregator with an agent that sends random logs to it, supposedly it is more cost-effective than having a stream-based approach but you could miss out on some logs out here (adding Apache Kafka and testing it out is a TODO).

InfluxDB is purely a naive choice out here, I already tested out ELK and it's cool, but if I have the occasion to pick Go over Java I'm doing it. Also, this project is not focused towards having the fastest stack, I'm mainly discovering new ways of doing things without taking benchmarks into account for now.

Grafana is our front-end here, the choice for it is mainly to have a place to see logs other than InfluxDB and to generate alerts that can be routed to other components such as JIRA through webhooks (This might be a next step) to allow for initiating an incident response workflow.

Architecture

Current Architecture

How does it look like ?

Here's a dashboard with a single logs panel. Logs are provided by demo logs from the vector agents.

Screenshot of a sample dashboard

Quickstart

  • Create influx.env, grafana.env and aggregator.env files:

influx.env

INFLUXDB_HTTP_BIND_ADDRESS=":8086"
DOCKER_INFLUXDB_INIT_MODE=setup
DOCKER_INFLUXDB_INIT_USERNAME=<username of your choice>
DOCKER_INFLUXDB_INIT_PASSWORD=<password of your choice>
DOCKER_INFLUXDB_INIT_ORG=vector-org
DOCKER_INFLUXDB_INIT_BUCKET=vector-bucket
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=<token of your choice>

grafana.env

GF_SECURITY_ADMIN_USER=<username of your choice>
GF_SECURITY_ADMIN_PASSWORD=<password of your choice>
GF_PATHS_PROVISIONING=/opt/provisioning
INFLUXDB_URL=http://influxdb:8086
INFLUXDB_TOKEN=<token from influxdb>

aggregator.env

INFLUXDB_ORG=vector-org
INFLUXDB_BUCKET=vector-bucket
INFLUXDB_TOKEN=<token from influxdb>
  • $ chmod +x start
  • $ ./start, you should be good to go and Influx should be available on localhost:8086.

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.