Malice Windows Defender AntiVirus Plugin
This repository contains a Dockerfile of Windows Defender for the malice plugin malice/windows-defender
- Install Docker.
- Download trusted build from public docker store:
docker pull malice/windows-defender
Something has changed in the latest version of Docker 18.09.0
where we now need to use our own seccomp profile found here
docker run --init --rm malice/windows-defender EICAR
With seccomp profile
docker run --init --rm --security-opt seccomp=seccomp.json malice/windows-defender EICAR
$ docker run --init --rm -v /path/to/malware:/malware malice/windows-defender FILE
Usage: windows-defender [OPTIONS] COMMAND [arg...]
Malice Windows Defender AntiVirus Plugin
Version: v0.1.0, BuildTime: 20180903
Author:
blacktop - <https://github.com/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 Windows Defender scan web service
help Shows a list of commands or help for one command
Run 'windows-defender COMMAND --help' for more information on a command.
This will output to stdout and POST to malice results API webhook endpoint.
{
"windows-defender": {
"infected": true,
"result": "Virus:DOS/EICAR_Test_File",
"engine": "0.1.0",
"updated": "20171112"
}
}
Infected | Result | Engine | Updated |
---|---|---|---|
true | Virus:DOS/EICAR_Test_File | 0.1.0 | 20171112 |
- To write results to ElasticSearch
- To create a Windows Defender scan micro-service
- To post results to a webhook
- To update the AV definitions
Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to file an issue.
See CHANGELOG.md
See all contributors on GitHub.
Please update the CHANGELOG.md and submit a Pull Request on GitHub.
Made possible by the awesome work by @taviso
MIT Copyright (c) 2022 blacktop