{"id":"91174a41-dc8f-401b-be89-7bfc140612a0","title":"Office Macro File Creation","description":"Detects the creation of a new office macro files on the systems","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"low","date":"2022-01-23","modified":"2026-01-09","tags":["attack.initial-access","attack.t1566.001"],"technique_ids":["T1566.001"],"logsource":{"category":"file_event","product":"windows"},"falsepositives":["Very common in environments that rely heavily on macro documents"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1566.001/T1566.001.md","https://learn.microsoft.com/en-us/deployoffice/compat/office-file-format-reference"],"source_path":"rules/windows/file/file_event/file_event_win_office_macro_files_created.yml","source_sha256":"c318ab8e5860dc72e90baae80feeadc55b7ba47a531caa4357257f5e7b99dbe5","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_event/file_event_win_office_macro_files_created.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Office Macro File Creation\nid: 91174a41-dc8f-401b-be89-7bfc140612a0\nrelated:\n    - id: 0e29e3a7-1ad8-40aa-b691-9f82ecd33d66\n      type: similar\nstatus: test\ndescription: Detects the creation of a new office macro files on the systems\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1566.001/T1566.001.md\n    - https://learn.microsoft.com/en-us/deployoffice/compat/office-file-format-reference\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-01-23\nmodified: 2026-01-09\ntags:\n    - attack.initial-access\n    - attack.t1566.001\nlogsource:\n    category: file_event\n    product: windows\ndetection:\n    selection:\n        TargetFilename|endswith:\n            - '.docm'\n            - '.dotm'\n            - '.xlsm'\n            - '.xltm'\n            - '.potm'\n            - '.pptm'\n    filter_main_office:\n        Image|startswith:\n            - 'C:\\Program Files\\Microsoft Office\\'\n            - 'C:\\Program Files (x86)\\Microsoft Office\\'\n        Image|endswith:\n            - '\\WINWORD.EXE'\n            - '\\EXCEL.EXE'\n            - '\\POWERPNT.EXE'\n        TargetFilename|contains: '\\~$' # Temporary files created by Office applications\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Very common in environments that rely heavily on macro documents\nlevel: low\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1566.001","id":"T1566.001","name":"Spearphishing Attachment","page":"techniques/enterprise/T1566.001/"}],"data_path":"data/detection-rules/91174a41-dc8f-401b-be89-7bfc140612a0.json","kind":"sigma"}
