Osegi
Software·2 min read

Windows 11 telemetry flags Codex and Claude, even a renamed cmd.exe

A researcher renamed cmd.exe to codex.exe and Windows 11 logged it as Codex CLI. A hidden diagnostics component tracks which coding agents you run.

A Windows 11 desktop with a command prompt window and abstract diagnostic data flowing toward a cloud.
Image: Хабр

Windows 11 can tell when you run an AI coding agent. A researcher proved it by copying cmd.exe, renaming the copy codex.exe, and watching the system mark it as Codex CLI. The filename alone was enough.

The finding comes from MissionControlAggregator.dll, a system library the author was combing through for undocumented features. Inside was a hard-coded list of executables: codex.exe, claude.exe, copilot.exe, cursor.exe and agy.exe, next to python.exe, node.exe, dotnet.exe, gcc.exe, code.exe and others. The feature behind the checks is called CLICodingAgentUsage.

How does Windows 11 detect coding agents?

The component doesn't scan running processes itself. It subscribes to existing Windows events (ETW, Event Tracing for Windows), such as KernelProcess.AppStateChangeSummary, and for WSL the Lxss Exec events. When a filename matches, a slot in its state is filled. Four slots cover command-line agents and five cover desktop agents, with twelve broader categories for developer tools. Some checks also verify the publisher, for example Python Software Foundation for Python. The compiler and debugger group, which includes GCC and Clang, has no such check.

The state is saved on disk. Roughly once a day, a Segments.SubCohorts report turns the slots into bits. The renamed codex.exe produced the value 4, which is bit 2, the Codex CLI. A renamed gcc.exe set the shared compiler category instead.

What gets sent to Microsoft?

The report is marked as optional diagnostic data. If that setting is on, and the author says it is on by default, the event sits in the DiagTrack send queue. The author tested this on a Windows 11 ARM64 virtual machine, build 26200.9974, where the experiment was already switched on without his doing.

According to the analysis, the component discards run time, focus time and resource use. It stores only which tools were seen, and the timestamps describe the collection window. The author found no prompt text or source code in the report. Still, a record of which AI agents a person uses is a privacy matter on its own.

If you want it gone, the lever is the optional diagnostic data setting in Windows.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:windows 11telemetrydiagtrackcodexclaudeprivacy

More from this day

See all →

More in: Software

See all →