PHPackages                             msp/antivirus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. msp/antivirus

ActiveMagento2-module[Security](/categories/security)

msp/antivirus
=============

ClamAV Magento2 integration for active requests scan - Member of MageSpecialist SecuritySuite

1.3.1(8y ago)1320.0k2[1 issues](https://github.com/magespecialist/m2-MSP_AntiVirus/issues)1OSL 3.0PHPPHP ^7.0|^7.1

Since May 31Pushed 8y ago5 watchersCompare

[ Source](https://github.com/magespecialist/m2-MSP_AntiVirus)[ Packagist](https://packagist.org/packages/msp/antivirus)[ RSS](/packages/msp-antivirus/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (1)

MSP AntiVirus
=============

[](#msp-antivirus)

A Malware / Virus protection for for Magento 2.
This module is a **ClamAV** interface for malware / virus detection on **POST/PUT** Magento2 requests.

It adds a strong security layer if you receive **attachment from your customers** or you want to prevent **malicious uploads**.

**Requires ClamAV daemon installed on webserver**.

> Member of **MSP Security Suite**
>
> See: [https://github.com/magespecialist/m2-MSP\_Security\_Suite](https://github.com/magespecialist/m2-MSP_Security_Suite)

Installing on Magento2:
-----------------------

[](#installing-on-magento2)

**1. Install ClamAV (if not present)**

You need ClamAV installed on your server.

On debian/ubuntu-like systems:

`sudo apt-get install clamav-daemon clamav-freshclam`

On CentOS systems:

`sudo yum -y install clamav-server clamav-data clamav-update clamav-server-systemd`

**2. Install MSP AntiVirus using composer**

From command line:

`composer require msp/antivirus`
`php bin/magento setup:upgrade`

**3. Enable and configure from your Magento backend config**

[![](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/config.png)](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/config.png)

Adjust the ClamAV socket accordingly to your system. If you are running on Ubuntu Server the default value should work.

NOTE: Remember to flush your cache.

How to test it
--------------

[](#how-to-test-it)

MSP AntiVirus will check any **PUT/POST** Magento operations against known malwares.
If you wish to check the correct module installation, you can try typing the **EICAR signature** in any Magento **POST** form.

> EICAR is a "fake malware" designed to test anti virus systems:

**Test method:**Type the below eicar test signature in Magento customer login as password:

`X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*`

If you correctly installed and configured MSP AntiVirus, an emergency stop screen will appear.

Threat detected (with stealth mode disabled)
--------------------------------------------

[](#threat-detected-with-stealth-mode-disabled)

[![](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/detected.png)](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/detected.png)

Threat detected (with stealth mode enabled)
-------------------------------------------

[](#threat-detected-with-stealth-mode-enabled)

[![](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/detected_stealth.png)](https://raw.githubusercontent.com/magespecialist/m2-MSP_AntiVirus/master/screenshots/detected_stealth.png)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~27 days

Total

8

Last Release

3168d ago

PHP version history (2 changes)1.0.0PHP ~7.0.0

1.2.1PHP ^7.0|^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3977029?v=4)[MageSpecialist](/maintainers/magespecialist)[@magespecialist](https://github.com/magespecialist)

---

Top Contributors

[![phoenix128](https://avatars.githubusercontent.com/u/10189093?v=4)](https://github.com/phoenix128 "phoenix128 (15 commits)")

### Embed Badge

![Health badge](/badges/msp-antivirus/health.svg)

```
[![Health](https://phpackages.com/badges/msp-antivirus/health.svg)](https://phpackages.com/packages/msp-antivirus)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M140](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k36](/packages/paragonie-ecc)[msp/shield

Advanced Intrusion Prevention System for Magento2 - Member of MageSpecialist SecuritySuite

2037.2k1](/packages/msp-shield)[msp/nospam

Comment Spammers, Harvesters and Suspicious users access prevention for Magento2 - Member of MageSpecialist SecuritySuite

1447.1k1](/packages/msp-nospam)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
