Skip to content

Update Processes checkup logic for determining whether process is run as root #2257

Description

@zackattack01

The processes checkup will fail for windows devices where the username is not returned in English. This is because we do a strict equality check of the process username against "NT AUTHORITY\\SYSTEM", which will not match.

Code is here-

username := pMap["username"].(string)
if username == "root" || username == "NT AUTHORITY\\SYSTEM" {
c.kolideRunningAsRoot = true
}

We are now using the pass/fail status towards our checkup score generation, so should update this check to prevent erroneously reporting failures. We'll just need to figure out a better way to determine whether the process is running with administrative privileges

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions