Lynis
Lynis is a security auditing tool for Unix-based systems that scans configurations to identify system information and security issues. It assists professional auditors and supports automated audits alongside other security tools.
Description
Lynis is an auditing tool designed for hardening GNU/Linux and Unix-based systems. It performs comprehensive scans of system configurations, generating overviews of system details and potential security issues suitable for professional audits. The tool is particularly useful for identifying weaknesses and compliance gaps in system setups.
Use cases include local security scans, remote system audits, and analysis of Dockerfiles. It complements other software such as security scanners, benchmarking tools, and fine-tuning utilities. Lynis supports various audit modes like forensics and pentesting, making it versatile for different security assessment needs.
The tool is available as a package in Kali Linux, with enterprise features for plugins and data upload. It provides detailed logging and output options for integration into cron jobs or automated workflows.
How It Works
Lynis initializes by detecting the OS, checking profiles, and gathering system details like kernel version, hostname, and hardware platform. It performs tests across categories, reporting compliance levels, suggestions, and warnings. Output can be customized for quiet mode, cron jobs, or verbose details, with support for remote scans via specified hosts and forensics on mounted systems.
Installation
sudo apt install lynisFlags
Examples
lynis -Q --cronjoblynis -hlynis audit systemlynis audit system remote <host>lynis audit dockerfile <file>lynis show versionlynis update info