Reporting when macro-enabled documents are opened

%3CLINGO-SUB%20id%3D%22lingo-sub-2912559%22%20slang%3D%22en-US%22%3EReporting%20when%20macro-enabled%20documents%20are%20opened%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2912559%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20need%20to%20log%2Freport%20when%20any%20macro-enabled%20document%20in%20our%20environment%20is%20opened%20(whether%20it%20be%20located%20on%20a%20file%20server%2C%20Nutanix%20Files%2C%20eDocs%20or%20OneDrive).%26nbsp%3B%20We%20hoped%20that%20the%26nbsp%3B%3CSPAN%3EMicrosoft%20365%20Apps%20admin%20center%20could%20provide%20this%20information%2C%20but%20it%20looks%20as%20though%20it%20only%20reports%20that%20a%26nbsp%3Bdevice%20has%20recently%20opened%20a%20macro-enabled%20document%2C%20it%20doesn't%20provide%20any%20further%20information%20on%20the%20file%20itself.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20anyone%20know%20whether%20this%20feature%20is%20actually%20available%20in%20the%26nbsp%3BMicrosoft%20365%20Apps%20admin%20center%2C%20or%20if%20not%2C%20any%20suggestions%20on%20a%20tool%20we%20could%20use%20instead%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2919994%22%20slang%3D%22en-US%22%3ERe%3A%20Reporting%20when%20macro-enabled%20documents%20are%20opened%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2919994%22%20slang%3D%22en-US%22%3EHi%20Paul%2C%20this%20functionality%20is%20not%20available%20in%20the%20Apps%20admin%20center%20nor%20on%20the%20roadmap%20for%20the%20near%20future.%20I'm%20not%20aware%20of%20any%20Microsoft%20product%20which%20would%20cover%20the%20requested%20functionality.%20But%20there%20are%203rd%20party%20tools%20for%20the%20management%20of%20VBA-based%20documents%20which%20integrate%20into%20Office%20and%20might%20offer%20this%20capability.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2920090%22%20slang%3D%22en-US%22%3ERe%3A%20Reporting%20when%20macro-enabled%20documents%20are%20opened%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2920090%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F836935%22%20target%3D%22_blank%22%3E%40Paul_Weller%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Paul%2C%20what%20information%20do%20you%20need%3F%3C%2FP%3E%3CP%3ECheers%20Alex%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi there,

 

We need to log/report when any macro-enabled document in our environment is opened (whether it be located on a file server, Nutanix Files, eDocs or OneDrive).  We hoped that the Microsoft 365 Apps admin center could provide this information, but it looks as though it only reports that a device has recently opened a macro-enabled document, it doesn't provide any further information on the file itself.

 

Does anyone know whether this feature is actually available in the Microsoft 365 Apps admin center, or if not, any suggestions on a tool we could use instead?

 

Thanks

5 Replies
Hi Paul, this functionality is not available in the Apps admin center nor on the roadmap for the near future. I'm not aware of any Microsoft product which would cover the requested functionality. But there are 3rd party tools for the management of VBA-based documents which integrate into Office and might offer this capability.

@Paul_Weller 

Hi Paul, what information do you need?

Cheers Alex

Ok, thanks for the response
Hi Alex,

We're looking for a solution that'll alert us when a macro-enabled document is run (detailing the user, hostname, filename and location), although the alert doesn't need to be instantaneous. We use Splunk to collect data every day from the event logs of every Windows machine within the environment, so if an event is logged when a macro is run, we would pick that up.

Cheers,

Paul

@Paul_Weller 

Hi Paul,

the next question is: why do you want to collect the data? Do you want to find out about every macro in your company or do you want to find out about the usage of the macros?

If you would like to find out about all macros, then digital signatures plus a signing portal would be the way to go. This would also increase the security.

My company developed an eco system of different tools to deal with VBA macros. You can analyze and sign them and gather information about every macro.

The other way would be to utilize the IOfficeAntivirus or the AMSI interface to get the information you want. IOfficeAntivirus is quite old and is called by Windows Defender or - with some registry settings  -by most of the Office applications when a File ist opened. There you could check if there is a macro in the file. AMSI is newer and I really do not know if Office also calls this interface when a file ist opened.

Both depend on the old COM technology, so I do not know if this also runs in the Mac world. But if you just have Windows machines, this would be the way I would go.

 

Cheers

Alex