ClamAV and clean infected files automatically.

Support for security such as Firewalls and securing linux
Post Reply
hack3rcon
Posts: 460
Joined: 2014/11/24 11:04:37

ClamAV and clean infected files automatically.

Post by hack3rcon » 2016/03/15 12:20:48

Hello.
I installed ClamAV on CentOS 7 and use "clamscan -r /" and it found 11 infected files but can it clean them automatically or I must remove them manually :(
Attachments
infected.png
infected.png (3.63 KiB) Viewed 8701 times

aks
Posts: 2894
Joined: 2014/09/20 11:22:14

Re: ClamAV and clean infected files automatically.

Post by aks » 2016/03/15 17:02:57

From http://www.clamav.net/documents/miscellaneous-faq

"Can ClamAV disinfect files?
No, it can’t. We will add support for disinfecting OLE2 files in one of the next stable releases. There are no plans for disinfecting other types of files. There are many reasons for it: cleaning viruses from files is virtually pointless these days. It is very seldom that there is anything useful left after cleaning, and even if there is, would you trust it?"

hack3rcon
Posts: 460
Joined: 2014/11/24 11:04:37

Re: ClamAV and clean infected files automatically.

Post by hack3rcon » 2016/03/15 19:09:22

Excuse me, Why the users must use ClamAV if it can't clean viruses?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: ClamAV and clean infected files automatically.

Post by gerald_clark » 2016/03/15 19:46:09

Who said users must use ClamAV?
A program can use ClamAV to identify infected files which can then be deleted.

hack3rcon
Posts: 460
Joined: 2014/11/24 11:04:37

Re: ClamAV and clean infected files automatically.

Post by hack3rcon » 2016/03/15 19:49:54

How can I clean my linux? I need an antivirus that do it for me automatically.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: ClamAV and clean infected files automatically.

Post by gerald_clark » 2016/03/15 20:29:00

Linux doesn't get viruses.
ClamAV can be used to scan incoming Emails to block receipt of mail infected with Windows viruses.

hack3rcon
Posts: 460
Joined: 2014/11/24 11:04:37

Re: ClamAV and clean infected files automatically.

Post by hack3rcon » 2016/03/15 20:42:14

gerald_clark wrote:Linux doesn't get viruses.
ClamAV can be used to scan incoming Emails to block receipt of mail infected with Windows viruses.
As you see, My CentOS have 11 infected files.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: ClamAV and clean infected files automatically.

Post by gerald_clark » 2016/03/15 20:59:00

Delete them.

aks
Posts: 2894
Joined: 2014/09/20 11:22:14

Re: ClamAV and clean infected files automatically.

Post by aks » 2016/03/16 16:46:07

Delete them.
It's a bit more complicated than that. What are the infected files? Do you need them? If not delete them. If they're installed via rpm you can just reinstall the rpm and that'll overwrite the infected files.

hack3rcon
Posts: 460
Joined: 2014/11/24 11:04:37

Re: ClamAV and clean infected files automatically.

Post by hack3rcon » 2016/03/19 13:59:56

gerald_clark wrote:Delete them.
I used "-l" for create a log but for find infected file names in my log what should I do? I used "cat ClamAV.log | grep infected" but not find any result!!!!

Post Reply

Return to “CentOS 7 - Security Support”