malware scan

Post Reply
User avatar
T4B
Posts: 109
Joined: Sat Jul 11, 2020 9:44 am
malware scan

Post by T4B »

how can run a malware scan on myvestacp :?:

User avatar
myVesta
Site Admin
Posts: 608
Joined: Fri Jun 19, 2020 9:59 am
Re: malware scan

Post by myVesta »

with clamav:

Code: Select all

apt update
apt install clamdscan clamav
freshclam

# scan whole server
nice -n 19 ionice -c 3 clamscan -r -i /home/

# scan specific domain
nice -n 19 ionice -c 3 clamscan -r -i /home/user/web/domain.com/public_html/
with maldet + clamav:

Code: Select all

apt update
apt install clamdscan
wget https://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xvf maldetect-current.tar.gz
cd maldetect-1.6.4/
./install.sh
systemctl stop maldet
systemctl disable maldet

# scan whole server
cd ~
maldet -a
maldet --report 200113-1058.3612

# scan specific domain
nice -n 19 ionice -c 3 maldet -a /home/user/web/domain.com/public_html/
maldet --report 200113-1058.3612

AGENT
Posts: 14
Joined: Sun Sep 05, 2021 5:19 pm
Re: malware scan

Post by AGENT »

Can you please give me the commands to remove maldet + clamav after performing a scan?
Becasue it's uses load of ram.

User avatar
myVesta
Site Admin
Posts: 608
Joined: Fri Jun 19, 2020 9:59 am
Re: malware scan

Post by myVesta »



Post Reply