Potential Registry Persistence Attempt Via Windows Telemetry

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects potential persistence behavior using the windows telemetry registry key. Windows telemetry makes use of the binary CompatTelRunner.exe to run a variety of commands and perform the actual telemetry collections. This binary was created to be easily extensible, and to that end, it relies on the registry to instruct on which commands to run. The problem is, it will run any arbitrary command without restriction of location or type.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Registry value modified" AND ((OBJECTNAME contains "\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TelemetryController" OR (OBJECTNAME endswith "\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TelemetryController" AND isExist(OBJECTVALUENAME))) AND OBJECTNAME endswith "\Command" AND INFORMATION contains ".bat,.bin,.cmd,.dat,.dll,.exe,.hta,.jar,.js,.msi,.ps,.sh,.vb") AND INFORMATION notcontains "\system32\CompatTelRunner.exe,\system32\DeviceCensus.exe" select Action1.HOSTNAME,Action1.MESSAGE,Action1.OBJECTNAME,Action1.PROCESSNAME,Action1.PREVVAL,Action1.CHANGES

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Lednyov Alexey, oscd.community, Sreeman