Office Macros are basically small bits of code written in Visual Basic (VBA), that allow you to carry out select repetitive tasks. They are useful by themselves, but many a times malware writers misuse this functionality to introduce malware into your computer system.
A Macro virus is a virus that takes advantage of Macros that run in Microsoft Office applications such as the Microsoft Word, PowerPoint or Excel. Cyber criminals send you a macro-infested payload or a file which will later on download a malicious script, via email and use a subject line that interests or provokes you into opening the document. When you open the document, a macro runs to execute whatever the task the criminal wants.
It’s time to secure Microsoft Office.
Please follow the steps below in order to strengthen your environment by disabling Macros for all Office Apps via Group Policy Management Console.
- Create a new GPO on the Domain Controller and name it as: SecureEnvironment
- Open Group Policy Management Console.
- Expand the forest.
- Click on the domain.
- Right click on the Group Policy Objects and then click on New.
- Enter its name, here I am using SecureEnvironment.
- Download all the ADM Template (X86) files for the required version of Office from Microsoft official website.
- Extract the downloaded files to a convenient folder accessible from the Server.
- Go to extracted folder location and then ADMX.
For e.g.: C:\ADMTemplates\ADMX
- Copy the required office apps .admx files and the language folder.
e.g.: For Excel and English you need to copy en-us folder and excel.admx file.
- Go to the following location i.e. <Domain.Local>\Sysvol\<Domain.local>\Policies and create a new folder naming PolicyDefinitions.
- Copy all the .admx files and the language folder to the PolicyDefinitions folder.
- Right click on the Group Policy Object (SecureEnvironment) created in step 1 and hit on Edit.
- Go to User Configuration > Policies > Administrative Templates
- Now you will be able to see all the Administrative Templates which you have been added to PolicyDefinitions folder.
- Go to office app, for an instance Microsoft Excel 2010 on the right pane of the Group Policy Management Editor.
- Open Excel options > Security > Trust Center
- Locate VBA Macro Notification Settings.
- Click on the Policy Settings and then choose Enabled.
- And in the drop down option choose Disable all except digitally signed macros.
- Hit on Apply and then OK.
- Do the same for all the Office Apps.
- Now go to Group Policy Management Console and right click on the Domain name and choose Link an Existing GPO.
- Choose the SecureEnvironment GPO from the list and hit OK.
- Now that you have linked the GPO to the Domain Level so that it gets applied to all PC’s/Users in the domain.
Latest posts by Vikram (see all)
- Disable Macros for all Office Apps via Group Policy Management Console - August 8, 2017
- System Restore Error- Access is denied- (0x8007005) - December 7, 2016
- Soonr: Creating backup of various PC folders using Soonr Agent - May 30, 2016