Giter Club home page Giter Club logo

ansible-antirootkits's Introduction

qs5779.antirootkits

Ansible role to deploy several rootkit and malware detection tools:

  • Rkhunter: rootkit, backdoor, sniffer and exploit scanner
  • chkrootkit: rootkit detector
  • Unhide: forensic tool to find hidden processes and TCP/UDP ports by rootkits
  • Shell Detector: application that helps you find and identify php/cgi(perl)/asp/aspx shells

Debian, RHEL and their respective derivatives are supported. chkrootkit is not available for RHEL.

Role Variables

Tools to install

The following variables control whether a tool is installed (true) or not (false). All variables default to 'false'.

  • rkhunter
  • chkrootkit
  • unhide
  • shelldetector

General setup

  • antirootkits_mail_cmd: Command to send reports (varies between Debian and RHEL)
  • antirootkits_mail_from: Sender email address for the audit reports. No valid default, you have to fill it in.
  • antirootkits_mail_to: Receiver email address for the audit reports. No valid default, you have to fill it in.
  • antirootkits_log_expire: Days before logs are purged. Defaults to '90'.
  • antirootkits_rkhunter_diag_scan: Include application check for detailed report scan. Defaults to 'no' (RHEL only)

Unhide setup

  • unhide_cron_hour: Hour of execution of Unhide's cron job. Defaults to '6'.
  • unhide_cron_minute: Minute of execution of Unhide's cron job. Defaults to '00'.

Shell Detector setup

  • shelldetector_install_directory: Install directory. Defaults to '/opt/Shell-Detector'.
  • shelldetector_scan_directory: Directory to scan. Defaults to '/var/www'.
  • shelldetector_cron_hour: Hour of execution of Shell Detector's cron job. Defaults to '6'.
  • shelldetector_cron_minute: Minute of execution of Shell Detector's cron job. Defaults to '30'.

Rkhunter setup

  • rkhunter_allow_ssh_root_user: Define what rkhunter should expect in sshd config. Defaults to 'no'.

Example playbook

Example of how to use this role:

- hosts: servers
  vars:
     antirootkits_mail_from: '[email protected]'
     antirootkits_mail_to: '[email protected]'
  roles:
     - { role: qs5779.antirootkits }

License

GPLv3

Credits

Projec forked from https://github.com/mablanco/ansible-antirootkits

ansible-antirootkits's People

Contributors

clementj35 avatar mablanco avatar qs5779 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.