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 test for T1089 for Remove-Service, introduced in Powershell 6.0 #954

Merged

Conversation

msd1201
Copy link
Contributor

@msd1201 msd1201 commented Apr 22, 2020

Details:
Using this command, an adversary can remove Windows Services related to security products.

Testing:
Tested using Powershell 6.0/7.0.

Associated Issues:
None that I'm aware of.

service_name:
description: The name of the service to remove
type: String
default: Winlogbeat
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we set the default to something that works out of the box for all users, or in other words, a service that is on Windows by default. Preferably one that is indicative of malicious intent which would be important to watch for from a defense perspective.

Copy link
Contributor Author

@msd1201 msd1201 Apr 25, 2020

Choose a reason for hiding this comment

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

I've changed this to include Stop-Service and Remove-Service. I also changed the default service value to 'McAfeeDLPAgentService' which is used in Atomic Test 13 - Disable Arbitrary Security Windows Service. That test is very similar to this one. Thanks.

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 first time contribution. Keep it up!

@clr2of8 clr2of8 merged commit 9d53c87 into redcanaryco:master Apr 27, 2020
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

Successfully merging this pull request may close these issues.

2 participants