TOOL TUTORIAL · Security Auditing & Compliance Testing

How to install and use Lynis

Lynis is a powerful open-source security auditing tool for Unix-based systems (Linux, macOS, BSD). It performs in-depth security scans to assess system security posture, detect vulnerabilities, and suggest security improvements. Lynis is widely used by system administrators, sec…

Quick install: sudo apt install lynis

Installation steps

  1. Open a terminal on the Linux machine you want to audit
  2. Run sudo apt install lynis to install it
  3. Run sudo lynis audit system to start a full audit
  4. Read the on-screen suggestions and warnings
  5. Review the saved report at /var/log/lynis-report.dat

See the full Lynis reference →