Windows 11: Microsoft tracks usage of AI agents like Claude and Codex
Windows 11 has gained a new capability: the ability to recognize when users launch specific AI coding assistants. A security researcher has uncovered a mechanism within a system library that identifies tools like Claude Code, OpenAI Codex, and Cursor. While the data collected appears to be part of optional diagnostic telemetry, the exact purpose of tracking these specific third-party AI agents remains unclear.
The discovery was made by security researcher Xusheng Li, who identified the detection logic within the Windows system library '_MissionControlAggregator.dll_'. According to Li's investigation, this component contains hardcoded lists of executable files. The list includes several command-line agents, such as Claude Code, OpenAI Codex, and GitHub Copilot, as well as desktop applications like Cursor and Google's Antigravity. It also tracks standard developer tools like Python, GCC, and Visual Studio Code.
The detection mechanism works by cross-referencing existing Windows events with these predefined lists. This includes applications running within the Windows Subsystem for Linux (WSL). However, the method relies heavily on the executable's filename, which makes it prone to inaccuracies. Li demonstrated this by simply renaming the standard Windows command prompt '_cmd.exe_' to '_codex.exe_' and running it; Windows subsequently registered the activity as if OpenAI Codex were being used, even though no AI agent was actually active.
Telemetry and Data Collection
Once identified, these programs are aggregated into a local report labeled '_Segments.SubCohorts_'. Instead of using plain text names, this report uses bitfields where specific values represent different tools, allowing the system to deduce which applications were detected during a specific period. It is important to note that current findings suggest this report does not capture the duration of use, nor does it collect actual AI prompts, generated code, or other user content.
Li was able to trace this data to the upload queue of the Windows Diagnostic Tracking service ('_DiagTrack_'). The data is categorized as optional diagnostic data, meaning it can be sent to Microsoft if the user has enabled the transmission of optional diagnostic data. While the research tracked the data to the queue, a completed network transfer to Microsoft's servers has not yet been definitively proven.
Implementation and Limitations
The feature does not appear to be active on all Windows 11 machines yet. In Li's case, it was enabled as part of a service experiment, whereas a fresh Windows installation showed the detection to be disabled by default. Independent verification on November 19 confirmed the functionality on Windows 11 Home 25H2 (Build 26200.9974), though it also revealed a flaw: a version of Codex installed via npm was not detected despite multiple launches.
Why is Microsoft monitoring AI competitors?
The motivation behind tracking specific AI coding assistants remains speculative. The data could provide Microsoft with insights into the market share of tools like Claude Code and Cursor, which would be highly valuable given their competition with GitHub Copilot. Alternatively, the information might be used to improve Windows' native support for AI agents. While Microsoft's general documentation states that optional diagnostic data helps determine development priorities and improve app recommendations, there is no explicit mention of targeted tracking for AI coding assistants.
Users wishing to prevent the transmission of this data can disable it via Settings → Privacy & security → Diagnostics & feedback. It remains unknown whether disabling this setting also prevents the local detection of these AI agents.