-
Notifications
You must be signed in to change notification settings - Fork 146
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
[MAC]: Agent gets uninstalled without uninstall-token after upgrade(8.11.3>8.12.0) when Tamper protection is enabled. #3926
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@aleksmaus do you have an idea here? |
The Agent logs (from the attached diags file) contain Endpoint logs that point to the fact that the protection was enabled at
followed by
And then 10 minutes later it looks like Endpoint is not protected
I'll test some more, and also CCing @intxgo on Endpoint side, cause he would know the Endpoint implementation details better. Leszek if you have theories why the protection was not reenabled after upgrade please comment. |
Could you please provide more details on the test environment? I tried to install the agent 8.12.0 from the snapshot builds That fails to install Endpoint on code signature verification
|
Hi @aleksmaus Thank you for looking into this. Please find below more details for the same.
We upgraded this agent to latest version and then waited for more than 20 minutes, and then attempted to uninstall[without token] with already enabled tamper protection.
Please let us know if we are still missing anything here. Thanks!! |
I'll check the logs. When trying to reproduce this, please also check what's the state of Endpoint, was it already upgraded? |
the
|
The attached diagnostics indicate that Endpoint was properly protected, version 8.12.0
which initiates
and it seems the last line did uninstall Endpoint without any tamper protection checks. I'm digging in Endpoint code, either we have a bug
The log appears linear, my theory is that Endpoint installer did not read process exit code correctly from launched subprocess. I'm going to reproduce it locally |
I confirm it's a bug in macOS version of Elastic Defend. |
Leszek, thank you very much for the help! |
I have tried reproducing this and I was unable to. From the logs above, it seems that there were 2 updates, one at 9:33, the other at 9:44. I can see both of them complete successfully. The log Here is the output when I try to uninstall endpoint
I used the same versions as indicated by you. Thanks! |
Hi Team, We have revalidated this issue on latest 8.12.0 BC6 kibana cloud environment and found it fixed now. Observations:
Build details: Hence we are closing this issue and marking as QA:Validated. Thanks! |
|
Kibana Build details:
Host OS: MAC14
Preconditions:
Steps to reproduce:
NOTE:
Screenshot:
Expected Result:
Agent shouldn't get uninstalled without uninstall-token after upgrade(8.11.3>8.12.0) when Tamper protection is enabled.
Logs:
elastic-agent-diagnostics-2023-12-19T10-10-03Z-00.zip
The text was updated successfully, but these errors were encountered: