file where host.os.type == "macos" and event.action == "modification" and
file.path like "/Library/Security/SecurityAgentPlugins/*" and
not file.path like ("/Library/Security/SecurityAgentPlugins/KandjiPassport.bundle/*", "/Library/Security/SecurityAgentPlugins/TeamViewerAuthPlugin.bundle/*") and
not process.name == "shove"
Install detection rules in Elastic Security
Detect Authorization Plugin Modification in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).