Preface: Lynis is a security audit and hardening tool for Unix systems that can perform deep security scans. Its purpose is to detect potential incidents and provide suggestions for future system hardening. The software scans for general system information, vulnerable packages, and potential misconfigurations. feature:
Target:
Helps to:
1. Install the software package
You can also install it using the following method
2. Scanning system # lynis audit system or lynis --check-all If you always need to enter the Enter key to execute the above command, you can use the -c and -Q options to skip user input: $ sudo ./lynis -c -Q 3. View logs Logs are saved in /var/log/lynis-report.dat Search for "warning" "suggestion" to find suggestions # grep -E "^warning|^suggestion" /var/log/lynis-report.dat 4. Create Lynis scheduled tasks If you want to create a daily scan report for your system, you can set up cron:
30 22 * * * /usr/bin/lynis -c --auditor "automated" --cronjob > /var/log/lynis/report.txt You may also be interested in:
|
<<: How to set npm to load packages from multiple package sources at the same time
>>: Causes and solutions to the garbled character set problem in MySQL database
1. Command Introduction The file command is used ...
introduction With the widespread popularity of In...
Table of contents 1. Built-in objects 2. Math Obj...
Table of contents 1. Database bottleneck 2. Sub-l...
This article uses a jQuery plug-in to create an a...
When learning about inline-block, I found that the...
As a backend programmer, you deal with Linux in m...
This article is part of a special series on the 2...
Using the <img> element with the default sr...
zabbix Zabbix ([`zæbiks]) is an enterprise-level ...
Preface I have been busy developing a cold chain ...
Table of contents What is JSON Why this technolog...
This article shares the specific code for WeChat ...
The Explain command is the first recommended comm...
There are many commands used in the system, so ho...