{"id":"a166f74e-bf44-409d-b9ba-ea4b2dd8b3cd","title":"Macro Enabled In A Potentially Suspicious Document","description":"Detects registry changes to Office trust records where the path is located in a potentially suspicious location","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2023-06-21","modified":"2023-08-17","tags":["attack.persistence","attack.defense-impairment","attack.t1112"],"technique_ids":["T1112"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Unlikely"],"references":["https://twitter.com/inversecos/status/1494174785621819397","Internal Research"],"source_path":"rules/windows/registry/registry_set/registry_set_office_trust_record_susp_location.yml","source_sha256":"8d4e2ec6caebc8b8bfe3bce80a8d9178e39c6b7668eb6e5f9b56b312e3640946","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_office_trust_record_susp_location.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Macro Enabled In A Potentially Suspicious Document\nid: a166f74e-bf44-409d-b9ba-ea4b2dd8b3cd\nrelated:\n    - id: 295a59c1-7b79-4b47-a930-df12c15fc9c2\n      type: derived\nstatus: test\ndescription: Detects registry changes to Office trust records where the path is located in a potentially suspicious location\nreferences:\n    - https://twitter.com/inversecos/status/1494174785621819397\n    - Internal Research\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-06-21\nmodified: 2023-08-17\ntags:\n    - attack.persistence\n    - attack.defense-impairment\n    - attack.t1112\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection_value:\n        TargetObject|contains: '\\Security\\Trusted Documents\\TrustRecords'\n    selection_paths:\n        TargetObject|contains:\n            # Note: add more locations where you don't expect a user to executed macro enabled docs\n            - '/AppData/Local/Microsoft/Windows/INetCache/'\n            - '/AppData/Local/Temp/'\n            - '/PerfLogs/'\n            - 'C:/Users/Public/'\n            - 'file:///D:/'\n            - 'file:///E:/'\n    condition: all of selection_*\nfalsepositives:\n    - Unlikely\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1112","id":"T1112","name":"Modify Registry","page":"techniques/enterprise/T1112/"}],"data_path":"data/detection-rules/a166f74e-bf44-409d-b9ba-ea4b2dd8b3cd.json","kind":"sigma"}
