Tool
CLI
Vulnerability Management

lynis

by CISOfy

15.1Kstars
1.6Kforks
339watchers
Updated about 1 month ago
About

Lynis is an agentless security auditing and hardening tool for UNIX-based systems that helps identify vulnerabilities and ensure compliance with standards like HIPAA, ISO27001, and PCI DSS.

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.

Primary Use Case

Lynis is primarily used by system administrators, auditors, and security professionals to perform in-depth security scans, detect vulnerabilities, and assist with system hardening and compliance testing. It is ideal for auditing Linux, macOS, BSD, and other UNIX-like systems without requiring installation, making it suitable for both blue team defense and penetration testing scenarios.

Key Features
  • Automated security auditing for UNIX-based systems
  • Compliance testing for standards such as HIPAA, ISO27001, and PCI DSS
  • Vulnerability detection including vulnerable software and misconfigurations
  • Agentless operation with optional installation
  • System hardening recommendations and tips
  • Support for configuration, asset, and software patch management
  • Useful for penetration testing and privilege escalation assessments
  • Open source and regularly updated

Installation

  • Clone the repository: git clone https://github.com/CISOfy/lynis
  • Navigate to the cloned directory: cd lynis
  • Run the audit: ./lynis audit system
  • Alternatively, install via package managers for supported OSes (CentOS, Debian, Fedora, OEL, openSUSE, RHEL, Ubuntu) using RPM or DEB packages from https://packages.cisofy.com/
  • For up-to-date versions, use the CISOfy software repository or download the latest tarball from the website
  • Optionally, change ownership of files to root for running as root: chown -R 0:0

Usage

>_ ./lynis audit system

Performs a full security audit of the local system

Security Frameworks
Discovery
Defense Evasion
Credential Access
Reconnaissance
Collection
Usage Insights
  • Integrate Lynis scans into CI/CD pipelines for continuous compliance and vulnerability assessment.
  • Use Lynis reports to tailor system hardening policies and automate remediation workflows.
  • Combine Lynis with endpoint detection tools to enhance detection of misconfigurations and vulnerabilities.
  • Leverage Lynis in purple team exercises to validate both offensive and defensive controls on UNIX systems.
  • Automate compliance reporting using Lynis outputs to streamline audit preparation and regulatory adherence.

Docs Take 2 Hours. AI Takes 10 Seconds.

Ask anything about lynis. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.

3 free chats per tool • Instant responses • No credit card

Security Profile
Red Team80%
Blue Team60%
Purple Team70%
Details
LicenseGNU General Public License v3.0
LanguageShell
Open Issues925
Topics
shell
linux
pci-dss
compliance
security-audit
security-hardening
security-scanner
security-vulnerability
hipaa
unix