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

Added T1562.010 Test for PowerShell v2 Downgrade #2670

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

zaicurity
Copy link
Contributor

Details:
Added new test that runs a cmdlet explicitly via PowerShell v2 as is sometimes seen in adversary TTPs[1].

Please note that v2 is no longer installed by default and can be difficult to install manually because Microsoft no longer supports it. To test detections the atomic could still be useful even without v2 installed, as the command line should be logged anyway.

Testing:

Tested on Windows 10 and Server 2019 with and without PowerShell v2 installed.

References:
[1] https://www.leeholmes.com/detecting-and-preventing-powershell-downgrade-attacks/

Copy link
Collaborator

@clr2of8 clr2of8 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. You have selected the best Technique Number to put this, however we do already have a PowerShell Downgrade Attack atomic here. Can you include the removal of the other atomic from T1059.001 in this PR. Keeping your version here in T1562.010?

@zaicurity
Copy link
Contributor Author

Thanks for the feedback!
Looks like the github search function let me down there. I removed the atomic from T1059.001.yaml as you requested.
Please check if everything looks correct now.

Copy link
Collaborator

@clr2of8 clr2of8 left a comment

Choose a reason for hiding this comment

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

Looks good, thx!

@clr2of8 clr2of8 merged commit dc264a8 into redcanaryco:master Jan 31, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants