Giter Club home page Giter Club logo

splunk_uf_hardening's Introduction

Securing the Splunk Universal Forwarder

This repo contains scripts to automate certain aspects of the Splunk Universal Forwarder installation, ensuring it is done in a secure manner.

Windows

The windows installation script installs the forwarder in low privilage mode. It does this while creating a local user "splunk" with a random password that is shared with the splunk admin account.

The user portion could be modified pertaining to your environment, as long as that user has the following privilages:

  • SeServiceLogonRight
  • SeSecurityPrivilege
  • SeSystemProfilePrivilege
  • SeImpersonatePrivilege

It does not do any further configuration other than the base install along with a disabling of the mangement interface.

Linux

The linux installation script expects a splunkforwarder package available in a yum repository. This script could be adapted as needed based on your particular distro, but was developed for RHEL/CentOS.

It performs the same actions of disabling the management interface, as well as setting the splunk admin's password to a random string. The Splunk RPM creates a user 'splunk' by default, and this script sets the splunk service to run as that user.

The script doesn't add any inputs or outputs configuration, but it does set an acl on /var/log to allow the splunk user to read those files. It also configures auditd to allow for similar reads.

bash_history

Included here is an initialization script 'setup_histdir.sh' that creates /var/log/bashhist, as well as moving the 'capture_bash_hist.sh' script into place in /etc/profile.d. This script will cause terminal commands to be logged, after which an input stanza could be setup. The input stanza isn't included, but it should have the sourcetype 'bash_history', which would align with the included props.conf that sets up the time parsing, as well as field extractions.

splunk_uf_hardening's People

Contributors

jewnix avatar mattuebel 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.