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

[New Rule] PowerShell Script with Token Impersonation Capabilities #2246

Merged
merged 9 commits into from
Sep 19, 2022

Conversation

w0rk3r
Copy link
Contributor

@w0rk3r w0rk3r commented Aug 17, 2022

Summary

Detects scripts that contain PowerShell functions, structures, or Windows API functions related to token impersonation/theft. Attackers may duplicate then impersonate another user's token to escalate privileges and bypass access controls.

Sample events

Copy link
Contributor

@DefSecSentinel DefSecSentinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@w0rk3r w0rk3r merged commit 09565d9 into main Sep 19, 2022
@w0rk3r w0rk3r deleted the posh_impersonation branch September 19, 2022 18:43
protectionsmachine pushed a commit that referenced this pull request Sep 19, 2022
…2246)

* [New Rule] PowerShell Script with Token Impersonation Capabilities

* Update privilege_escalation_posh_token_impersonation.toml

* Update privilege_escalation_posh_token_impersonation.toml

* Update privilege_escalation_posh_token_impersonation.toml

Co-authored-by: Mika Ayenson <[email protected]>
Co-authored-by: Colson Wilhoit <[email protected]>

(cherry picked from commit 09565d9)
protectionsmachine pushed a commit that referenced this pull request Sep 19, 2022
…2246)

* [New Rule] PowerShell Script with Token Impersonation Capabilities

* Update privilege_escalation_posh_token_impersonation.toml

* Update privilege_escalation_posh_token_impersonation.toml

* Update privilege_escalation_posh_token_impersonation.toml

Co-authored-by: Mika Ayenson <[email protected]>
Co-authored-by: Colson Wilhoit <[email protected]>

(cherry picked from commit 09565d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: auto Domain: Endpoint OS: Windows windows related rules Rule: New Proposal for new rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants