User Shell Folders Registry Modification via CommandLine

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects modifications to User Shell Folders registry values via reg.exe or PowerShell, which could indicate persistence attempts.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (( PROCESSNAME endswith "\reg.exe,\powershell.exe,powershell_ise.exe,\pwsh.exe" OR ORIGINALFILENAME = "reg.exe,powershell.exe,powershell_ise.exe,pwsh.dll" ) AND COMMANDLINE contains " add ,New-ItemProperty,Set-ItemProperty,si " AND ( COMMANDLINE contains "\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" OR COMMANDLINE contains "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" ) AND COMMANDLINE contains "Startup" ) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID

Detection

Execution Mode

realtime

Log Sources

Windows

Author

@Swachchhanda Shrawan Poudel (Nextron Systems)