Sigma rule: Registry Modification Attempt Via VBScript - PowerShell

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0472b7423e23, updated 2025-08-13T00:00:00.000Z.

Rule

Title
Registry Modification Attempt Via VBScript - PowerShell
Status
experimental
Level
medium
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2025-08-13
File
rules/windows/powershell/powershell_script/posh_ps_vbscript_registry_modification.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects attempts to modify the registry using VBScript's CreateObject("Wscript.shell") and RegWrite methods embedded within PowerShell scripts or commands.
Threat actors commonly embed VBScript code within PowerShell to perform registry modifications, attempting to evade detection that monitors for direct registry access through traditional tools.
This technique can be used for persistence, defense evasion, and privilege escalation by modifying registry keys without using regedit.exe, reg.exe, or PowerShell's native registry cmdlets.

Log source

product
windows
category
ps_script

Detection

selection:
    ScriptBlockText|contains|all:
        - 'CreateObject'
        - 'Wscript.shell'
        - '.RegWrite'
condition: selection

False positives (as the rule lists them)

  • Some legitimate admin or install scripts may use these processes for registry modifications.

Tags

  • attack.persistence
  • attack.execution
  • attack.defense-impairment
  • attack.t1112
  • attack.t1059.005

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/powershell/powershell_script/posh_ps_vbscript_registry_modification.yml

Sources and licences

  • SigmaHQ

    "Registry Modification Attempt Via VBScript - PowerShell" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_vbscript_registry_modification.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: Registry Modification Attempt Via VBScript - PowerShell",
entity page, dataset version ref-0472b7423e23, updated 2025-08-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2a0a169d-cc66-43ce-9ae2-6e678e54e46a (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2a0a169d-cc66-43ce-9ae2-6e678e54e46a, 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.