An open API service indexing awesome lists of open source software.

https://github.com/malice-plugins/clamav

Malice ClamAV Plugin
https://github.com/malice-plugins/clamav

antivirus clamav docker malice malware plugin

Last synced: 3 months ago
JSON representation

Malice ClamAV Plugin

Awesome Lists containing this project

README

          

# malice-clamav

[![Circle CI](https://circleci.com/gh/malice-plugins/clamav.png?style=shield)](https://circleci.com/gh/malice-plugins/clamav)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
[![Docker Stars](https://img.shields.io/docker/stars/malice/clamav.svg)](https://hub.docker.com/r/malice/clamav/)
[![Docker Pulls](https://img.shields.io/docker/pulls/malice/clamav.svg)](https://hub.docker.com/r/malice/clamav/)
[![Docker Image](https://img.shields.io/badge/docker%20image-205MB-blue.svg)](https://hub.docker.com/r/malice/clamav/)

Malice ClamAV AntiVirus

> This repository contains a **Dockerfile** of [ClamAV](http://www.clamav.net/lang/en/) for [Docker](https://www.docker.io/)'s [trusted build](https://index.docker.io/u/malice/clamav/) published to the public [DockerHub](https://index.docker.io/).

### Dependencies

- [malice/alpine](https://hub.docker.com/r/malice/alpine/)

## Installation

1. Install [Docker](https://www.docker.io/).
2. Download [trusted build](https://hub.docker.com/r/malice/clamav/) from public [DockerHub](https://hub.docker.com): `docker pull malice/clamav`

### Usage

```
docker run --rm malice/clamav EICAR
```

### Or link your own malware folder:

```bash
$ docker run --rm -v /path/to/malware:/malware:ro malice/clamav FILE

Usage: clamav [OPTIONS] COMMAND [arg...]

Malice ClamAV Plugin

Version: v0.1.0, BuildTime: 20180903

Author:
blacktop -

Options:
--verbose, -V verbose output
--table, -t output as Markdown table
--callback, -c POST results to Malice webhook [$MALICE_ENDPOINT]
--proxy, -x proxy settings for Malice webhook endpoint [$MALICE_PROXY]
--elasticsearch value elasticsearch url for Malice to store results [$MALICE_ELASTICSEARCH_URL]
--timeout value malice plugin timeout (in seconds) (default: 60) [$MALICE_TIMEOUT]
--help, -h show help
--version, -v print the version

Commands:
update Update virus definitions
web Create a ClamAV scan web service
help Shows a list of commands or help for one command

Run 'clamav COMMAND --help' for more information on a command.
```

## Sample Output

### [JSON](https://github.com/malice-plugins/clamav/blob/master/docs/results.json)

```json
{
"clamav": {
"infected": true,
"result": "Eicar-Test-Signature",
"engine": "0.99.2",
"known": "5630857",
"updated": "20170123",
"error": ""
}
}
```

### [Markdown](https://github.com/malice-plugins/clamav/blob/master/docs/SAMPLE.md)

---

#### ClamAV

| Infected | Result | Engine | Updated |
| -------- | -------------------- | ------ | -------- |
| true | Eicar-Test-Signature | 0.99.2 | 20170123 |

---

## Documentation

- [To write results to ElasticSearch](https://github.com/malice-plugins/clamav/blob/master/docs/elasticsearch.md)
- [To create a ClamAV scan micro-service](https://github.com/malice-plugins/clamav/blob/master/docs/web.md)
- [To post results to a webhook](https://github.com/malice-plugins/clamav/blob/master/docs/callback.md)
- [To update the AV definitions](https://github.com/malice-plugins/clamav/blob/master/docs/update.md)

## Issues

Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to [file an issue](https://github.com/malice-plugins/clamav/issues/new).

## CHANGELOG

See [`CHANGELOG.md`](https://github.com/malice-plugins/clamav/blob/master/CHANGELOG.md)

## Contributing

[See all contributors on GitHub](https://github.com/malice-plugins/clamav/graphs/contributors).

Please update the [CHANGELOG.md](https://github.com/malice-plugins/clamav/blob/master/CHANGELOG.md) and submit a [Pull Request on GitHub](https://help.github.com/articles/using-pull-requests/).

## License

MIT Copyright (c) 2016 **blacktop**