-
Notifications
You must be signed in to change notification settings - Fork 523
Implemented static analysis for client side permissions #4246
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8000
Client side artifacts run on the endpoint without ACL enforcement. This is usually what we want but sometimes the extra permissions can give the user extra permissions on the end point. The artifact writer can specify required permissions which will be enforced by the server prior to collecting the artifact. However, sometimes the artifact can use plugins with high priviledge safely - in that case we do not want to restrict the users that may collect it. For example say the artifact collects autoruns by shelling to the autoruns.exe tool. Even though it is using the execve() plugin this call is safe because the args are fixed and can not be influenced by the user. However if the artifact passed user input into the execve() plugin, the user requires the EXECVE permission. Previously, the artifact could declare EXECVE as a required permission, for artifact uses where user input was directly allowed in execve() calls. This enforces additional checks on the launching user to ensure they have the EXECVE permission. This PR modifies the artifact verifier to track plugin permissions used in the artifact. This allows us to see if the artifact inadvertantly gives the user permissions they do not have. This PR introduces another field to the artifact definition called `implied_permissions` where the artifact writer can declare permissions which the artifact will give but the user does not require those. This helps the verifier identify additional permissions that are accidentally given to users on the client. This PR adds a test to ensure built in artifacts have all necessary permissions declared either in `required_permissions` or `implied_permissions`
Snyk has created this PR to upgrade webpack from 5.99.6 to 5.99.7. See this package in npm: webpack See this project in Snyk: https://app.snyk.io/org/scudette/project/76f4d127-566b-42ef-86f4-bdcbc92b90b4?utm_source=github&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade axios from 1.8.4 to 1.9.0. See this package in npm: axios See this project in Snyk: https://app.snyk.io/org/scudette/project/76f4d127-566b-42ef-86f4-bdcbc92b90b4?utm_source=github&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade ace-builds from 1.40.0 to 1.40.1. See this package in npm: ace-builds See this project in Snyk: https://app.snyk.io/org/scudette/project/76f4d127-566b-42ef-86f4-bdcbc92b90b4?utm_source=github&utm_medium=referral&page=upgrade-pr
|
scudette
added a commit
that referenced
this pull request
May 20, 2025
Client side artifacts run on the endpoint without ACL enforcement. This is usually what we want but sometimes the extra permissions can give the user extra permissions on the end point. The artifact writer can specify required permissions which will be enforced by the server prior to collecting the artifact. However, sometimes the artifact can use plugins with high priviledge safely - in that case we do not want to restrict the users that may collect it. For example say the artifact collects autoruns by shelling to the autoruns.exe tool. Even though it is using the execve() plugin this call is safe because the args are fixed and can not be influenced by the user. However if the artifact passed user input into the execve() plugin, the user requires the EXECVE permission. Previously, the artifact could declare EXECVE as a required permission, for artifact uses where user input was directly allowed in execve() calls. This enforces additional checks on the launching user to ensure they have the EXECVE permission. This PR modifies the artifact verifier to track plugin permissions used in the artifact. This allows us to see if the artifact inadvertantly gives the user permissions they do not have. This PR introduces another field to the artifact definition called `implied_permissions` where the artifact writer can declare permissions which the artifact will give but the user does not require those. This helps the verifier identify additional permissions that are accidentally given to users on the client. This PR adds a test to ensure built in artifacts have all necessary permissions declared either in `required_permissions` or `implied_permissions` --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io>
scudette
added a commit
that referenced
this pull request
May 20, 2025
Client side artifacts run on the endpoint without ACL enforcement. This is usually what we want but sometimes the extra permissions can give the user extra permissions on the end point. The artifact writer can specify required permissions which will be enforced by the server prior to collecting the artifact. However, sometimes the artifact can use plugins with high priviledge safely - in that case we do not want to restrict the users that may collect it. For example say the artifact collects autoruns by shelling to the autoruns.exe tool. Even though it is using the execve() plugin this call is safe because the args are fixed and can not be influenced by the user. However if the artifact passed user input into the execve() plugin, the user requires the EXECVE permission. Previously, the artifact could declare EXECVE as a required permission, for artifact uses where user input was directly allowed in execve() calls. This enforces additional checks on the launching user to ensure they have the EXECVE permission. This PR modifies the artifact verifier to track plugin permissions used in the artifact. This allows us to see if the artifact inadvertantly gives the user permissions they do not have. This PR introduces another field to the artifact definition called `implied_permissions` where the artifact writer can declare permissions which the artifact will give but the user does not require those. This helps the verifier identify additional permissions that are accidentally given to users on the client. This PR adds a test to ensure built in artifacts have all necessary permissions declared either in `required_permissions` or `implied_permissions` --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io>
scudette
added a commit
that referenced
this pull request
May 20, 2025
Client side artifacts run on the endpoint without ACL enforcement. This is usually what we want but sometimes the extra permissions can give the user extra permissions on the end point. The artifact writer can specify required permissions which will be enforced by the server prior to collecting the artifact. However, sometimes the artifact can use plugins with high priviledge safely - in that case we do not want to restrict the users that may collect it. For example say the artifact collects autoruns by shelling to the autoruns.exe tool. Even though it is using the execve() plugin this call is safe because the args are fixed and can not be influenced by the user. However if the artifact passed user input into the execve() plugin, the user requires the EXECVE permission. Previously, the artifact could declare EXECVE as a required permission, for artifact uses where user input was directly allowed in execve() calls. This enforces additional checks on the launching user to ensure they have the EXECVE permission. This PR modifies the artifact verifier to track plugin permissions used in the artifact. This allows us to see if the artifact inadvertantly gives the user permissions they do not have. This PR introduces another field to the artifact definition called `implied_permissions` where the artifact writer can declare permissions which the artifact will give but the user does not require those. This helps the verifier identify additional permissions that are accidentally given to users on the client. This PR adds a test to ensure built in artifacts have all necessary permissions declared either in `required_permissions` or `implied_permissions` --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Client side artifacts run on the endpoint without ACL enforcement. This is usually what we want but sometimes the extra permissions can give the user extra permissions on the end point.
The artifact writer can specify required permissions which will be enforced by the server prior to collecting the artifact.
However, sometimes the artifact can use plugins with high priviledge safely - in that case we do not want to restrict the users that may collect it.
For example say the artifact collects autoruns by shelling to the autoruns.exe tool. Even though it is using the execve() plugin this call is safe because the args are fixed and can not be influenced by the user. However if the artifact passed user input into the execve() plugin, the user requires the EXECVE permission.
Previously, the artifact could declare EXECVE as a required permission, for artifact uses where user input was directly allowed in execve() calls. This enforces additional checks on the launching user to ensure they have the EXECVE permission.
This PR modifies the artifact verifier to track plugin permissions used in the artifact. This allows us to see if the artifact inadvertantly gives the user permissions they do not have.
This PR introduces another field to the artifact definition called
implied_permissions
where the artifact writer can declare permissions which the artifact will give but the user does not require those. This helps the verifier identify additional permissions that are accidentally given to users on the client.This PR adds a test to ensure built in artifacts have all necessary permissions declared either in
required_permissions
orimplied_permissions