Deploy the Plug-in
Prerequisites
The following are required for deploying the Agent Harness Security plug-in. Have this information available before deployment.-
A HiddenLayer client credential (client ID and client secret). See Create a Client Credential.
- Client credential permissions required: Interactions:
read,write; Policies:read; Projects:read. - See Runtime Security in the Permissions for Products and Features table.
- Client credential permissions required: Interactions:
-
Create a HiddenLayer Project ID. See Create a Project.
-
After a project is created, you can copy the ID by clicking the copy button.

-
After a project is created, you can copy the ID by clicking the copy button.
Deployment
- Obtain the plug-in from HiddenLayer. Contact your HiddenLayer sales representative or support.
-
Deploy the plug-in to your endpoints.
-
For example:
- Deploy using an MDM application, like Jamf or Microsoft Intune.
- Manually copy the plug-in file to the endpoint.
-
For example:
For managed Windows fleets, see Deploy to Windows with Microsoft Intune. The Intune install configures credentials and provisions hooks automatically, so you do not need to run the steps in Configure and Hook the Plug-in on each endpoint.
Configure and Hook the Plug-in
Configuring the plug-in connects it to your tenant in the HiddenLayer Console. Hooking the plug-in secures your AI coding agents. You can unhook the plug-in when needed.-
Set the Client ID. This is the client ID of your HiddenLayer client credential. Replace
my-client-idwith the client ID. -
Set the Client Secret. This is the client secret of your HiddenLayer client credential. Replace
my-client-secretwith the client secret. The secret is routed to the OS secret store. The value is not echoed. -
Set the Platform URL. This is the region for the Console that you log in to. Note: The following example is for the EU region. The US region is the default region.
-
Optionally, set the Project ID if you are using a project other than the default. Replace
my-project-idwith the project ID you want to use. -
Check the status of the plug-in to verify the current configuration.
-
Verify the configuration authentication.
-
Install the hooks for all supported harnesses.
System-Level InstallationFor system-level installation, run with
sudo. This is supported for Copilot and Cursor.Unhook the Coding Agents
-
To remove the hook configurations, run the following command.
Validation
After setup, send a test command. Traffic should appear in the console filterable byrequester / project ID, showing ping, tool use, write interactions, and all agent activity.
Deploy to Windows with Microsoft Intune
Deploy the plug-in to managed Windows devices as a single Intune Win32 app that wraps the HiddenLayer MSI. One install command installs thehl binary, configures and verifies credentials, and registers a logon task that installs each user’s editor hooks.
Requirements
- Windows 10 1809 or later, or Windows 11 (recommended), x64 only. Devices must be Entra-joined or hybrid-joined and Intune-enrolled. ARM64 is not supported.
- HTTPS (port 443) access to
api.us.hiddenlayer.ai(US, default) orapi.eu.hiddenlayer.ai(EU). - A dedicated client credential for the fleet, with the
inference:writescope. Verify it on one machine withhl runtime authbefore deploying. - Intune Remediations (Windows Enterprise E3/E5, Education A3/A5, or VDA licensing) if you plan to rotate the client secret on deployed devices.
Enroll devices in Entra and Intune before installing
hl. The plug-in records the device identity the first time it runs, so do not include it in a golden image that runs before Entra join.Package the MSI
- Get the signed MSI and its SHA-256 hash from your HiddenLayer account team. The examples below use
hl-v0.3.2-windows-amd64.msi; substitute your version. - Verify the hash and signature.
Statusmust beValidand the signerCN=HiddenLayer Inc. An expired certificate date is expected. - Put the MSI alone in a source folder and wrap it with the Microsoft Win32 Content Prep Tool:
Create the app in Intune
Go to Apps > All apps > Create > Windows app (Win32) and upload the.intunewin file. Intune pre-fills the product code from the MSI.
Optional install properties:
HL_PLATFORM_URL=https://api.eu.hiddenlayer.aifor EU tenants.HL_PROJECT_ID=<project-id>to set a machine-wide project ID.
Intune has no secret store, so the client secret is visible in the app configuration and audit logs to Intune administrators. Use a dedicated credential scoped only to
inference:write, and rotate it regularly.Verify the deployment
Hooks are installed for each user at their next interactive sign-in. Run the following as SYSTEM, and again as a signed-in user. Use the full path in scripts.hl runtime auth should end with ✓ Succeeded. It is the only reliable health check; hl status reports configuration but does not test it.
On an Entra-joined device, requester_id defaults to <hostname>/<Entra UPN> with no configuration needed.
Upgrade
Create a new Win32 app for the new MSI. Under Supersedence, add the previous app with Uninstall previous version set to No, so existing credentials are preserved. Assign the new app explicitly; it does not inherit assignments. The ProductCode changes with every release, so use the one Intune pre-fills for each MSI.Rotate credentials
Editing the install command does not update devices that already have the plug-in. To rotate the client secret:- Deploy an Intune Remediation using the credential scripts provided by HiddenLayer (
detect-credentials.ps1andconfigure-credentials.ps1). Add the new secret and increase$CredentialGenerationto the same value in both scripts. Run as SYSTEM in 64-bit PowerShell on a Daily or Hourly schedule. - Update the Win32 app’s install command with the new secret so new devices get it.

