-
Notifications
You must be signed in to change notification settings - Fork 211
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
Windows version conditions do not apply for Windows 10 #274
Comments
@DeKe42 thanks for the report. I'll consult with @grrrrrrrrr how GRR implements this. Moving to versions like "6.1" looks like a better approach. Alternative is to drop the version all together. |
Affected artifact definitions: windows.yaml wmi.yaml |
GRR CheckCondition applies an object filter to the knowledge base: |
GRR knowledge base gets filled with a separate value for Looks like SetCoreGRRKnowledgeBaseValues is used to set Values in |
I'm keen on taking this issue on. Going for the latter solution with semantic versioning seems the cleanest approach. Assuming my changes get approved I will make a follow-up PR here to adjust some of these definitions. @joachimmetz any concerns with the semantic versioning approach? I know this has been sitting in the back burner and your thoughts may have changed. |
A semantic version should be used for checking the condition of the client's operating system rather than evaluating the OS major AND minor version independently. See: ForensicArtifacts/artifacts/issues/274
what do you specifically mean with the "semantic versioning approach" in this context. as in treating the version as string? I'm wondering what value the version information adds. Maybe we can it all together. |
I am referring to the second solution proposed by @DeKe42, the "semantic version compare" e.g. I don't believe adding What are you specifically referring to when you say |
I mean removing it. What is the value it adds? Let me check with the GRR folks but this might be a left over from early days. |
Removed conditions #515 Rationale: os_major_version and os_minor_version use the kernel version. Artifact definitions are typically product level specific not kernel level. |
Some artifacts have conditions in the form of
os_major_version >= X AND os_minor_version >= Y
.This fails starting with Windows 10, which can have version 10.0. A condition like
os_major_version >= 6 AND os_minor_version >= 1
will fail here although the artifact applies.One example is
artifacts/data/windows.yaml
Line 1335 in 015b375
I can think of multiple solutions to this:
(os_major_version >= 6 AND os_minor_version >= 1) OR os_major version >= 7
os_version >= "6.1"
The text was updated successfully, but these errors were encountered: