https://github.com/stefanpejcic/clamav-uploads-scanner
Automatically scan newly uploaded or modified files with ClamAV, quarantining any detected threats in a user-specific directory—ideal for shared hosting environments.
https://github.com/stefanpejcic/clamav-uploads-scanner
clamav docker inotify malicious malware openpanel scan scanner virus
Last synced: 14 days ago
JSON representation
Automatically scan newly uploaded or modified files with ClamAV, quarantining any detected threats in a user-specific directory—ideal for shared hosting environments.
- Host: GitHub
- URL: https://github.com/stefanpejcic/clamav-uploads-scanner
- Owner: stefanpejcic
- Created: 2024-10-29T20:01:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T20:59:08.000Z (over 1 year ago)
- Last Synced: 2024-10-29T22:41:27.170Z (over 1 year ago)
- Topics: clamav, docker, inotify, malicious, malware, openpanel, scan, scanner, virus
- Language: Shell
- Homepage: https://openpanel.com
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ClamAV Upload Scanner 🔍📁
Automatically scan newly uploaded or modified files with [ClamAV](https://github.com/Cisco-Talos/clamav), quarantining any detected threats in a user-specific directory—ideal for shared hosting environments.
You can configure which file extensions to scan and specify folders to monitor for changes.
-----
## Install
This script was initially developed for use with [OpenPanel](https://github.com/stefanpejcic/openpanel), but it can be used with any control panel as long as you provide a list of paths to monitor (Docker and inotify will be installed).
1. clone this repo:
```bash
git clone https://github.com/stefanpejcic/clamav-uploads-scanner /usr/local/clamav-uploads-scanner/
```
2. install the service by running:
```bash
bash /usr/local/clamav-uploads-scanner/install.sh
```
The installation script will check if OpenPanel is in use. If it is, no additional configuration is necessary, as the document root for the domains will be automatically collected. However, if OpenPanel is not being used, you will need to specify the paths to monitor in the `domains.list` file and set the extensions to scan in the `extensions.txt` file.
## Update
```bash
cd /usr/local/clamav-uploads-scanner/ && git pull
```
## Uninstall
```bash
bash /usr/local/clamav-uploads-scanner/uninstall.sh
```