EPM Self-Defense Token Rejected on Disconnected Agent
Symptom
An administrator attempts to use a secure token on an endpoint, but the EPM Agent rejects it as incorrect. Log analysis confirms that the Agent was unable to decrypt the token. This issue specifically occurs when the targeted EPM Agent is disconnected from the network/EPM Console and can no longer connect to it.
Environment
EPM Web Console;Mac Agent;Windows Agent
Cause
This token mismatch occurs if Agent Self-Defense protection was disabled and then re-enabled in the EPM Console while the endpoint was disconnected.
Disabling and re-enabling Self-Defense generates a new secret in the EPM Console. Because the agent is disconnected, it cannot communicate with the server to receive this new secret and continues to hold the old secret. Consequently, any new tokens generated by the console are based on the new secret, which the disconnected agent will not accept.
Resolution
Since the agent cannot connect to receive the new secret, you must either find a token generated from the old secret or manually bypass self-defense on the endpoint.
Option 1: Retrieve the old token from Console Reports You can locate the original Self-Defense token that was active prior to the feature being disabled/re-enabled.
-
In the EPM Console, generate the EPM Administrator Activities report.
-
Review the report to locate all past tokens generated by the administrator.
-
Identify the old token that was active before the Self-Defense toggle occurred and apply it to the disconnected agent.
Note: EPM tokens generated from Self-Defense disablement are valid for 1 year. If Self-Defense was disabled and re-enabled more than a year ago, the old token in the report will be expired and will not work. In this scenario, proceed to Option 2.
Option 2: Disable Self-Defense via Safe Mode If the old token cannot be found or is expired (> 1 year old), the token approach is no longer viable. The only solution is to boot the endpoint into Windows Safe Mode to manually disable or bypass the EPM Agent Self-Defense mechanisms.