Add antivirus programm
This commit is contained in:
parent
acb25ecb5b
commit
7f1fb1e9b6
2 changed files with 61 additions and 2 deletions
|
@ -4,5 +4,4 @@ date: 2024-06-25T18:52:42+02:00
|
||||||
weight: 8
|
weight: 8
|
||||||
prev: /docs/computer/multimedia-web
|
prev: /docs/computer/multimedia-web
|
||||||
next: /docs/computer/pro-video
|
next: /docs/computer/pro-video
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -71,6 +71,63 @@ package as follows:
|
||||||
sudo pacman -Sy speedcrunch
|
sudo pacman -Sy speedcrunch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Antivirus
|
||||||
|
|
||||||
|
> Imagine the information security compliance guideline says you need an antivirus but you run Arch Linux.
|
||||||
|
> — <cite>libredefender[^6]</cite>
|
||||||
|
|
||||||
|
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
|
Proceed with installing and configuring [Office tools](../office-tools) in just
|
||||||
another guide or go back to the overview and follow instructions for specific
|
another guide or go back to the overview and follow instructions for specific
|
||||||
[use cases](../#use-cases).
|
[use cases](../#use-cases).
|
||||||
|
@ -82,4 +139,7 @@ Wikipedia
|
||||||
[^3]: [NTFS](https://wiki.archlinux.org/title/NTFS-3G) in the ArchWiki
|
[^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
|
[^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
|
[^5]: [Password manager](https://en.wikipedia.org/wiki/Password_manager) in the
|
||||||
Wikipedia
|
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)
|
Loading…
Reference in a new issue