Lynis - Security auditing tool for Linux, macOS, and UNIX-based systems. Assists with compliance testing (HIPAA/ISO27001/PCI DSS) and system hardening. Agentless, and installation optional.
Go to file
xnoguer 6f1797fb59 Using grep -E 2023-04-23 17:38:21 -04:00
.github/ISSUE_TEMPLATE Disable this action 2021-07-22 11:09:34 +02:00
db Fixed typo in Group for FINT-4316 2022-08-17 14:03:21 -05:00
extras spelling: settings 2020-11-08 23:53:09 -05:00
include Using grep -E 2023-04-23 17:38:21 -04:00
plugins Removed restriction for using the plugin and code style improvements 2020-03-23 11:30:10 +01:00
.gitignore Ignore swap files 2016-07-30 14:12:27 +02:00
.travis.yml Added notifications 2016-05-12 08:23:32 +02:00
CHANGELOG.md Updated log 2022-10-24 16:22:27 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-08-17 20:37:37 +02:00
CONTRIBUTING.md spelling: notation 2020-11-08 23:53:09 -05:00
CONTRIBUTORS.md Added @konstruktoid 2021-07-29 15:04:53 +02:00
FAQ Updated several entries 2021-07-22 11:21:41 +02:00
HAPPY_USERS.md Update HAPPY_USERS.md 2021-10-15 23:34:10 +03:00
INSTALL Preparation for release 3.0.3 2021-01-07 15:22:19 +01:00
LICENSE Update of LICENSE file, which has version control texts in it 2014-10-06 14:00:47 +02:00
README Fix links CONTRIBUTIONS -> CONTRIBUTING (#472) 2017-10-19 09:56:37 +02:00
README.md Fix typo in README.md 2022-01-15 12:14:57 -07:00
SECURITY.md Create SECURITY.md file 2019-07-11 10:55:54 +02:00
TODO.md Updated rationale related to egrep (link added) 2021-07-20 21:14:44 +02:00
default.prf Merge pull request #933 from topimiettinen/check-clip-os-sysctls 2020-12-22 14:31:08 +01:00
developer.prf Run non-interactive by default, use --wait to enforce waiting after finishing a group of tests 2019-07-12 14:38:52 +02:00
lynis expected variable $NOW 2022-09-24 19:11:40 +03:00
lynis.8 Fix quote syntax error in manpage 2020-03-17 12:01:21 +09:00

README.md

Linux Security Expert badge Build Status CII Best Practices Documentation

Do you like this software? Star the project and become a stargazer.


lynis

Lynis - Security auditing and hardening tool, for UNIX-based systems.

Lynis is a security auditing tool for systems based on UNIX like Linux, macOS, BSD, and others. It performs an in-depth security scan and runs on the system itself. The primary goal is to test security defenses and provide tips for further system hardening. It will also scan for general system information, vulnerable software packages, and possible configuration issues. Lynis was commonly used by system administrators and auditors to assess the security defenses of their systems. Besides the "blue team," nowadays penetration testers also have Lynis in their toolkit.

We believe software should be simple, updated on a regular basis, and open. You should be able to trust, understand, and have the option to change the software. Many agree with us, as the software is being used by thousands every day to protect their systems.

Goals

The main goals are:

  • Automated security auditing
  • Compliance testing (e.g. ISO27001, PCI-DSS, HIPAA)
  • Vulnerability detection

The software (also) assists with:

  • Configuration and asset management
  • Software patch management
  • System hardening
  • Penetration testing (privilege escalation)
  • Intrusion detection

Audience

Typical users of the software:

  • System administrators
  • Auditors
  • Security officers
  • Penetration testers
  • Security professionals

Installation

There are multiple options available to install Lynis.

Software Package

For systems running Linux, BSD, and macOS, there is typically a package available. This is the preferred method of obtaining Lynis, as it is quick to install and easy to update. The Lynis project itself also provides packages in RPM or DEB format suitable for systems systems running: CentOS, Debian, Fedora, OEL, openSUSE, RHEL, Ubuntu, and others.

Some distributions may also have Lynis in their software repository: Repology

Note: Some distributions don't provide an up-to-date version. In that case it is better to use the CISOfy software repository, download the tarball from the website, or download the latest GitHub release.

Git

The very latest developments can be obtained via git.

  1. Clone or download the project files (no compilation nor installation is required) ;

     git clone https://github.com/CISOfy/lynis
    
  2. Execute:

     cd lynis && ./lynis audit system
    

If you want to run the software as root (or sudo), we suggest changing the ownership of the files. Use chown -R 0:0 to recursively alter the owner and group and set it to user ID 0 (root). Otherwise Lynis will warn you about the file permissions. After all, you are executing files owned by a non-privileged user.

Enterprise Version

This software component is also part of an enterprise solution. Same quality, yet with more functionality.

Focus areas include compliance (PCI DSS, HIPAA, ISO27001, and others). The Enterprise version comes with:

  • a web interface;
  • dashboard and reporting;
  • hardening snippets;
  • improvement plan (based on risk);
  • commercial support.

Documentation

Full documentation: https://cisofy.com/documentation/lynis/.

Customization

If you want to create your own tests, have a look at the Lynis software development kit.

Security

We participate in the CII best practices badge program of the Linux Foundation.

Media and Awards

Lynis is collecting some awards along the way and we are proud of that.

Contribute

We love contributors.

Do you have something to share? Want to help out with translating Lynis into your own language? Create an issue or pull request on GitHub, or send us an e-mail: lynis-dev@cisofy.com.

More details can be found in the Contributors Guide.

You can also simply contribute to the project by starring the project and show your appreciation that way.

Thanks!

License

GPLv3