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

Uninstall on Windows triggers a Cloud IOC alert #2970

Closed
blakerouse opened this issue Jun 30, 2023 · 2 comments · Fixed by #3014 or #3120
Closed

Uninstall on Windows triggers a Cloud IOC alert #2970

blakerouse opened this issue Jun 30, 2023 · 2 comments · Fixed by #3014 or #3120
Assignees
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team

Comments

@blakerouse
Copy link
Contributor

The uninstall command for the Elastic Agent performs an action at the end of the installation process that spawns a cmd.exe that uses ping to wait 2 seconds and then delete the C:\Program Files\Elastic\Agent directory. This is done because uninstall is being executed from that directory and it cannot delete the directory that it is executing from (Windows does not allow it).

See the code here: https://github.com/elastic/elastic-agent/blob/main/internal/pkg/agent/install/uninstall.go#L143

This type of process execution on Windows triggers a Cloud IOC alert. We should determine if its possible for this removal to be performed differently that doesn't trigger this type of alert.

  • Version: All
  • Operating System: Windows
@blakerouse blakerouse added bug Something isn't working Team:Elastic-Agent Label for the Agent team labels Jun 30, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@blakerouse
Copy link
Contributor Author

I am re-opening this as the original change was reverted.

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