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. Download centos7 Download address: https://mir...
1. Description In MySQL, when we need to get the ...
Table of contents 1. substring() 2. substr() 3.in...
This article uses an example to describe how MySQ...
Vue data two-way binding principle, but this meth...
20200804Addendum: The article may be incorrect. Y...
Table of contents background analyze method backg...
Now let's summarize several situations of con...
There are many XHTML tags: div, ul, li, dl, dt, d...
In web development, you often encounter characters...
The default ssh remote port in Linux is 22. Somet...
As the company's influence grows and its prod...
Docker is being used in more and more scenarios. ...
What is load balancing? When a domain name points...
Often you will encounter a style of <a> tag ...