Extension Hardening and Key Rotation
For IT admins rolling the Shadow AI extension out to a managed fleet with Microsoft Intune and an organization key. It covers locking the browser down so users can't remove, inspect or work around the extension, handing the key to the extension, checking a pilot device, and rotating the key. Start with the Extension via Intune page for the basic force-install steps.
1. What the organization key can and can't do
An organization key lets every managed browser report Shadow AI detections to your RAIC organization without anyone signing in. It works only on the extension's own endpoints. Besides sending detections, those return what the extension needs to run: your organization's extension settings and the list of AI tools you have approved. The key can't open dashboards or reports, and it can't use the REST API or the MCP server.
- Treat the key as visible to everyone who uses a managed device. Browsers show policy values at chrome://policy and edge://policy, and the value sits in the registry.
- Someone who copies the key can see your extension settings and approved AI tools. They can also send made-up detections to your organization. Device tokens (section 7) stop them sending under the key itself or as a browser that is already registered, but they can still register a new browser and send from it, within the new-device limits below. They can't read your inventory, registers or anything else. Rotate the key on a schedule and whenever you think it has leaked.
- Each key has an event limit per hour, shown in Organization Extension Keys (10,000 by default). Uploads past it are refused and the extension keeps them to send later, but it holds at most 500 unsent detections per browser and drops the oldest past that. The key shows how often it reached the limit.
- Each key also accepts only so many new devices, sized from your employee band. For the 251 to 500 band that is 500 new devices an hour and 2,000 active devices, enough for every user to run Chrome and Edge. A larger rollout enrolls over a few hours, because a refused device tries again on its next sync. Devices already registered are never refused. OrgAdmins get a bell and an email when new devices in an hour reach half the limit, and again when the limit is reached.
- Uploads are also rate limited per device, and repeated detections are merged. Tamper reports from the extension are capped too: the same report from a device is stored once a day, and one key can store at most 5,000 a day. When a key reaches that cap, your OrgAdmins get a notification.
- Keep the key out of email, tickets and chat. Paste it only into Intune.
2. Versions you need
- Chrome and Edge read the key from policy only in extension version 2.4.0 or later. That version declares the managed-storage schema browsers require before they pass a policy value to an extension. Earlier versions install and run, but devices stay disconnected until a user signs in. The Chrome Web Store updates force-installed extensions automatically, so devices move to 2.4.0 without any action from you.
- Every browser that uses an organization key needs extension version 2.5.0 or later, Firefox included, because device tokens (section 7) are always required. Older versions are refused until they update.
- Firefox reads the key from policies.json in every current version.
- The browser policies below need Edge or Chrome 128 or later (ExtensionDeveloperModeSettings) and 123 or later (ExtensionInstallTypeBlocklist).
3. Force-install the extension and keep it visible
In Intune, create a Settings catalog profile (Devices, Configuration, Create, Windows 10 and later, Settings catalog). For Edge, add Microsoft Edge, Extensions, "Configure extension management settings". For Chrome, add the same setting under Google Chrome, Extensions, after importing the Chrome ADMX templates. Paste the value for that browser as one line. A force-installed extension can't be disabled or removed by the user.
Microsoft Edge:
{"falfhokdohediejneohjlglhabjnbaon":{"installation_mode":"force_installed","update_url":"https://clients2.google.com/service/update2/crx","toolbar_state":"force_shown"}}Google Chrome:
{"falfhokdohediejneohjlglhabjnbaon":{"installation_mode":"force_installed","update_url":"https://clients2.google.com/service/update2/crx","toolbar_pin":"force_pinned"}}Optional, stricter: block every other extension too. Test this on a pilot group first, because it disables extensions users already rely on. Edge example:
{"*":{"installation_mode":"blocked"},"falfhokdohediejneohjlglhabjnbaon":{"installation_mode":"force_installed","update_url":"https://clients2.google.com/service/update2/crx","toolbar_state":"force_shown"}}Use one profile per browser for these settings. Two profiles that set the same policy show as a conflict and neither applies (see Extension via Intune, section 9.2).
4. Stop users inspecting or working around the extension
Add these settings to the same profile. The names and values are the same in Chrome and Edge.
- ExtensionDeveloperModeSettings: 1 (Disallow)
- Users can't turn on developer mode, so they can't load an unpacked copy of the extension or inspect its storage from the extensions page.
- DeveloperToolsAvailability: 0 (block developer tools on force-installed extensions), or 2 (block everywhere)
- Stops users opening developer tools on the extension's own pages, where its stored key and settings are readable.
- ExtensionInstallTypeBlocklist: command_line
- Blocks extensions loaded with a command-line switch, another way to run a modified copy.
- BrowserGuestModeEnabled: false (Disabled)
- Removes guest windows, where extensions don't run.
- IncognitoModeAvailability (Chrome) / InPrivateModeAvailability (Edge): 1 (Disabled)
- Private windows don't run extensions unless the user allows it, so browsing there isn't reported.
If your users need private windows, Edge 139 or later can keep them and still report: set MandatoryExtensionsForInPrivateNavigation to falfhokdohediejneohjlglhabjnbaon. Users then have to allow the extension in InPrivate before InPrivate opens. For Edge, leave InPrivateModeAvailability out of the profile (or set it to 0) when you use this option, because 1 turns InPrivate off whatever else is set. Chrome has no matching setting, so turn Incognito off there.
The extension reports its version, and RAIC refuses versions that are too old, but a version number can't prove which code is running. Turning off developer mode and command-line extensions (above) is what stops someone running a modified copy of the extension on a managed browser.
Browsers you don't manage don't report. Deploy the extension to every browser you allow (Firefox uses policies.json, shown in Org Settings with your key), and block unmanaged browsers with your application control tooling.
5. Give the key to the extension
Browsers hand a key to an extension through their "3rdparty" extension policy, which isn't in the Settings catalog. Custom ADMX ingestion in Intune can't write under the Microsoft policy keys Edge uses, so Microsoft's guidance is a script that writes the registry. Add this as a platform script (Devices, Scripts and remediations, Platform scripts, Add, Windows 10 and later). Set "Run this script using the logged on credentials" to No and "Run script in 64-bit PowerShell host" to Yes, and assign it to the same device group. It sets the org_key value for both Chrome and Edge.
# RAIC Shadow AI extension: organization key for Chrome and Edge.
# Run as an Intune platform script: system context, 64-bit PowerShell.
# Any failed write stops the script, so Intune reports it as failed and retries.
$ErrorActionPreference = "Stop"
$OrgKey = "raic_org_PASTE_YOUR_KEY_HERE"
$ExtensionId = "falfhokdohediejneohjlglhabjnbaon"
$Paths = @(
"HKLM:\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\$ExtensionId\policy",
"HKLM:\SOFTWARE\Policies\Microsoft\Edge\3rdparty\extensions\$ExtensionId\policy"
)
foreach ($Path in $Paths) {
New-Item -Path $Path -Force -ErrorAction Stop | Out-Null
New-ItemProperty -Path $Path -Name "org_key" -Value $OrgKey -PropertyType String -Force -ErrorAction Stop | Out-Null
}Org Settings, Browser Extension, Organization Extension Keys shows the key once, when you generate it. Generate it with deployment mode MDM and a label that says which fleet it serves. Anyone who can read Intune scripts can read the key, so limit that role.
Intune runs a platform script once per device, and again whenever you upload a changed script. That is how a rotation reaches the fleet (section 10).
6. What changes on a browser that has the key
From extension version 2.4.0, a browser that gets org_key from policy is locked to your organization.
- The extension uses only the policy key. Users can't paste a different key, disconnect the device, or sign the extension in to any RAIC account, including one in your own organization.
- A key changed by hand in the extension's storage is replaced with the policy key before anything is sent.
- Detections are reported through the organization key, without user names. This applies even when a person had signed the extension in before the policy arrived. That person's unsent detections are dropped rather than reported under your organization.
- If RAIC refuses the policy key (for example, after you revoke it), the popup shows that the browser is managed by your organization and to contact IT, with no sign-in option. The extension tries the key again every 6 hours, when the user clicks Check again, and as soon as the policy delivers a new key.
- Remove the policy value to unlock the browser.
7. Device tokens
From extension version 2.5.0, each browser swaps the organization key for its own device token the first time it connects, and sends that token from then on. The token identifies that registered browser, so revoking the browser cuts off only that browser. On versions before 3.0.0, anyone who copies the token from the browser's storage can send as that browser until it is revoked; from 3.0.0 a copied token doesn't work on another computer (see the signed requests item below). Device tokens are required on every organization key: the key on its own can only enroll a browser, not send detections, so a copied key can't write into your inventory under a device that already exists.
- There is nothing to turn on, and it can't be turned off. Every key, including a new one, requires device tokens.
- To cut off one browser, open Admin, Integrations, Browser Extension, find it under Organization key devices and choose Revoke. Its device token stops working at once and the key keeps working for every other device, so you don't need to rotate the key.
- Browsers on 2.5.0 or later enroll by themselves and keep reporting. A browser still on an older build is asked to update and doesn't report until it does. Browsers update on their own through the Chrome Web Store and Firefox add-ons.
- Organization Extension Keys has a Device tokens column. It shows how many browsers seen in the last 30 days are enrolled, for example "780 of 800 browsers enrolled". Windows agents aren't counted and keep working with the key on its own until the agent can enroll.
- Signing in to the RAIC app, and browsers connected with a person's own RAIC sign-in, aren't affected.
- A copied key can still enroll a new browser. The new-device limits in section 1 and the OrgAdmin alerts cover that, and rotating the key (section 10) ends it.
- Signed requests: from extension version 3.0.0, each browser makes its own signing key, which the browser can use but can't hand over, and signs every request with it. RAIC ties the device token (or a person's sign-in) to that key, so a token copied out of the browser is refused on any other computer. Someone with administrator rights who copies the whole browser profile isn't stopped by this.
- RAIC can require signed requests for every browser once all browsers run 3.0.0 or later. Until then, browsers on 2.5.0 keep working as before.
8. Check a pilot device
- Sync the device from Intune, then restart the browser.
- Open edge://policy or chrome://policy. Under the extension's own section (ID falfhokdohediejneohjlglhabjnbaon), org_key shows with status OK. If the extension has no section there, the device is running a version older than 2.4.0.
- Under the browser's own policies, ExtensionSettings and the settings from section 4 show OK, not Conflict or Error.
- Open the extension's popup. It shows the device as connected through organization policy.
- In Org Settings, the key's Last used time updates within a few minutes of browsing. On 2.5.0 or later, the enrolled count in the Device tokens column goes up by one for the pilot browser.
- Try to remove the extension, turn on developer mode, open a guest window, and sign out of the extension. Each one is blocked.
9. Keep an eye on the fleet
- Organization Extension Keys shows each key's last use, the number of events it has sent, how often it reached its event limit, and how many browsers are enrolled. A key that goes quiet usually means a policy stopped applying. A sudden jump can mean the key is being used somewhere it shouldn't be.
- A new-device alert when you aren't rolling out usually means the key has been copied. Rotate it (section 10).
- Detections from managed devices are tagged as coming from the organization key, so you can tell them apart from signed-in users.
- For a per-device list (versions, last seen, devices that stopped reporting), contact [email protected].
10. Rotate the organization key
Rotate every 90 days, when someone with Intune script access leaves, and straight away if you think the key has leaked. A planned rotation causes no gap in reporting.
- Generate a new MDM key in Organization Extension Keys. Give it a label with the fleet and month so it is easy to tell apart from the old one.
- Edit the platform script, replace the key, and upload it. Intune reruns a changed script on each device at its next check-in, which is usually within 8 hours. The browser switches to the new key at its next policy refresh, or when it restarts.
- Watch both keys in Organization Extension Keys. The new key's Last used starts moving and the old key's stops. Browsers enroll again under the new key on their own, so its enrolled count climbs. Wait at least 3 days so devices that were off or traveling catch up.
- Revoke the old key, with a reason. Revoking takes effect on the next call. A device still on the old key is refused and stops reporting. It reconnects by itself as soon as the script delivers the new key.
- For a suspected leak, revoke the old key straight away after uploading the new script. Devices stop reporting until the new key reaches them, so expect a gap of up to a day.
11. Take a device out of the fleet
Removing a device from the assigned group doesn't undo what the platform script wrote, so also run a second script on that device that deletes the org_key value from both registry paths. When the value disappears from policy, the extension disconnects and unlocks at the browser's next policy refresh. A user can then sign it in like an unmanaged browser. To cut off one browser straight away, for example a lost device, ask [email protected] to revoke it. That also revokes its device token.
