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

Support runas in server artifact definition #3292

Open
scudette opened this issue Feb 15, 2024 · 0 comments
Open

Support runas in server artifact definition #3292

scudette opened this issue Feb 15, 2024 · 0 comments

Comments

@scudette
Copy link
Contributor

Normally server artifacts are collected in the user context of the launching user - this consistently applies the user's ACL to everything the artifact does which is what we want in most cases.

However we sometimes want to provide some very specialized functionality that requires elevated ACLs to low privilege users. For example this artifact allows collecting Quarantine to non admin users

name: Sudo.Quaratine
type: SERVER

parameters:
   - name: ClientId
sources:
  - query: |
      SELECT if(condition=whoami() =~ "^bob$", then=collect_client(artifacts="Windows.Remediation.Quarantine", client_id=ClientId))
      FROM scope()

This does not currently work because the artifact runs in the calling user's context and if the calling user is not an admin they can not launch the Quarantine artifact.

We need a way to either:

  1. Set the access token per artifact
  2. Run in the context of another user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant