ByteRay CQL Hub
← All queries

Suspicious Registry Modifications

This query detects suspicious registry modifications that could indicate persistence mechanisms or system configuration tampering by attackers.

CQL · Falcon Next-Gen SIEMCopy query
#event_simpleName=RegGenericValue 
| RegObjectName=/\\(Run|RunOnce|Winlogon|AppInit_DLLs|Image File Execution Options)/i
| RegValueName!=/^(ctfmon|SecurityHealth|OneDrive)$/i
| join({#event_simpleName=UserIdentity}, field=AuthenticationID, include=[UserName])
| table([aid, UserName, RegObjectName, RegValueName, RegStringValue, ProcessImageFileName])

This query uses CrowdStrike Query Language (CQL) to detect suspicious registry modifications:

  1. Event Filtering: #event_simpleName=RegGenericValue - Searches for registry value modification events

  2. High-Risk Keys: RegObjectName=/\\(Run|RunOnce|Winlogon|AppInit_DLLs|Image File Execution Options)/i - Focuses on common persistence and execution registry locations

  3. Exclude Legitimate: RegValueName!=/^(ctfmon|SecurityHealth|OneDrive)$/i - Filters out known legitimate applications

  4. User Context: join({#event_simpleName=UserIdentity}, field=AuthenticationID, include=[UserName]) - Enriches results with username information

  5. Output: table([aid, UserName, RegObjectName, RegValueName, RegStringValue, ProcessImageFileName]) - Displays registry path, value, and modifying process

Suspicious_Registry_Modifications.yml
T1112, T1547.001
ByteRay GmbH
Hunting
Endpoint
Insight, Identity
2025-08-04
2025-08-26

Get this query running in your SIEM, with someone on call.

Our Managed SIEM team operates CrowdStrike Falcon Next-Gen SIEM in production, with over 350 battle-tested use cases and 24/7 incident response behind them.

Talk to the SIEM team