Home > Threat descriptions >

Macro virus


Category: Malware

Type: Virus

Aliases: Macro virus


A macro is a type of mini-program included in some applications. Malicious code can be embedded in a macro in a specially crafted document file, allowing it to be executed whenever the macro is run.


Automatic action

Based on the settings of your F-Secure security product, it will either automatically delete, quarantine or rename the detected program or file, or ask you for a desired action.

Knowledge Base

Find the latest advice in our Community Knowledge Base.

About the product

See the manual for your F-Secure product on the Help Center.

Contact Support

Chat with or call an expert for help.

Submit a sample

Submit a file or URL for further analysis.

Technical Details

Macros are sets of instructions that can be triggered by a single command (or even by clicking a button in a program's user interface). Macros are usually embedded in applications or documents, and are often used to execute commonly-performed or repetitive tasks that the user would otherwise have to do.

Though macros are extremely useful, they can be exploited and misused to deliver, execute and hide malware, which are thus often referred to as "macro viruses".

While many applications use macros to improve their user-friendliness, macro viruses are most commonly associated with Microsoft Office programs (such as Word, Excel or Access) due to the almost ubiquitous reach of the business productivity suite.

Most macros will only work with a specific version of a specific application, though there are a very few macro viruses that are capable of operating in multiple environments.