Lynis is an auditing-tool for Unix specialists. It scans the system as well as installed software and detects vulnerabilities. Additionally, the scan system provides general information and may point to possible configuration errors.
/var/log for the use of a log/debug report/tmp for temporary fileslynis can be installed with the Pakfire web interface or via the console:
pakfire install lynis
To start Lynis, change to the Console, change the directory to /var/ipfire/lynis. Execute the following commands:
cd /var/ipfire/lynis
./lynis
Used without parameters Lynis displays you a list of valid parameters.
With the option audit system Lynis will start a complete scan:
./lynis audit system
Not every alarm of Lynis is extremely critical and needs immediate action; it may also shows notes and hints, which you may use to increase the system security.
Likewise, Lynis is highly customizable, including:
This can be done by copying the file /var/ipfire/lynis/default.prf to custom.prf then modifying the content of this new file.
Do you see this error when you run lynis?
egrep: warning: egrep is obsolescent; using grep -E
This is a known issue with lynis. See:
https://github.com/CISOfy/lynis/issues/1338
Temporarily remove egrep is obsolescent messages:
./lynis audit system 2> >(grep -v 'egrep: warning: egrep is obsolescent; using grep -E')