lynis README

The project's README from github.com/CISOfy/lynis. As one markdown file: 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 of Lynis include:

The software (also) assists with:

Audience

Typical users of the software:

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.

Documentation

Have a look at the Lynis documentation to learn more about the configuration and usage of Lynis. When you are interested in reading more articles about Linux security, then check out the Linux security blog named Linux Audit. For some suggestions by Lynis, this is also the source used to learn more about specific findings.

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: [email protected].

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

Enterprise version for companies

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

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

lynis (CISOfy/lynis)

Searching Database…

16.5K ·GitHub
Что это такое?Lynis — это инструмент для аудита безопасности и усиления защиты систем Linux, macOS, BSD и других Unix-подобных систем. Он сканирует хост, на котором запущен, на наличие уязвимого ПО, неправильных настроек и слабых параметров, даёт советы по усилению защиты и помогает проверять соответствие требованиям HIPAA, ISO27001 и PCI DSS.
Это фоновый агент или скрипт, который я запускаю вручную?Это программа без агента: скрипт на shell, который вы клонируете или скачиваете и запускаете по необходимости. Демон, компиляция или установка не нужны.
Как его запустить?Установите его из репозитория пакетов вашей ОС (CentOS, Debian, Fedora, Ubuntu и др.) или получите последнюю версию через git и запускайте прямо из папки: 'cd lynis && ./lynis audit system'.
Нужно ли запускать его от root?Строго говоря, нет. Но запуск от имени обычного пользователя ограничивает проверки, которые может выполнить Lynis, и программа будет выдавать предупреждения о правах доступа к файлам. Если вы хотите запускать его от root, сначала нужно сменить владельца файлов на root с помощью chown.
Lynis сам исправляет найденные проблемы?Нет, он только проводит аудит и формирует отчёт. Он проверяет ваши средства защиты и даёт рекомендации по усилению, но конфигурацию системы за вас не меняет.
Lynis полностью бесплатный или есть платная версия?Сам инструмент — открытое ПО под лицензией GPLv3. Компания CISOfy также продаёт отдельную редакцию Enterprise для компаний: с веб-интерфейсом, панелью и отчётами, фрагментами для усиления защиты и коммерческой поддержкой.
Для проверки соответствия каким стандартам его можно использовать?Lynis помогает проверять соответствие таким стандартам, как HIPAA, ISO27001, PCI DSS и GDPR, а также выявляет общие уязвимости.
Можно ли писать свои собственные проверки?Да, у Lynis есть собственный комплект для разработки (SDK), поэтому можно создавать свои тесты на основе существующего движка сканирования.
Кто на самом деле пользуется этим инструментом?Исторически им пользовались системные администраторы, аудиторы и специалисты по безопасности из «синей команды». Сейчас его также применяют пентестеры при работе над повышением привилегий и обнаружением вторжений.
Creator
CISOfy
Size
8.9 MB
Stars
16.5K
Age
12y
Commits · 90 Days