6

Linux , , - .

, , , , . , , .

5 Tools to Scan a Linux Server for Malware and Rootkits

Lynis Security Auditing and Rootkit Scanner

Lynis - , Unix Linux. , , , ; , , , .

, , , .

Lynis ( 2.6.6) , .

# cd /opt/
# wget https://downloads.cisofy.com/lynis/lynis-2.6.6.tar.gz
# tar xvzf lynis-2.6.6.tar.gz
# mv lynis /usr/local/
# ln -s /usr/local/lynis/lynis /usr/local/bin/lynis

:

# lynis audit system
Initializing program
- Detecting OS...		[DONE]
- Checking profiles...	 	[DONE]
Program version:		2.6.6
Operating system:		Linux
Operating system name:	CentOS
Operating system version: 	CentOS Linux release 7.4.1708 (Core)
Kernel version:			4.17.6
Hardware platform:		x86_64
Hostname:			merionet
Profiles:			/usr/local/lynis/default.prf
Log file:				/var/log/lynis.log
Report file:			/var/log/lynis-report.dat
Report version:			1.0
Plugin directory:		/usr/local/lynis/plugins
Auditor:			[Not Specified]
Language:			en
Test category:			all
Test group:			all
- Program update status...	[NO UPDATE]

Lynis , cron, 3 .

0 3 * * * /usr/local/bin/lynis --quick 2>&1 | mail -s "Lynis Reports of My Server" you@yourdomain.com

Chkrootkit A Linux Rootkit Scanners

Chkrootkit - , Unix- . . chkrootkit , , , .

chkrootkit Debian:

$ sudo apt install chkrootkit

CentOS , :

# yum update
# yum install wget gcc-c++ glibc-static
# wget -c ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
# tar xzf chkrootkit.tar.gz
# mkdir /usr/local/chkrootkit
# mv chkrootkit-0.52/* /usr/local/chkrootkit
# cd /usr/local/chkrootkit
# make sense

Chkrootkit, :

$ sudo chkrootkit 

# /usr/local/chkrootkit/chkrootkit

, .

Chkrootkit , cron, 3 , .

0 3 * * * /usr/sbin/chkrootkit 2>&1 | mail -s "chkrootkit Reports of My Server" you@yourdomain.com

Rkhunter A Linux Rootkit Scanners

RKH (RootKit Hunter) - , , , POSIX- , Linux. , , , .

rkhunter Ubuntu CentOS

$ sudo apt install rkhunter
# yum install epel-release
# yum install rkhunter

rkhunter, .

# rkhunter -c

rkhunter , cron, 3 .

0 3 * * * /usr/sbin/rkhunter -c 2>&1 | mail -s "rkhunter Reports of My Server" you@yourdomain.com

ClamAV Antivirus Software Toolkit

ClamAV - , , , . Linux , .

Linux. , , Zip, Tar, 7Zip, Rar .

ClamAV Debian:

$ sudo apt-get install clamav

ClamAV CentOS:

# yum -y update
# yum -y install clamav

.

# freshclam
# clamscan -r -i DIRECTORY

DIRECTORY - . -r , -i - .


LMD Linux Malware Detect

LMD (Linux Malware Detect) - Linux , , Linux. ClamAV .

, .

LMD -, - . , , , :

# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

, . install.sh

# tar -xvf maldetect-current.tar.gz
# ls -l | grep maldetect

# ./install.sh

! 5 Linux .


50% Merion Academy