Vulnerability Analysis
Lynis is a battle-tested security auditing tool for systems running Linux, macOS, or Unix-based operating systems. It performs an in-depth local scan to discover security weaknesses, configuration flaws, and system hardening opportunities.
sudo apt install lynis
lynis audit system
Lynis is a battle-tested security auditing tool for Linux, macOS, and Unix systems. It performs an in-depth local scan to discover security weaknesses, configuration flaws, and hardening opportunities.
The tool is non-intrusive and read-only, providing a hardening score and detailed recommendations without modifying the system. It supports compliance checking for CIS benchmarks and other standards.
Lynis is essential for system administrators and security professionals for verifying system hardening, preparing for compliance audits, and maintaining security baselines.
lynis audit systemLocal system audit - Scan the host operating system configuration for security improvementslynis audit system --quickUnattended scan - Run the automated audit quickly without waiting for user confirmationssudo lynis audit systemFull system auditlynis show detailsShow test detailssudo lynis audit system --quickQuick scansudo lynis audit system --pentestPentest modelynis audit systemFull system auditlynis audit system --quickQuick scan modelynis audit system --tests-from-group 'firewalls'Test specific grouplynis audit system --profile /etc/lynis/custom.prfCustom profilelynis show detailsShow detailed scan resultslynis show groupsList available test groupslynis show testsList all available testslynis update infoCheck for updateslynis update --releaseUpdate to latest releaseIdentify and fix security misconfigurations.
Verify compliance with CIS benchmarks.
Establish and maintain security baselines.
Harden systems before penetration testing.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.