Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.08 KB

VBScript_stored_in_non-run_reg_key.md

File metadata and controls

17 lines (15 loc) · 1.08 KB

VBScript stored in non-run CurrentVersion registry key

Source: Cyborg www.cyborgsecurity.io

Logic tweaked and improved by GK from original

DeviceRegistryEvents | where RegistryKey has "\\CurrentVersion" | where RegistryKey !has "\\Run" | where RegistryValueData has_any ("RunHTMLApplication","vbscript","jscript","mshtml","mshtml","mshtml ","Execute","CreateObject","RegRead","window.close") | project Timestamp, DeviceName, InitiatingProcessAccountName, ActionType, RegistryKey, RegistryValueName, RegistryValueData, PreviousRegistryValueName, InitiatingProcessParentFileName, InitiatingProcessFileName, InitiatingProcessId, InitiatingProcessParentId, DeviceId, ReportId | order by Timestamp

SecurityEvent | where ObjectName has "\\CurrentVersion" | where ObjectName !has "\\Run" | where NewValue has_any ("RunHTMLApplication","vbscript","jscript","mshtml","mshtml","mshtml ","Execute","CreateObject","RegRead","window.close") | project TimeGenerated, Computer, Process, ObjectName, ObjectValueName, NewValue, OldValue, SubjectUserName, NewProcessId, SourceComputerId | order by TimeGenerated