https://github.com/malice-plugins/windows-defender
Malice Windows Defender AntiVirus Plugin
https://github.com/malice-plugins/windows-defender
antivirus docker malice malware plugin windows-defender
Last synced: about 1 month ago
JSON representation
Malice Windows Defender AntiVirus Plugin
- Host: GitHub
- URL: https://github.com/malice-plugins/windows-defender
- Owner: malice-plugins
- License: other
- Created: 2017-05-24T01:39:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T02:57:25.000Z (about 2 years ago)
- Last Synced: 2025-03-29T22:09:54.210Z (about 2 months ago)
- Topics: antivirus, docker, malice, malware, plugin, windows-defender
- Language: Go
- Size: 3.5 MB
- Stars: 38
- Watchers: 3
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# windows-defender
[](https://github.com/malice-plugins/windows-defender/actions/workflows/docker-image.yml)
[](http://doge.mit-license.org)
[](https://store.docker.com/community/images/malice/windows-defender)
[](https://store.docker.com/community/images/malice/windows-defender)
[](https://store.docker.com/community/images/malice/windows-defender)Malice Windows Defender AntiVirus Plugin
> This repository contains a **Dockerfile** of [Windows Defender](https://www.microsoft.com/en-us/windows/windows-defender) for the malice plugin **malice/windows-defender**
---
### Dependencies
- [ubuntu:bionic (_84.1 MB_\)](https://hub.docker.com/_/ubuntu/)
## Installation
1. Install [Docker](https://www.docker.io/).
2. Download [trusted build](https://store.docker.com/community/images/malice/windows-defender) from public [docker store](https://store.docker.com): `docker pull malice/windows-defender`## Usage
### NOTICE :warning:
Something has changed in the latest version of Docker `18.09.0` where we now need to use our own seccomp profile found [here](https://raw.githubusercontent.com/malice-plugins/windows-defender/master/seccomp.json)
```bash
docker run --init --rm malice/windows-defender EICAR
```With seccomp profile
```bash
docker run --init --rm --security-opt seccomp=seccomp.json malice/windows-defender EICAR
```### Or link your own malware folder:
```bash
$ docker run --init --rm -v /path/to/malware:/malware malice/windows-defender FILEUsage: windows-defender [OPTIONS] COMMAND [arg...]
Malice Windows Defender AntiVirus 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 versionCommands:
update Update virus definitions
web Create a Windows Defender scan web service
help Shows a list of commands or help for one commandRun 'windows-defender COMMAND --help' for more information on a command.
```This will output to stdout and POST to malice results API webhook endpoint.
## Sample Output
### [JSON](https://github.com/malice-plugins/windows-defender/blob/master/docs/results.json)
```json
{
"windows-defender": {
"infected": true,
"result": "Virus:DOS/EICAR_Test_File",
"engine": "0.1.0",
"updated": "20171112"
}
}
```### [Markdown](https://github.com/malice-plugins/windows-defender/blob/master/docs/SAMPLE.md)
---
#### Windows Defender
| Infected | Result | Engine | Updated |
| :------- | :------------------------ | :----- | :------- |
| true | Virus:DOS/EICAR_Test_File | 0.1.0 | 20171112 |---
## Documentation
- [To write results to ElasticSearch](https://github.com/malice-plugins/windows-defender/blob/master/docs/elasticsearch.md)
- [To create a Windows Defender scan micro-service](https://github.com/malice-plugins/windows-defender/blob/master/docs/web.md)
- [To post results to a webhook](https://github.com/malice-plugins/windows-defender/blob/master/docs/callback.md)
- [To update the AV definitions](https://github.com/malice-plugins/windows-defender/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/windows-defender/issues/new).
## CHANGELOG
See [`CHANGELOG.md`](https://github.com/malice-plugins/windows-defender/blob/master/CHANGELOG.md)
## Contributing
[See all contributors on GitHub](https://github.com/malice-plugins/windows-defender/graphs/contributors).
Please update the [CHANGELOG.md](https://github.com/malice-plugins/windows-defender/blob/master/CHANGELOG.md) and submit a [Pull Request on GitHub](https://help.github.com/articles/using-pull-requests/).
## Credit
Made possible by the awesome work by [@taviso](https://github.com/taviso/loadlibrary)
## License
MIT Copyright (c) 2022 **blacktop**