From 7f1fb1e9b610c0bde402e3c64199a74fbf27be81 Mon Sep 17 00:00:00 2001 From: "this.ven" Date: Fri, 19 Jul 2024 17:27:37 +0200 Subject: [PATCH] Add antivirus programm --- content/docs/computer/pro-audio.md | 1 - content/docs/computer/utilities-misc.md | 62 ++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 2 deletions(-) diff --git a/content/docs/computer/pro-audio.md b/content/docs/computer/pro-audio.md index 141ed49..e7e82c4 100644 --- a/content/docs/computer/pro-audio.md +++ b/content/docs/computer/pro-audio.md @@ -4,5 +4,4 @@ date: 2024-06-25T18:52:42+02:00 weight: 8 prev: /docs/computer/multimedia-web next: /docs/computer/pro-video -draft: true --- diff --git a/content/docs/computer/utilities-misc.md b/content/docs/computer/utilities-misc.md index 08f64c3..0bc91d9 100644 --- a/content/docs/computer/utilities-misc.md +++ b/content/docs/computer/utilities-misc.md @@ -71,6 +71,63 @@ package as follows: sudo pacman -Sy speedcrunch ``` +## Antivirus + +> Imagine the information security compliance guideline says you need an antivirus but you run Arch Linux. +> — libredefender[^6] + +As the primary reason I'd use an antivirus scan is to prevent that I unintentionally spread such malware[^7] when sharing files with users of Windows[^8] systems, for example. For this reason, I install the [libredefender](https://archlinux.org/packages/?name=libredefender) package to run a malware scan on demand: + +```bash +yay libredefender +``` + +To instantly update the malware definitions, I execute: + +```bash +sudo freshclam +``` + +Afterwards I can scan a directory such as `~/Downloads` by running: + +```bash +libredefender scan ~/Downloads +``` + +In order to prevent libredefender to automatically scan my system on a regular base I create `~/.config/libredefender.toml` containing: + +```toml{filename="~/.config/libredefender.toml"} +[scan] +## by default libredefender spawns one thread per cpu core +## set to 1 to use a single thread +concurrency = 1 + +excludes = [ + # may contain virus files for studies + "/home/thisven/Downloads/win-malware-to-play-with/*", +] + +skip_hidden = true +skip_larger_than = "30MiB" + +[schedule] +## manually scan for infections +automatic_scans = "off" +#preferred_hours = "09:00:00-17:00:00" +## Do not run scans when on battery +skip_on_battery = true +``` + +To verfify this new confoguration I can use the command: + +```bash +libredefender dump-config +``` + +{{< callout type="info" >}} + Read the article on [ClamAV](https://wiki.archlinux.org/title/ClamAV) in the ArchWiki to configure scheduled scans. +{{< /callout >}} + Proceed with installing and configuring [Office tools](../office-tools) in just another guide or go back to the overview and follow instructions for specific [use cases](../#use-cases). @@ -82,4 +139,7 @@ Wikipedia [^3]: [NTFS](https://wiki.archlinux.org/title/NTFS-3G) in the ArchWiki [^4]: [Vim#DOS/Windows carriage returns](https://wiki.archlinux.org/title/Vim#DOS.2FWindows_carriage_returns) setion in the ArchWiki [^5]: [Password manager](https://en.wikipedia.org/wiki/Password_manager) in the -Wikipedia \ No newline at end of file +Wikipedia +[^6]: [libredefender](https://github.com/kpcyrd/libredefender) at GitHub +[^7]: [Malware](https://en.wikipedia.org/wiki/Malware) in the Wikipedia +[^8]: [Microsoft's Software is Malware](https://www.gnu.org/proprietary/malware-microsoft.html) \ No newline at end of file