---
title: 'antispam:plugin:olevbmacro'
url: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-olevbmacro'
markdown: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-olevbmacro.md'
date: '2026-10-07'
description: 'Use several methods to search attached documents for evidence of an OLE Macro. warden --task=antispam:plugin:olevbmacro Option Value Default Description --olemacro_num_mime <string> 5 The maximum number of matching MIME parts the plugin will scan. --olemacro_num_zip <string> 8 The ma…'
taxonomy:
  category:
    - docs
  tag:
    - olevbmacro
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Command Line Interface ](https://docs.danami.com/warden/command-line-interface)      Antispam       antispam:plugin:olevbmacro    

# antispam:plugin:olevbmacro

Use several methods to search attached documents for evidence of an OLE Macro.

```
warden --task=antispam:plugin:olevbmacro
```

| Option | Value | Default | Description |
|---|---|---|---|
| `--olemacro_num_mime` | <string> | 5 | The maximum number of matching MIME parts the plugin will scan. |
| `--olemacro_num_zip` | <string> | 8 | The maximum number of matching zip members the plugin will scan. |
| `--olemacro_zip_depth` | <string> | 2 | The max depth to recurse within zip files. |
| `--olemacro_extended_scan` | <string> | 0 | Scan more files for potential macros, olemacro\_skip\_exts still honored. This is off by default and should not be needed. If this is turned on consider adjusting values for olemacro\_num\_mime and olemacro\_num\_zip and prepare for more CPU overhead. |
| `--olemacro_prefer_contentdisposition` | <string> | 1 | The content-disposition header filename be preferred if ambiguity is encountered whilst trying to get filename. |
| `--olemacro_max_file` | <string> | 1024000 | The largest file that the plugin will decode from the MIME objects. |
| `--olemacro_exts` | <string> | (?:doc\|docx\|dot\|pot\|ppa\|pps\|ppt\|rtf\|sldm\|xl\|xla\|xls\|xlsx\|xlt\|xslb)$ | The extensions the plugin targets for macro scanning. |
| `--olemacro_macro_exts` | <string> | (?:docm\|dotm\|ppam\|potm\|ppst\|ppsm\|pptm\|sldm\|xlm\|xlam\|xlsb\|xlsm\|xltm\|xps)$ | The extensions the plugin treats as containing a macro. |
| `--olemacro_zips` | <string> | (?:zip)$ | The extensions for the plugin to target as zip files. |
| `--olemacro_skip_exts` | <string> | (?:dotx\|potx\|ppsx\|pptx\|sldx\|xltx)$ | The extensions for the plugin to skip entirely, these should only be guaranteed macro free files. |
| `--olemacro_skip_ctypes` | <string> | ^(?:text\\/) | The Configure types for the plugin to skip entirely, these should only be guaranteed macro free. |
| `--default` | <yes> |  | Reset all settings to their default values. |
| `--default_option` | <option> |  | Reset a specific setting to its default value. |
| `--reload` | <yes> |  | Reload the service after saving settings. |

## Examples

```
// set the olemacro_num_mime
warden --task=antispam:plugin:olevbmacro --olemacro_num_mime=10 --reload=yes

// reset olemacro_num_mime to its default value
warden --task=antispam:plugin:olevbmacro --default_option=olemacro_num_mime --reload=yes

// reset all settings to their default values
warden --task=antispam:plugin:olevbmacro --default=yes --reload=yes

// scan more deeply during a macro malware wave, including nested archives up to depth 3
warden --task=antispam:plugin:olevbmacro --olemacro_extended_scan=1 --olemacro_zip_depth=3 --olemacro_num_zip=16 --reload=yes
```

## Related Pages

- [OLEVBMacro Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/olevbmacro "OLEVBMacro Settings")
- [OLEVBMacro](https://docs.danami.com/warden/user-guide/antispam-plugins/olevbmacro "OLEVBMacro")

 [ ](https://docs.danami.com/warden/user-guide/antispam-plugins/olevbmacro) [](https://docs.danami.com/warden/settings/antispam/plugin-settings/olevbmacro)

---

## Navigation

- Previous: [antispam:plugin:neuralnetwork](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-neuralnetwork.md)
- Next: [antispam:plugin:phishing](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-phishing.md)
