Thứ Ba, Tháng Hai 7, 2023
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
NATuts
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
No Result
View All Result
NATuts
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z
No Result
View All Result
NATuts
No Result
View All Result
Home Tech

How to perform security checks on Linux with Lynis

22 Tháng Bảy, 2022
in Tech
0
How to perform security checks on Linux with Lynis
585
SHARES
3.2k
VIEWS
Share on FacebookShare on Twitter

Các bài viết liên quan:

How to get travel insurance

Guide on how to get travel insurance with 4 options

24 Tháng Một, 2023
Software Asset Management for Websites: How to Keep Your Sites Running Smoothly

Software Asset Management for Websites: How to Keep Your Sites Running Smoothly

8 Tháng Một, 2023
5 Best Software to Stream Games

5 Best Software to Stream Games

2 Tháng Một, 2023
IBM Bridge To Cloud For Power

IBM Bridge To Cloud For Power- Everything You Should Know

2 Tháng Một, 2023
Top 10 CRM Software For Construction 

Top 10 CRM Software For Construction Enterprises All The Time

31 Tháng Mười Hai, 2022
What Is IBM Software

What Is IBM Software? 4 Business Segments at IBM You Should Know

26 Tháng Mười Hai, 2022

Whether you are an administrator or a Linux user, having a secure server or PC should be a priority. Although Linux is a secure operating system, it is just as vulnerable to attacks or security breaches as other operating systems.

How to perform security checks on Linux with Lynis

In this article, you will learn how to check and scan your Linux for security holes using Lynis. Lynis is an open source tool and is available on most Unix-based operating systems such as Linux, macOS, Solaris, FreeBSD, etc.

How does Lynis work?

Lynis performs security health scans on your PC or server for enhanced security and compliance checks.

Lynis is modular and only checks for components on the computer that it can find; for example, system tools and their respective libraries.

One of the main advantages of Lynis is that it does not require you to install to perform the test. You can simply run it from a config directory if you want, so your system stays in a very clean state.

All Lynis tests are custom, meaning each test is unique depending on your system configuration, installed software, and other factors. The more components your system has, the more extensive the evaluation report will be.

In addition to displaying test information on your screen, Lynis also stores technical information in the lynis.log file. A separate file named lynis-report.dat stores recommended actions and warnings. Both of these log files are located in the /var/log/ directory.

Lynis audit reports give you a wealth of insight and knowledge about the security measures you should take to ensure that your system remains safe from potential security attacks. hidden.

Install Lynis on Linux

There are a number of ways that you can run or install Lynis on Linux, but to keep things simple, we’ll go over two of the most common.

1. Install Lynis through Package Manager

You can easily install Lynis using the default package manager on your system, depending on your Linux distribution.

On Debian-based Linux distributions, such as Ubuntu, simply run:

sudo apt install lynis

On RHEL-based Linux distributions like Fedora and CentOS:

sudo dnf install lynis

On Arch-based Linux distributions:

sudo pacman -S lynis

You can check the installed Lynis version with the following command:

sudo lynis --version

Note: You need elevated privileges using the command sudo or su to run Lynis commands.

2. Run Lynis directly from the source code

To clean your PC, you can run Lynis from a tarball file without installation. Just download the Lynis tarball file and extract it with the tar command. Then go to the extracted folder and run the Lynis test command:

sudo ./lynis audit system

Download: Lynis

Test Linux machines with Lynis

Auditing (Audit) is one of the most common Lynis use cases among system administrators, system testers, and other security professionals.

You can start testing your system by running the following command:

sudo lynis audit system

Lynis first configures your computer system, which means it checks the operating system you are using, the kernel, the hardware and other important parameters to conduct the test.

How to do a security audit using Lynis

How to perform security checks on Linux with Lynis 16

Lynis audits are categorized into sections to make it easier for you to understand the results of the audit.

For example, some important categories include:

  • Boot and Services: In this section, Lynis gives you an overview of the startup process and service manager being used on your system, for example: systemd, OpenRC, etc. Lynis will also tell you how many currently running services and those enabled at startup. Finally, you will be shown which services pose a security threat to your system because they are unsafe or faulty.
  • Users, Groups, and Authentication: Lynis scans your user administrator account, checks password strength and duration, and checks that important files like /etc/passwd and PAM configuration have proper and secure permissions. are not.
  • USB Devices: Check USB device and permissions to protect your system.
  • Ports and Packages: Here Lynis will give you an overview of open and insecure ports that intruders can use to exploit your system over the network. It will also notify you of outdated packages that may pose a security risk.
  • Logging and Files: Lynis checks if the logging daemon is active. In addition, it checks the availability and security of important log files on your system.

In addition to these categories, Lynis also checks your network, file system, shell, memory and processes, and other important parts of your system.

Color code

Going further on classification, Lynis uses three primary color codes to represent the severity of a vulnerability or potential security risk.

Green color indicates that the scanned module or software is considered fine and you do not need to take any action. The rest of the color codes, usually require you to fix a security hole or some other action. For example, to update or upgrade software.

Orange indicates that there is a suggestion that you should consider. For example, a software or service module is disabled, so Lynis cannot perform the test. Or maybe it’s because Lynis can’t find the software module.

The final color code is red. You should pay extra attention to the reported results highlighted in red. This shows that you should urgently fix the highlighted item as it poses a great threat to your system.

Lynis .’s suggested fix

At the end of the report, Lynis gives you suggestions with web links. Open web links in your browser for steps or instructions on how to take the recommended measures.

How to perform security checks on Linux with Lynis 17

Get help with the Lynis . command

You can learn more about Lynis and the options it provides by using the following command:

sudo lynis show

In addition, you can also see the top 5 Linux operating systems for pentester here.

Previous Post

We’re Having Trouble Playing This

Next Post

Orion Boutique Resort – A romantic vacation in a flower hill

Megusta

Megusta

Related Posts

5 Best Software to Stream Games

5 Best Software to Stream Games

2 Tháng Một, 2023
Top 10 CRM Software For Construction 

Top 10 CRM Software For Construction Enterprises All The Time

31 Tháng Mười Hai, 2022
Instruction how to use OBS streaming software

Features, settings and how to use OBS streaming software through 9 simple steps

25 Tháng Mười Hai, 2022
What is Trans woman?  What is Transgender Women?

What is Trans woman? What is Transgender Women?

23 Tháng Mười Hai, 2022
Christmas gift: Genuine Windows 10 Pro for only $6.63 and Office 2021 for $14.22

Christmas gift: Genuine Windows 10 Pro for only $6.63 and Office 2021 for $14.22

22 Tháng Mười Hai, 2022
How to get 50 free coins of SkyJoy App to redeem

How to get 50 free coins of SkyJoy App to redeem

21 Tháng Mười Hai, 2022
Load More
Next Post
Orion Boutique Resort – A romantic vacation in a flower hill

Orion Boutique Resort - A romantic vacation in a flower hill

Trả lời Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Bài viết mới

How to get travel insurance
Đời sống

Guide on how to get travel insurance with 4 options

24 Tháng Một, 2023
Software Asset Management for Websites: How to Keep Your Sites Running Smoothly
Phần mềm

Software Asset Management for Websites: How to Keep Your Sites Running Smoothly

8 Tháng Một, 2023
5 Best Software to Stream Games
Software

5 Best Software to Stream Games

2 Tháng Một, 2023
IBM Bridge To Cloud For Power
Software

IBM Bridge To Cloud For Power- Everything You Should Know

2 Tháng Một, 2023
Top 10 CRM Software For Construction 
Tech

Top 10 CRM Software For Construction Enterprises All The Time

31 Tháng Mười Hai, 2022
What Is IBM Software
Software

What Is IBM Software? 4 Business Segments at IBM You Should Know

26 Tháng Mười Hai, 2022
W3Schools

Ads

Contact: [email protected]

DMCA.com Protection Status

Categories

  • Android
  • Cạm bẫy tâm lí
  • Chưa được phân loại
  • Đồ họa
  • Đời sống
  • Gen Z
  • Health
  • iOS
  • Kĩ năng mềm
  • News
  • Nhà mạng
  • Phần mềm
  • Phần mềm đồ họa
  • Review sách
  • Software
  • Tech
  • Thiết kế ảnh
  • Thiết kế video
  • Thủ thuật
  • Travel
  • Văn hóa Nam Bộ
  • Văn học
  • Window

Browse by Tag

ai là triệu phú android Apple browser Bullet Journal bản thân chai pin Chỉnh ảnh data domain download fshare game game show giả lập màu hosting IKEA ios khuyến mãi kinh doanh kiến thức kiểm tra pin messenger miễn phí mua sắm Máy ảnh mạng network nghệ thuật ngôn ngữ nhà Trần pin laptop quảng cáo tiếng anh trạng thái Trần Thủ Độ tên miền tắt hoạt động từ vựng video viettel window 10 word zalo Đơn giản

Recent News

How to get travel insurance

Guide on how to get travel insurance with 4 options

24 Tháng Một, 2023
Software Asset Management for Websites: How to Keep Your Sites Running Smoothly

Software Asset Management for Websites: How to Keep Your Sites Running Smoothly

8 Tháng Một, 2023

Trang tin nóng hổi - vừa thổi vừa xem

No Result
View All Result
  • Home
  • Health
  • News
  • Software
  • Tech
  • Travel
  • Gen Z

Trang tin nóng hổi - vừa thổi vừa xem