Atlantiraptor Docs

Windows.Applications.OfficeMacros

Type: Client

Scans directories for Office documents (xls, xlsm, doc, docx, ppt, pptm) and extracts embedded VBA macros via OLE parsing.

Office macros are a prominent initial infection vector. Many users click through the warning dialogs, thus leading to infection.

If you find that any macro calls an external program (e.g. PowerShell) that is very suspicious!

Parameters

Name Type Default Description
officeExtensions string *.{xls,xlsm,doc,docx,ppt,pptm}
officeFileSearchGlob string C:\Users\**\ The directory to search for office documents.

Source

Defined in artifacts/definitions/Windows/Applications/OfficeMacros.yaml.

name: Windows.Applications.OfficeMacros
description: |
  Scans directories for Office documents (xls, xlsm, doc, docx, ppt,
  pptm) and extracts embedded VBA macros via OLE parsing.
  
  Office macros are a prominent initial infection vector. Many users
  click through the warning dialogs, thus leading to infection.

  If you find that any macro calls an external program (e.g.
  PowerShell) that is very suspicious!

parameters:
  - name: officeExtensions
    default: "*.{xls,xlsm,doc,docx,ppt,pptm}"
  - name: officeFileSearchGlob
    default: C:\Users\**\
    description: The directory to search for office documents.

sources:
  - query: |
        SELECT * FROM foreach(
           row={
              SELECT OSPath FROM glob(globs=officeFileSearchGlob + officeExtensions)
           },
           query={
               SELECT * from olevba(file=OSPath)
           })

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.