Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virus scanners page bug for ESETSEFS scanner #1308

Closed
gregecslo opened this issue Sep 10, 2024 · 4 comments
Closed

Virus scanners page bug for ESETSEFS scanner #1308

gregecslo opened this issue Sep 10, 2024 · 4 comments
Assignees

Comments

@gregecslo
Copy link

Hi.
Installed efa V5 and when I go to: "Search and reports" --> Virus report (mailscanner/rep_viruses.php)
ESETSEFS is not displayed correctly, in fact it does not work at all.

Solution:

Add:

case 'esetsefs':
            $scanner[$vscanner]['name'] = 'ESET';
            $scanner[$vscanner]['regexp'] = "/found (?P<virus>\S+) in (?P<file>\S+)/";
            break;

to mailscanner/rep_viruses.php

Result after:
image

Can this be fixed in next mailwatch?

Thanks!

@endelwar
Copy link
Member

Hi @gregecslo,
this is a misalignment between functions.php and rep_viruses.php ths have to be fixed.

Can you confirm that the regex in functions.php is correct? It actually is:

/Esets: found (?P<virus>\S+) in (?P<file>\S+)/

While looking for this issue I've found other antivirus engines that are not aligned between functions.php and rep_viruses.php:

--- functions.txt
+++ rep_viruses.txt
@@ -5,19 +5,13 @@
 clamav
 clamavmodule
 clamd
-esets
-esetsefs
 etrust
 f-prot
-f-prot-6
-f-protd-6
 f-secure
-f-secure-12
 kaspersky-4.5
 mcafee
 mcafee6
 nod32-1.99
-none
 norman
 sophos
 sophossavi

And some other supported by MailScanner but not by MailWatch (some are legacy engines that we should keep):

--- functions.txt
+++ mailscanner_virus_scanners_conf.txt
@@ -1,24 +1,19 @@
-antivir
 avast
+avastd
 avg
 bitdefender
 clamav
 clamavmodule
 clamd
+drweb
 esets
 esetsefs
-etrust
-f-prot
-f-prot-6
-f-protd-6
 f-secure
 f-secure-12
-kaspersky-4.5
-mcafee
-mcafee6
-nod32-1.99
+f-secured
+generic
+kaspersky
+kse
 none
-norman
 sophos
 sophossavi
-trend

@gregecslo
Copy link
Author

gregecslo commented Sep 10, 2024 via email

@endelwar
Copy link
Member

What's the output of esetsefs cli command (it should be /opt/eset/efs/bin/odscan) when scanning a virus file?

@gregecslo
Copy link
Author

This is what I have in mail log:
Sep 9 19:06:09 efa MailScanner[1543823]: Esets::INFECTED::PowerShell/TrojanDownloader.Agent.JFW
Sep 9 19:06:09 efa MailScanner[1543823]: Viruses marked as silent: Esets: found PowerShell/TrojanDownloader.Agent.JFW in rfq_last_quater_product_purchase_order_import_list_09_09_2024_00000024.7z

Sou your regex is also OK.

endelwar added a commit that referenced this issue Sep 10, 2024
- f-prot-6
- f-protd-6
- f-secure-12
- esets
- esetsefs

Partialy fixes issue #1308
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants