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

Obtain process token privileges #207

Open
rabbitstack opened this issue Nov 3, 2023 · 0 comments
Open

Obtain process token privileges #207

rabbitstack opened this issue Nov 3, 2023 · 0 comments
Labels
good first issue needs: docs Indicates that the issue needs documentation updates needs: filters Indicates that new filters should be added scope: filters Anything related to filters scope: process Anything related to process state

Comments

@rabbitstack
Copy link
Owner

Description

To get the list of privileges held by the process, we can use the GetTokenInformation API passing the TokenPrivileges token information class. After the list of available privileges is retrieved, they can be resolved to human-readable strings by using the LookupPrivilegeName API function.
The privileges should be part of the process state and can be used in filters to determine what privileges the process has.

References

https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-lookupprivilegenamew
https://learn.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-gettokeninformation

@rabbitstack rabbitstack added needs: docs Indicates that the issue needs documentation updates needs: filters Indicates that new filters should be added scope: process Anything related to process state scope: filters Anything related to filters labels Nov 3, 2023
@rabbitstack rabbitstack changed the title Obtain process privileges Obtain process token privileges Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue needs: docs Indicates that the issue needs documentation updates needs: filters Indicates that new filters should be added scope: filters Anything related to filters scope: process Anything related to process state
Projects
None yet
Development

No branches or pull requests

1 participant