Sigma rule: Disable Macro Runtime Scan Scope
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7e7727ec1505, updated 2023-08-17T00:00:00.000Z.
Rule
- Title
- Disable Macro Runtime Scan Scope
- Status
- test
- Level
- high
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-10-25
- Modified
- 2023-08-17
- File
- rules/windows/registry/registry_set/registry_set_disable_macroruntimescanscope.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects tampering with the MacroRuntimeScanScope registry key to disable runtime scanning of enabled macros
Log source
- product
- windows
- category
- registry_set
Detection
selection:
TargetObject|contains|all:
- '\SOFTWARE\'
- '\Microsoft\Office\'
- '\Common\Security'
TargetObject|endswith: '\MacroRuntimeScanScope'
Details: DWORD (0x00000000)
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.defense-impairment
References
- https://www.microsoft.com/en-us/security/blog/2018/09/12/office-vba-amsi-parting-the-veil-on-malicious-macros/
- https://admx.help/?Category=Office2016&Policy=office16.Office.Microsoft.Policies.Windows::L_MacroRuntimeScanScope
- https://github.com/S3cur3Th1sSh1t/OffensiveVBA/blob/28cc6a2802d8176195ac19b3c8e9a749009a82a3/src/AMSIbypasses.vba
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_disable_macroruntimescanscope.yml
Sources and licences
SigmaHQ
"Disable Macro Runtime Scan Scope" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_disable_macroruntimescanscope.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Disable Macro Runtime Scan Scope",
entity page, dataset version ref-7e7727ec1505, updated 2023-08-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ab871450-37dc-4a3a-997f-6662aa8ae0f1 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ab871450-37dc-4a3a-997f-6662aa8ae0f1, 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.