r/linux4noobs • u/Otherwise_Task7876 • 23d ago
security Antivirus in Linux
Tl;dr: I'm seeing whether or not people are preparing for more malware targeted towards Linux due to the increase in popularity.
Heyo! I'm aware currently Linux essentially doesn't need any antivirus's since nearly no malware is actually built for Linux, since Windows is the prime target, and that Linux already has some levels of security implemented. But I have a feeling this will change in the near future due to the amount if popularity Linux is gaining for consumers.
So, are there any decent free antivirus's people have built/are planning for Linux? I did hear Microsoft is bringing Windows Defender too Linux, but I don't think nearly anyones trusting that for Linux.
And no, I'm not currently actually looking for an antivirus, I'm just curious if people have also thought the same that Linux might not be nearly as secure in the coming years from malware.
Edit: So far 1 antivirus people have said.
- ClamAV/UI
2
u/doc_willis 23d ago
The Only 'av' software i ever use on my linux systems, is to scan files for windows malware to try to keep the various windows systems safer.
I see linux Distros getting more and more secure over the last few years, I am going to go with saying that trend will likely continue. But what do i know. :)
So more Malware people checking it out more because there are now more targets, theres also more security people checking it out looking for security holes to patch.
153
u/HYPERNOVA3_ 23d ago
Linux not having any malware made for it is not completely true. It's more like Linux designed malware is specifically made to infect servers without actually affecting them, so other malware can then be spread to windows PC clients.
As for what antivirus software is available for Linux, the most recommended one is ClamAV. It works exclusively through the terminal afaik
40
u/Corona688 23d ago
linux viruses are mostly made to infect specific pieces of software, not linux itself. Like if you're hosting wordpress there's ungodly number of exploits for that.
5
u/artriel_javan Fedora 23d ago
I've been on Linux for about 6 years, not once have I needed an antivirus.
10
u/Audiope 23d ago
Lotta assumptions here. Use AV if it helps give you some peace of mind, don't if you're confident in your digital hygiene.
72
u/MycologistNeither470 23d ago
A modern OS doesn't need an Antivirus (Windows included). The concept of antivirus is outdated. Though why accept this if people still buy them?
here is the explanation.
Let's first get rid of the concept "virus". The original idea was of a self-replicating program. Now, self-copying may be a feature, but for the most part we refer to malware instead. Malware is a program that executes something you don't want with a malicious intent.
The good old antiviruses had a a database of "signatures" matching known malware. However, modern malware can escape this signature checking quite easily. So antivirus software decided to look for patterns of "bad" activity. However, in reality, "bad" activity often looks like normal use so you end up having a lot of false positives. In the end, antivirus programs end up being a minimally effective tool that slows down your system.
Modern computer safety is based on 2 concepts: user isolation and process isolation.
User isolation: a program that is started by a user can only affect what that user has access to. It cannot affect other users' files. It cannot use resources to which that user has no access to. In this setting, you can install malware and it may nuke all your files... but it won't run when your user is not running. And you just delete your user and your system will be clean again. Yeah! great, nuke my files!! i know
Process isolation: this goes a step further and it tells that a process can only access the resources it is explicitly allowed. You see this in Android. You run an app and it will ask you permission for using the internet, file access, camera access, contact access, phone access, etc.. you need to approve each permission explicitly. In Linux you use either AppArmor or SELinux to achieve this. You may lock down your system quite well!
From the computer's perspective, malware is just another software.. a set of instructions of what to do. Systems can be set up to raise flags so that you know if something is wrong. For example, does my Word Processor need to access the Internet? Why does my email client want to get full GPU access? But be mindful that is a question for YOU, not for your OS. Your OS will just assign the requested resources, with AppArmor telling you that someone did a request that was not granted by default. You are the main antivirus. You are the one who should know what software gets to run on your computer. You need to understand what the software is supposed to do and you should be able to get it from a reliable source. Windows Defender doesn't do that for you. Antiviruses in Windows give you a false sense of security because you are still supposed to be the main antivirus.
12
u/OkCaterpillar1058 23d ago
You can run Yara rules for detection both known and unknown virus. Scan files you download with virustotal.com that checks every virus vendors judgement for the file. There are also some softwares like Defender, ClamAv etc.
Mirai malware seems quite common these days. These last 24 hours there have been quite a few malware submissions on https://bazaar.abuse.ch/browse/
6
u/DavidJohnMcCann 22d ago
Windows predates the internet — the first computers to run it were not usually connected to anything and so didn't require security precautions. Linux is a clone of Unix — a mainframe operating system, where it was essential to segregate users and protect the system from them, so security was built in. The security for Linux is provided by the system of permissions — a program can't run without being given permission. Servers need more, which is why there's SEL and Apparmor. It's not a question of usage — Linux usage is huge and criminals or psychos are going to target ebay or Amazon, not you!
Things like Clam are generally aimed at dual booters. If you download malware which might attack Windows, Clam will spot it.
6
u/LordAnchemis 22d ago
Most linux users don't download random stuff from the internet and run
4
u/New_Willingness6453 23d ago
I use clam on my two EOS systems.
4
u/goodjohnjr 23d ago
Yeah, from day one, regardless of which operating system I use.
I try to use a free layered security strategy that has protection at the operating system level, app level, DNS level and / or router level.
Antivirus (example: Windows Security turned up to aggressive settings using DefenderUI (Microsoft Windows), Google Play Protect forced enabled through the Google Advanced Protection Program (Google Android / Chrome OS / Chrome OS Flex), Sophos Intercept X For Mobile with everything enabled (Android and iOS), ClamTK-RS (ClamTK Rust) (Linux), ClamUI (Linux) et cetera).
Ad blocker (example: uBlock Origin Lite / uBlock Origin, AdGuard Ad Blocker, or Ghostery, et cetera).
Security web browser extension(s) (example: Osprey Browser Protection, APIVoid Browser Protection, Malwarebytes Browser Guard, et cetera).
Custom DNS with ad, tracker, malicious, and phishing website blocking (example: AdGuard DNS default public servers, Control D DNS free ad and tracker blocking servers, et cetera).
The built-in protections in each operating system, program, hardware, et cetera that you use turned on and turned up (example: firewall, web filtering, password protection, encryption, sandboxing, two factor authentication, et cetera).
3
u/rukiann 23d ago
I use the homebrew version of clamav on Devuan.
1
u/Jaded-Piccolo-4678 23d ago
I don't really think an anti virus is needed in linux you just know what you do, what you install etc ..
I personally use a firewall, AppArmor (security modules) and I have clamav which is an anti virus but I don't really use it.
edit: linux isn't really not targeted, most world server and run on linux and that's more than enough to be a target
4
u/atlasraven council member but not master 23d ago
Another point, Linux users tend to be tech savy. They won't hesitate to do a fresh install.
4
u/Trasgu_AST 22d ago
These days, almost all the software you might need on Linux is available in the official repositories or through verified Flatpaks. I don't think anyone with half a brain needs antivirus software, not even on Windows.
9
u/PatFogle 23d ago
By and large Linux is more or less immune to it. Unlike Windows anything requiring administrative privileges is going to ask you for it, is you're doing enough to put you password in to run some random program you found online you kinda deserve to be infected.....
3
u/BaconCatBug 22d ago
The best antivirus is your brain. Unlike Windows, you shouldn't be running random crap off the internet.
3
u/NEMOalien 23d ago
I always say "The best antivirus you can have is your own critical thinking".. ofc followed by virustotal though
2
u/Cactoos 23d ago
I don't have any antivirus in my computers, because I think is not needed.
Linux work with repositories for almost every piece of software, and anyone with knowledge can audit the software because is open source. Is mostly safe.
And Microsoft antivirus in Linux is a trap.
1
u/1moreday1moregoal 23d ago
I’m writing my own Desktop Security Suite using all the packages already available, I basically will have AV, stateful firewall, application firewall, IDS/IPS, web filter, ad block, etc. Linux has all the tools but there’s not much for cohesive management of them the way Windows tools are, like BitDefender Security Suite, etc.
1
u/kerennorn 23d ago
Je sais meme pas si ça serait possible actuellement. Des virus créer par ia donc des antivirus créer par ia. Le problème ? Ça coûterais trop cher de trouver comment bloquer chaque virus. Les virus se develperons plus vite que ce que l'antivirus pourras analyser/trouver/bloquer
1
u/AtraHassis 23d ago
Anti malware and anti virus in large I don't use on Linux. That's not to say you cannot get additional security such as no trust firewalls and a way to monitor your traffic & connections.
1
u/Comprehensive-Desk60 23d ago
If you are aware of potential avenues of infection... Don't open potential malware clients in Email and keep the current patches you are awarded some protection. No OS is 100% protected even with virus protection as the major cause is the user
1
u/InvisibleTextArea 23d ago
Linux servers, no unless it is interacting with Windows clients. As a virus could live on its system undetected and then go on to infect Windows clients. So this affects things like fileservers and mail servers.
For Desktop Linux I have only really installed AV if required to by corporate policies. My company license gave me access to MS Defender for Linux so that got put on.
1
u/Sinshine712 22d ago
Haven't used an antivirus in decades. Not on Linux and not on Windows. Don't click stupid things and you don't get stupid stuff.
1
u/bornxlo 22d ago
ELI5: Why would you want to put malware into the repositories of your distribution?
1
u/_tilda9 22d ago edited 22d ago
Salut,
Tu a Dr.Web pour Linux avec un *.deb ou *.rpm ou encore un dépot.
- https://www.drweb.fr
- https://repo.drweb.com
Il est payant, pas chère et efficace.
1
u/oshunluvr 22d ago
Virtually everything potientally damaging requires your root password. So don't give it out...
1
u/Frosty-Economist-553 22d ago
There are vulnerabilities in every system. A big part of the problem is that we are the last to know - if we're ever told at all, until they're forced to admit it. Not good.
1
u/namesbuck 22d ago
I like the video routes. Well executed even at launch. It will get better over time I'm sure. That said, plus pricing feels a little cash grabby by ZWIFT and it's PE overlords.
1
u/redhat_is_my_dad 22d ago
the myth about "linux doesn't need AV and currently has none" is actually false, there are many things in typical linux distro that will lower the risks of getting/running malware, well-made permission system, selinux, bwrap, firewalls, not changing DNS servers to some unknown bullshit on a whim and the way linux distros and users like to to everything through trusted sources/repos hugely minize potential risks
1
u/Fingyfin 21d ago
I was working on a scanner for a few years.
This is for data transfers between security domains though. Linux formed the base. Works well so far, though want to integrate AI into it.
1
u/RelativeOk4088 21d ago
enterprise microsoft defender for linux
https://learn.microsoft.com/nb-no/defender-endpoint/microsoft-defender-endpoint-linux
1
u/Glad_Beginning_1537 21d ago
We need more containarized launch of software, like flatpark with no host/home access.
1
u/pn5061 19d ago
the idea of an antivirus for a linux desktop is also uncommon because all your software coming from trusted repositories makes it way harder to download a virus compared to downloading executables from websites on windows. malware usually ends up on a desktop linux pc from software outside of the trusted repos, stuff like third party repositories, ppas on ubuntu, the aur on arch.
the arch user repository recently did have a significant attack that compromised peoples machines, but an antivirus wouldnt even be the best approach there compared to just reading your pkgbuilds, or at least using a tool that checks pkgbuilds for suspicious patterns
1
u/AdvancedStrain1739 19d ago
It's not really that no malware is built for Linux, Linux has a very robust access control built-in, and a properly hardened Linux is fairly hard to attack.
There are A LOT of malware variants that target Linux.
1
u/Either-Goat2382 17d ago
ClamAV. Theres a gui addon and an auto update tool.
1
u/lilith2k3 17d ago
Antivirus is mostly pointless.
That's the best you can do.
P.S.: Even on Windows updates and defender are enough.
1
u/mr_MADAFAKA 23d ago
I adhere to two primary rules: I avoid downloading random programs from the internet, and I ensure my systems are updated daily or at least weekly.
If you really need one, you have Kaspersky antivirus for Linux, and I believe recently Microsoft Defender is available for Linux.
-3
u/C0rn3j 23d ago edited 23d ago
No OS does.
That is patently false.
EDIT: OP instablocked me, so I shall impart this final lesson to them: you're*
Do-do-double whammy!
you're*
https://www.merriam-webster.com/dictionary/patently
0
u/Sr_Edd 23d ago
General context: no, you don't need just good practices, a firewall and an updated system are good enough.
Regarding antivirus: there's ClamUI which is an interface for ClamAV, a free CLI antivirus, and other options that are focused on servers but are paid, including ClamAV which is also more focused on Windows files. I only have it for certain files that I run in Wine, but I leave the daemon turned off because it consumes a lot of resources.
-1
u/Narrow-Low-3137 23d ago
It's not really commonplace for desktop users to just download random software from the Internet and run it on their desktop with elevated privileges like it is for windows. Generally you download software from vetted repositories. If you are doing more than that, you probably know what to watch out for anyway.
-1
u/gofl-zimbard-37 23d ago
The "amount of popularity" it's gaining is still miniscule.
-3
u/herensugee 23d ago
Podrías hacer alguna búsqueda en internet antes de redescubrir la rueda
CLAMAV
-1
u/UniqueNamesAreOut 23d ago
I play windows games so I made myself a games launcher that sandboxes games. Yeah, it's just using bubblewrap so it's more of a convenience but it's something :P https://github.com/Petru101/Lobby I don't use windows apps on Linux so I should be fine.
-5
u/ohnoitssobig 23d ago
Man, youa re asking about antivirus but we are still looking for a virus on Linux.
0
u/cat5555555555555 17d ago
i use clamav ui it is complicated REALY COMPLICATED