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

Requested Feature: Nested Impersonation #31

Open
nullbind opened this issue Sep 6, 2018 · 3 comments
Open

Requested Feature: Nested Impersonation #31

nullbind opened this issue Sep 6, 2018 · 3 comments
Assignees

Comments

@nullbind
Copy link
Collaborator

nullbind commented Sep 6, 2018

Would it be possible to implement nested impersonation capabilities in the scenario in which you cannot go straight to sysadmin? If not, am I missing an understanding as to why it is not possible?

@nullbind nullbind self-assigned this Sep 6, 2018
@nullbind
Copy link
Collaborator Author

nullbind commented Sep 6, 2018

You are correct, nested impersonation is possible in SQL Server. Both at the SQL Server login and database user levels. We have done it manually a few times, but haven't taken the time to automate it yet. I'll put it in our follow up list, and see if we can get it addressed before EOY. I think we'd like to add the feature as a "-Recursive" or "-Nested" flag in the existing "Invoke-SQLAuditPrivImpersonateLogin" and "Invoke-SQLAuditPrivImpersonateLogin" functions.

@D00MFist
Copy link
Contributor

D00MFist commented Sep 6, 2018

Thanks for adding the feature request for me. I'll keep working on it and submit a pull request once I get a functioning version.

@nullbind
Copy link
Collaborator Author

nullbind commented Sep 7, 2018

No worries, thanks for reaching out. It should be a fun feature. I’m curious to see what trends it may uncover once we find an opportunity to run it on scale. Cool stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants