Compatible Antivirus Command Line Scanners
Introduction
This page stores the antivirus scanners that people have used together with the Attachment Checker.
This is not a comprehensive list of antivirus products. If you have managed to use another product, do let us know so that we can update this list
The requirements for the Command Line Scanner for the Attachment Checker are
- The scanner should allow scanning of a single file
- The file to be scanned should be the last parameter
- The scanner should return the exit code value 0 if there is no threat found. Other values if there is a possible infection
List of Command Line Scanners
Product | Name of Command Line Scanner | Compatible | Remarks |
---|---|---|---|
Avast! Internet Security | ashcmd.exe |
| |
AVG Scan | avgscanx.exe |
| |
ClamAV | clamscan |
| |
Eset | ecls.exe |
| |
F-Prot | fpscan.exe |
| |
Kaspersky Endpoint Security for Linux | kesl-control | ||
McAfee VirusScan (Linux) | uvscan | ||
McAfee VirusScan (Windows) | scan.exe |
| |
Sophos Antivirus | savscan |
| |
Symantec Endpoint Protection | DoScan.exe |
| |
Trellix E | amcfg.exe |
| |
Trend Micro OfficeScan | wofielauncher.exe |
| |
Windows Defender | MpCmdRun.exe |
|
For additional information, please refer to Additional steps for anti-virus scanning
How to check if your antivirus scanner is compatible
Download eicar.txt from https://www.eicar.org/download-anti-malware-testfile/
From: https://en.wikipedia.org/wiki/EICAR_test_file
The EICAR Anti-Virus Test File or EICAR test file is a computer file that was developed by the European Institute for Computer Antivirus Research (EICAR) and Computer Antivirus Research Organization (CARO), to test the response of computer antivirus (AV) programs. Instead of using real malware, which could cause real damage, this test file allows people to test anti-virus software without having to use a real computer virus.
Execute the command line scanner to scan the file.
C:\Program Files (x86)\MpCmdRun.exe -Scan -ScanType -File eicar.txt
This command is for Windows Defender. Please update the command and options for the virus scanner you are using
Check the errorLevel returned by the previous command
For Microsoft Windowsecho "returning errorLevel = " %ERRORLEVEL%
For Linuxecho "returning errorLevel = " $?
If the error level is not 0, then it is compatible