Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metricbeat system modules reports Windows 11 as Windows 10 #30833

Closed
cmacknz opened this issue Mar 15, 2022 · 2 comments · Fixed by #32259
Closed

Metricbeat system modules reports Windows 11 as Windows 10 #30833

cmacknz opened this issue Mar 15, 2022 · 2 comments · Fixed by #32259
Labels
8.5-candidate bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@cmacknz
Copy link
Member

cmacknz commented Mar 15, 2022

When running on Windows 11 the system module will report the running Windows version as Windows 10.

This was noticed as the endpoint security integration correctly identifies Windows 11 when agent is running on that operating system with both endpoint security and the system integration:

Endpoint Security:

      "os": {
        "Ext": {
          "variant": "Windows 11 Home"
        },
        "kernel": "21H2 (10.0.22000.556)",
        "name": "Windows",
        "family": "windows",
        "type": "windows",
        "version": "21H2 (10.0.22000.556)",
        "platform": "windows",
        "full": "Windows 11 Home 21H2 (10.0.22000.556)"
      },

System:

      "os": {
        "build": "22000.556",
        "kernel": "10.0.22000.556 (WinBuild.160101.0800)",
        "name": "Windows 10 Home",
        "family": "windows",
        "type": "windows",
        "version": "10.0",
        "platform": "windows"
      },

We are reporting the value from reading the SOFTWARE\Microsoft\Windows NT\CurrentVersion registry key exactly as read:

https://github.com/elastic/go-sysinfo/blob/bef435f84e9706a7c8fff908b5e54b984f98ca3b/providers/windows/os_windows.go#L33

The product name wasn't updated by Microsoft between the two products and the system integration isn't looking at anything else that allows distinguishing Windows 10 from Windows 11 like Endpoint is.

There are some related answers in the Microsoft support forums confirming the situation:

This is a bug in that the system integration hasn't accounted for this problem yet.

@cmacknz cmacknz added bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Mar 15, 2022
@cmacknz cmacknz self-assigned this Mar 15, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@ph
Copy link
Contributor

ph commented Jun 29, 2022

upstream issue elastic/go-sysinfo#118

@ph ph closed this as completed Jun 29, 2022
andrewkroh added a commit to andrewkroh/beats that referenced this issue Jul 8, 2022
andrewkroh added a commit that referenced this issue Jul 11, 2022
andrewkroh added a commit that referenced this issue Jul 12, 2022
leweafan pushed a commit to leweafan/beats that referenced this issue Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.5-candidate bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants