Lynis is an open-source security auditing tool for UNIX derivatives like Linux, Mac OS, BSD, other Unix-based operating systems etc. Performing extensive health scan of systems that support System Hardening and Compliance Testing. An open-source software with GPL License. This tool also scans for general system information, vulnerable software packages, and configuration issues. It is useful for System Administrators, Auditors, Security Professionals.
SYSTEM REQUIREMENTS
RAM : Minimum 1 gb.
Storage : Minimum 10 MB for installation.
OS : Compatible with Linux, macOS, and Unix-based systems.
Architecture : Supports both 32-bit and 64-bit architectures.
Available On : PC
ADDITIONAL INFORMATION
CISOfy.
2007
1.67 MB
CISOfy specializes in security tools and system hardening.
English
March 12, 2025
Version 2023-07-R1.
Written in Shell scripting.
Cross-platform
Open Source under the GNU General Public License (GPL).
Since Lynis is flexible, it is used for several different purposes. Typical use cases for Lynis include:
Example : When Lynis detects that you are running Apache, it will perform an initial round of Apache related tests. Then when it performs the specific Apache tests, it may also discover a SSL/TLS configuration. It then performs additional auditing steps based on that. A good example is collecting any discovered certificates, so that they can be scanned later as well.
Lynis is a powerful security auditing tool for Linux, macOS, and Unix-based systems. It helps assess system vulnerabilities, compliance, and hardening. Here are some examples of its usage :
sudo lynis audit systemThis performs a comprehensive security audit of the system, checking configurations, software, and vulnerabilities.
sudo lynis update infoEnsures that Lynis is up-to-date with the latest features and security checks.
sudo lynis audit dockerfile /path/to/dockerfileAnalyzes a Dockerfile for security issues and provides recommendations.
sudo lynis --pentestExecutes Lynis in penetration testing mode for non-privileged scans.
sudo lynis audit system --report-file /path/to/report.txtSaves the audit results to a specified file for later review.
sudo lynis audit system --profile /path/to/custom.profileUses a custom profile for tailored security checks.
sudo lynis --cronjobAutomates regular audits by running Lynis as a scheduled task.
sudo lynis audit system --checkallRuns all available checks for a thorough audit.
$ sudo apt-get update
$ sudo apt -y install lynis
sudo apt-get install lynissudo yum install lynissudo zypper install lynis
$ cd /usr/local
$ git clone https://github.com/CISOfy/lynis
$ cd lynis
$ mkdir -p /usr/local/lynis
$ cd /usr/local
$ wget https://cisofy.com/files/lynis-<version>.tar.gz
$ tar -xvzf lynis-<version>.tar.gz
$ cd lynis
Lynis is primarily designed for Unix-based systems, including Linux and macOS. It does not natively support Windows. However, you can run it inside Windows Subsystem for Linux (WSL) by installing it on a Linux distribution within WSL.
wsl --installsudo apt update && sudo apt upgrade -ysudo apt install lynislynis --versionbrew install lynis
$ sudo apt-get remove lynis
$ sudo apt autoclean && apt autoremove
$ sudo apt-get remove lynis # Debian-based
$ sudo yum remove lynis # Red Hat-based
$ sudo zypper remove lynis # openSUSE
rm -rf /usr/local/lynissudo apt remove lynissudo apt autoremovewsl --unregister<distro_name><distro_name> with your installed Linux distribution (e.g., Ubuntu).brew uninstall lynisCopyright © 2025 HACKERSPOT
All original content, including tools, software, and other information, is protected by copyright and remains the property of its respective owners.
HackerSpot is an informational platform that offers resources such as tools, software, courses, internships, and various other materials aimed at supporting individuals passionate about CyberSecurity and IT.