Skip to main content

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.
  • Create a HiddenLayer Project ID. See Create a Project.
    • After a project is created, you can copy the ID by clicking the copy button.
      Log In Page

Deployment

  1. Obtain the plug-in from HiddenLayer. Contact your HiddenLayer sales representative or support.
  2. 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 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.
  1. Set the Client ID. This is the client ID of your HiddenLayer client credential. Replace my-client-id with the client ID.
  2. Set the Client Secret. This is the client secret of your HiddenLayer client credential. Replace my-client-secret with the client secret. The secret is routed to the OS secret store. The value is not echoed.
  3. 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.
  4. Optionally, set the Project ID if you are using a project other than the default. Replace my-project-id with the project ID you want to use.
  5. Check the status of the plug-in to verify the current configuration.
  6. Verify the configuration authentication.
  7. 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

  1. To remove the hook configurations, run the following command.

Validation

After setup, send a test command. Traffic should appear in the console filterable by requester / 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 the hl 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) or api.eu.hiddenlayer.ai (EU).
  • A dedicated client credential for the fleet, with the inference:write scope. Verify it on one machine with hl runtime auth before 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

  1. 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.
  2. Verify the hash and signature. Status must be Valid and the signer CN=HiddenLayer Inc. An expired certificate date is expected.
  3. 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.ai for EU tenants.
  • HL_PROJECT_ID=<project-id> to set a machine-wide project ID.
  • Always include HL_ENFORCE=1. If credential verification fails, the install rolls back with exit code 1603 and Intune reports the device as Failed. Without it, devices with bad credentials report success but do nothing.
  • Do not run hl runtime setup elevated or as SYSTEM. The MSI provisions hooks per user at sign-in. An elevated run adds machine-level hooks that double every hook call.
  • Do not add /l*v logging to an install command that contains the secret.
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:
  1. Deploy an Intune Remediation using the credential scripts provided by HiddenLayer (detect-credentials.ps1 and configure-credentials.ps1). Add the new secret and increase $CredentialGeneration to the same value in both scripts. Run as SYSTEM in 64-bit PowerShell on a Daily or Hourly schedule.
  2. Update the Win32 app’s install command with the new secret so new devices get it.
If verification fails, the remediation keeps the previous working credentials.

Troubleshooting

Uninstall

Set the app assignment to Uninstall. This removes the binary, scheduled task, machine configuration, and secret. Hook entries for users who are not signed in remain but are inactive. Uninstalling does not revoke the credential; revoke or rotate it in the HiddenLayer Console.