Ubuntu 20.04 Server - Should I Install Anti-Virus Software?

I’m running Ubuntu 20.04 Server on my droplet along with Nginx. Should I install anti-virus software like ClamAV as in the following link? Is it essential or recommended? I’m also utilizing a fw and Cloudflare DNS proxy with their fw and scanning enabled.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
April 3, 2022
Accepted Answer

Hello there,

It is essential to secure your droplet, however running malware software is not definitely a must, but it is still a good thing to do.

I’ll highly recommend checking our tutorial An Introduction to Securing your Linux VPS

Usually, clamd/clamv is designed for e-mail scanning on mail gateways and if you’re planning to send/receive emails using the droplet you can install it by following our article.

I can recommend using software like Linux Malware Detect which is a malware scanner for Linux.

Hope that this helps!

Site Moderator
Site Moderator badge
April 3, 2022

Hi @mpasquali,

It’s not essential but it’s a good idea. Having said that, what it’s essential is to secure the Droplet itself doing some good practises. As you already have a few suggestions I won’t go over them in detail but give you a list of what I believe it’s best:

  • Always patch your Applications and Websites
  • Perform updates on your Droplet Daily
  • Cut access where ever is possible.

Most vulnerabilities leading to the hacking of a Server are from outdated software. It can be your PHP version, NodeJS version, Nginx version, a vulnerability from your Application, and so on. As such, I’ll recommend always keeping everything up to date. This is the best sort of defense.

Bobby Iliev
Site Moderator
Site Moderator badge
April 3, 2022


I personally would follow other best practices as @alexdo already mentioned. I could also suggest a few more resources:

  • How To Harden OpenSSH on Ubuntu:

  • Add a firewall, for example you could use ufw or a Cloud Firewall:

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel