Skip to content

evenup/evenup-lynis

Repository files navigation

What is it?

A puppet module that installs lynis [rootkit.nl/projects/lynis.html] and allows you to configure profiles with associated daily cron entries. A script is provided as well that converts converts the lynis-report.dat file to json, adds the @timestamp and @version keys, and appends it to a file to be imported straight into logstash.

Usage:

Generic lynis install

  class { 'lynis': }

Adding a profile to be run manually

  lynis::profile { 'my_profile':
    profile_name  => 'my_profile',
    source        => 'puppet:///data/lynis/my_profile.prf',
  }

Adding a profile and using the random hour/minute cron settings, with JSONification of the report

  lynis::profile { 'my_profile':
    profile_name  => 'my_profile',
    source        => 'puppet:///data/lynis/my_profile.prf',
    cron          => true,
    logstashify   => true,
  }

Known Issues:

Only tested on CentOS 6

License:


Released under the Apache 2.0 licence

Contribute:

  • Fork it
  • Create a topic branch
  • Improve/fix
  • Push new topic branch
  • Submit a PR

About

Puppet module to install the security auditing tool lynis, configure profiles, and format the report for logstash

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors