{"id":"f99abdf0-6283-4e71-bd2b-b5c048a94743","title":"Potentially Suspicious Office Document Executed From Trusted Location","description":"Detects the execution of an Office application that points to a document that is located in a trusted location. Attackers often used this to avoid macro security and execute their malicious code.","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2023-06-21","modified":"2023-10-18","tags":["attack.stealth","attack.t1202"],"technique_ids":["T1202"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["Internal Research","https://twitter.com/Max_Mal_/status/1633863678909874176","https://techcommunity.microsoft.com/t5/microsoft-365-blog/new-security-hardening-policies-for-trusted-documents/ba-p/3023465","https://twitter.com/_JohnHammond/status/1588155401752788994"],"source_path":"rules/windows/process_creation/proc_creation_win_office_exec_from_trusted_locations.yml","source_sha256":"d51d62d8ce6fb3a71ac34eb66c2d4f91d7a9debfe6b29abf96251ca02cd11b21","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_office_exec_from_trusted_locations.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potentially Suspicious Office Document Executed From Trusted Location\nid: f99abdf0-6283-4e71-bd2b-b5c048a94743\nstatus: test\ndescription: Detects the execution of an Office application that points to a document that is located in a trusted location. Attackers often used this to avoid macro security and execute their malicious code.\nreferences:\n    - Internal Research\n    - https://twitter.com/Max_Mal_/status/1633863678909874176\n    - https://techcommunity.microsoft.com/t5/microsoft-365-blog/new-security-hardening-policies-for-trusted-documents/ba-p/3023465\n    - https://twitter.com/_JohnHammond/status/1588155401752788994\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-06-21\nmodified: 2023-10-18\ntags:\n    - attack.stealth\n    - attack.t1202\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_parent:\n        # Note: we add a parent shell to reduce FP. Add additional 3rd party shells that you might use\n        ParentImage|endswith:\n            - '\\explorer.exe'\n            - '\\dopus.exe'\n    selection_img:\n        - Image|endswith:\n              - '\\EXCEL.EXE'\n              - '\\POWERPNT.EXE'\n              - '\\WINWORD.exe'\n        - OriginalFileName:\n              - 'Excel.exe'\n              - 'POWERPNT.EXE'\n              - 'WinWord.exe'\n    selection_trusted_location:\n        CommandLine|contains:\n            # Note: these are the default locations. Admins/Users could add additional ones that you need to cover\n            - '\\AppData\\Roaming\\Microsoft\\Templates'\n            - '\\AppData\\Roaming\\Microsoft\\Word\\Startup\\'\n            - '\\Microsoft Office\\root\\Templates\\'\n            - '\\Microsoft Office\\Templates\\'\n    filter_main_dotx:\n        # Note: We add this filter to avoid curious people clicking on template files\n        CommandLine|endswith:\n            - '.dotx'\n            - '.xltx'\n            - '.potx'\n    condition: all of selection_* and not 1 of filter_main_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1202","id":"T1202","name":"Indirect Command Execution","page":"techniques/enterprise/T1202/"}],"data_path":"data/detection-rules/f99abdf0-6283-4e71-bd2b-b5c048a94743.json","kind":"sigma"}
