LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lynis

security auditing tool for Unix-based systems

TLDR

Check for updates
$ sudo lynis update info
copy
Run full system audit
$ sudo lynis audit system
copy
Run audit quietly (non-interactive)
$ sudo lynis audit system --quick
copy
Audit a Dockerfile
$ lynis audit dockerfile [path/to/Dockerfile]
copy
Run only tests from a specific category
$ sudo lynis audit system --tests-from-category [networking]
copy

SYNOPSIS

lynis [mode] [options]

DESCRIPTION

lynis is a security auditing tool for Unix-based systems. It performs an extensive health scan covering system hardening, vulnerability scanning, and compliance testing.

PARAMETERS

audit system

Perform full system security audit.
audit dockerfile FILE
Audit a Dockerfile for security issues.
update info
Check for lynis updates.
show profiles
List available audit profiles.
show settings
Display current settings.
show categories
List available test categories.
show commands
Show available lynis commands.
-c, --cronjob
Run as cronjob (non-interactive, with auto-rotation of log files)
-Q, --quick
Quick mode, do not wait for user input.
-q, --quiet
Suppress output to screen. Implies --quick.
--no-colors
Disable colored output.
--pentest
Non-privileged scan, show points of interest for penetration testing.
--forensics
Perform forensics on a running or mounted system.
--tests TEST-IDs
Only run specific test(s).
--tests-from-category CATEGORY
Only run tests belonging to the specified category.
--profile FILE
Use alternative audit profile.
--logfile FILE
Define alternative log file location.
--report-file FILE
Define alternative report file location.

INSTALL

sudo dnf install lynis
copy
sudo pacman -S lynis
copy
sudo zypper install lynis
copy
brew install lynis
copy
nix profile install nixpkgs#lynis
copy

CAVEATS

Requires root privileges for complete audit. Reports are stored in /var/log/lynis-report.dat. Some tests may be distribution-specific.

HISTORY

Developed by CISOfy as an open-source security auditing tool, evolved from rkhunter concepts with broader security coverage.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid