Compatible Antivirus Command Line Scanners

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

  1. The scanner should allow scanning of a single file

  2. The file to be scanned should be the last parameter 

  3. 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

Product

Name of Command Line Scanner

Compatible

Remarks

Avast! Internet Security

ashcmd.exe

  • The command line takes a long time to start up, thus not recommended

  • The free version does not come with the command line scanner

AVG Scan

avgscanx.exe

  • avgscanx requires the path of the scan as an argument parameter. The attachment checker assumes the file to be scanned is the last name after the last space character

    avgscanx /scan=filename.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

  • Those using Attachment Checker for Jira 2.7.0 and above, add /ALL to the Additional Options to allow scanning of any file extensions.

Sophos Antivirus

savscan

Symantec Endpoint Protection

DoScan.exe

  • The exit code will always return 0 even if virus is detected.

Trellix E

amcfg.exe

  • The exit code will always return 0 even if virus is detected

Trend Micro OfficeScan

wofielauncher.exe

  • The exit code will always return 0 even if virus is detected

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

  1. Download eicar.txt from https://www.eicar.org/download-anti-malware-testfile/

  2. Execute the command line scanner to scan the file. 

    C:\Program Files (x86)\MpCmdRun.exe -Scan -ScanType -File eicar.txt
  3. Check the errorLevel returned by the previous command  

    For Microsoft Windows

    echo "returning errorLevel = " %ERRORLEVEL%

    For Linux

    echo "returning errorLevel = " $?
  4. If the error level is not 0, then it is compatible