Sigma rule: Macro Enabled In A Potentially Suspicious Document

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-dc126d0fb834, updated 2023-08-17T00:00:00.000Z.

Rule

Title
Macro Enabled In A Potentially Suspicious Document
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2023-06-21
Modified
2023-08-17
File
rules/windows/registry/registry_set/registry_set_office_trust_record_susp_location.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects registry changes to Office trust records where the path is located in a potentially suspicious location

Log source

product
windows
category
registry_set

Detection

selection_value:
    TargetObject|contains: '\Security\Trusted Documents\TrustRecords'
selection_paths:
    TargetObject|contains:
        # Note: add more locations where you don't expect a user to executed macro enabled docs
        - '/AppData/Local/Microsoft/Windows/INetCache/'
        - '/AppData/Local/Temp/'
        - '/PerfLogs/'
        - 'C:/Users/Public/'
        - 'file:///D:/'
        - 'file:///E:/'
condition: all of selection_*

False positives (as the rule lists them)

  • Unlikely

Tags

  • attack.persistence
  • attack.defense-impairment
  • attack.t1112

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_office_trust_record_susp_location.yml

Sources and licences

  • SigmaHQ

    "Macro Enabled In A Potentially Suspicious Document" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_office_trust_record_susp_location.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Macro Enabled In A Potentially Suspicious Document",
entity page, dataset version ref-dc126d0fb834, updated 2023-08-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a166f74e-bf44-409d-b9ba-ea4b2dd8b3cd (accessed 2026-11-03).
Underlying source: SigmaHQ rule a166f74e-bf44-409d-b9ba-ea4b2dd8b3cd, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.