CISOfy /lynis
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.
★ 16,691⑂ 1,651👁 341⑃ 806● 982▤ 66
+5
Daily
16,691
stars
1,651
forks
341
watchers
806
prs
982
issues
66
releases
README
[Documentation]
[Documentation]: https://cisofy.com/documentation/lynis/
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:
- 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:
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 abTop issues
#1146Lynis Ignores IPV6 Kernel Blacklisting9 comments · 2021-05-06#1479fail2ban.configreader prints warning to stderr (allowipv6)8 comments · 2024-04-03#1315Output error during audit system execution "sh: 1658831612%N: bad number"8 comments · 2022-07-26#1273lynis modifies file owner and group8 comments · 2022-02-21#1151Exceptions found in PKGS-73288 comments · 2021-05-12#1083FILE-6430 Check other files too8 comments · 2020-12-06#1268Rocky Linux release 8.5 (Green Obsidian) - no URL links in report/logs7 comments · 2022-02-09#1758GPG key has expired6 comments · 2026-06-21
Discussions
#1666Integration with Lynis1 comments · 2025-10-06#1657Question about location for lynis directory and its binary2 comments · 2025-08-12#1618ParseNginx function needs rework1 comments · 2025-03-17#1532skip tests group1 comments · 2024-08-22#1488Help me out please1 comments · 2024-04-27#1486Community maintained fixes2 comments · 2024-04-18#1472cron.service [UNSAFE]1 comments · 2024-03-25#1468Run Lynis against a rootfs1 comments · 2024-03-20
Latest release
Lynis 3.1.7 3.1.7 2026-06-25What's Changed Add Debian 13 EOL by @Skorium in https://github.com/CISOfy/lynis/pull/1680 Add Fedora 43 EOL date by @pointydev in https://github.com/CISOfy/lynis/pull/1679 Add AlmaLinux to EOL DB by @vofy in https://github.com/CISOfy/lynis/pull/1678 Add EOL date for Alpine 3.22 by @kolenichsj in https://github.com/CISOfy/lynis/pull/1677 Add openSUSE Leap to EOL DB by @mnhauke in https://github.com/CISOfy/lynis/pull/1682 Fix OS detection for CachyOS (ID=cachyos) by @cycloarcane in https://github.com/CISOfy/lynis/pull/1683 Add CachyOS to OS end-of-life database by @cycloarcane in h