Giter Club home page Giter Club logo

siem-monitor's Introduction

siem-monitor

Systems Security class project - system for security information and event management (SIEM).

MongoDB setup

  1. Download MongoDB from here and install it
  2. Create the mongod.cfg config file with the following contents (replacing paths) in C:\Program Files\MongoDB\Server\3.6:
systemLog:
    destination: file
    path: c:\...\mongodb\log\mongod.log
storage:
    dbPath: c:\...\mongodb\data
  1. Create files and folders specified in the mongod.cfg file
  2. Start cmd with admin privileges and start MongoDB with:
"C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.6\mongod.cfg"
  1. Open a second cmd with admin privileges and run the following commands (replacing <admin username> and <admin password>):
"C:\Program Files\MongoDB\Server\3.6\bin\mongo.exe"

use admin
db.createUser({user: <admin username>, pwd: <admin password>, roles: [{role: "userAdminAnyDatabase", db: "admin"}]})
exit
  1. Stop the first cmd and install MongoDB (that requires authentication) as a Windows service (uninstall first if already installed):
"C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.6\mongod.cfg" --auth --install
  1. Run MongoDB from the same cmd: net start MongoDB
  2. Go back to that second cmd and start mongo shell again
  3. Authenticate as admin (replacing <admin username> and <admin password>):
use admin
db.auth(<admin username>, <admin password>)
  1. Create database and its user (replacing <dev username> and <dev password>):
use siemdb
db.createUser({user: <dev username>, pwd: <dev password>, roles: [{role: "readWrite", db: "siemdb"}]})
  1. Add the following system environment variables:
CODE10_SIEM_DB_DEV_USERNAME <dev username>
CODE10_SIEM_DB_DEV_PASSWORD <dev password>

Linux log format setup

  1. Open etc/rsyslog.d/50-default.conf
  2. Paste this as the first two lines of the file:
$template SiemFormat, "%TIMESTAMP:1:24:date-rfc3339% | %hostname% | %source% | %procid% | %syslogfacility-text% | %syslogseverity-text% | %msg%\n"

$ActionFileDefaultTemplate SiemFormat
  1. Run sudo service rsyslog restart in terminal

Generating SSL certificates

  1. Add the following system environment variables:
CODE10_SIEM_CERT_SERVER_KEY_PASS <password>
CODE10_SIEM_CERT_CLIENT_KEY_PASS <password>
  1. Open Power Shell and run the script .\ssl\ssl.ps1.

Team members

siem-monitor's People

Contributors

lukamaletin 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.