,

App Control for Business: Block VS Code Forks like Cursor and VSCodium

Series1Stop malicious VS Code and browser extensions2VS Code forks and App ControlYou are here

Platforms
Windows 11
Products
IntuneDefender for Endpoint
Result
The fork extension stores are blocked, VS Code runs, every VS Code fork is blocked when it starts, including a renamed copy, and the policy applies and rolls back without a restart
App Control for Business blocking VS Code forks like Cursor and VSCodium at a gate while VS Code passes, managed with Intune and Defender

Overview

VS Code forks such as Cursor, Devin Desktop, VSCodium, Kiro and Antigravity install without admin rights and download extensions from their own stores, so the VS Code extension allowlist (AllowedExtensions) doesn’t reach them. This guide closes that gap in two steps: Defender indicators block the fork extension stores, and a deny-only App Control for Business policy from Intune blocks the forks themselves, tested in audit mode first. Every other app keeps running.

Key takeaways before you start:

  • App Control for Business is built into Windows Pro, Enterprise and Education, and Intune deploys it without a restart.
  • VS Code forks bypass the VS Code extension allowlist, because they install per user and use their own extension stores.
  • Cursor, Devin Desktop and VSCodium have their own extension allowlist policy; Kiro and Antigravity don’t. Block every editor you don’t manage with App Control.
  • An App Control policy that blocks only the forks leaves every other app running.

How App Control for Business Works

App Control for Business is the current name of Windows Defender Application Control (WDAC), built into Windows with no agent to install. A file runs only if every active policy allows it:

A rule identifies a file by its publisher certificate, which survives updates, or by file attributes such as the product name. Hash rules break with every update, and App Control ignores paths that standard users can write to. Three changes since WDAC matter for this guide:

WDAC (AppLocker CSP) App Control for Business
Several policies at once ✗ ✓ the fork block runs next to your other policies
Applies without a restart ✗ ✓ through the ApplicationControl CSP
Removed from Intune ✗ ✓ after an allow-all update

Intune deploys it from Endpoint security > App Control for Business, with built-in controls or an XML upload. This guide uses the XML upload to block only the forks. App Control doesn’t replace antivirus: Microsoft recommends running both.

What VS Code forks are and why to block them

A fork is an editor built from the open-source VS Code code: same look, same projects, same extensions, usually with its own AI features. I tested five in my lab. Cursor and Devin Desktop use their own stores built on Open VSX, VSCodium and Kiro use Open VSX directly, and Antigravity 2.x has no store. Three things make them a risk:

  • Cursor logoCursor
  • Devin Desktop logoDevin Desktop
  • VSCodium logoVSCodium
  • Kiro logoKiro
  • Antigravity logoAntigravity
  1. No admin rights needed. Cursor installs to %LOCALAPPDATA%\Programs\cursor without a UAC prompt.
  2. A different extension store. The VS Code AllowedExtensions policy doesn’t apply to it.
  3. Extensions run with the user’s rights. They can read source code, tokens and SSH keys. GlassWorm spread through Open VSX.

A VSIX that VS Code refused installed and ran in Cursor on the same device.

The previous guide, Stop malicious VS Code and browser extensions, limits VS Code, Edge and Chrome to approved extensions. A user who installs a fork gets around that allowlist. Blocking the fork’s store stops only new downloads, and installed extensions keep running, so App Control blocks the fork itself, even a renamed copy.

This guide keeps VS Code as the only allowed editor and blocks the other forks. If your developers need Cursor, set its AllowedExtensions policy first, then remove the Cursor rule. Do the extensions guide first, then this one.

Design decisions before you configure

App Control can work two ways. Most guides build a policy that allows only approved apps. For blocking a handful of apps, a policy that blocks only those apps is the safer choice:

Allow only approved apps (Intune built-in controls)

  • Runs: only Windows, Store apps and what you trust
  • Needs: an inventory of every app, the Intune managed installer and supplemental policies
  • Fits: kiosks and admin workstations

Block only the forks This guide

  • Runs: everything except the apps you deny
  • Needs: one rule per blocked app, no managed installer
  • Fits: blocking specific apps on normal devices

A managed installer, which marks apps deployed by Intune as trusted, is needed only for a policy that allows approved apps. This guide blocks only the forks, so it skips that step.

Start from Microsoft’s AllowAll.xml example policy, which allows everything, and add deny rules for the forks only. A deny rule always wins over an allow rule, so the forks are blocked and every other app keeps running. Each fork gets the rule type its signature allows:

Fork Signature Deny rule
Kiro Amazon.com, Inc. Publisher
Devin Desktop Exafunction, Inc. (Microsoft ID Verified, short-lived) Publisher
Cursor Certificate changes every few days File Attributes
VSCodium Algorithm App Control doesn’t support File Attributes
Antigravity Unsigned File Attributes

App Control has no per-user rules: a policy applies to the whole device. If one developer must keep Cursor, exclude that developer’s device from the assignment, not the user account.

The policy also changes PowerShell, which matters to admins who troubleshoot these devices by hand. AllowAll.xml keeps script enforcement on, so commands typed in a PowerShell window run in Constrained Language mode, where most .NET and COM calls fail. Script files still run in Full Language mode, and the Intune remediation ran as usual:

PowerShell on a device with the App Control policy: typed command returns ConstrainedLanguage, a script file returns FullLanguage
A typed command returns ConstrainedLanguage; the same check in a script file returns FullLanguage.

If admins need full interactive PowerShell on these devices, set option 11, Disabled:Script Enforcement, before you upload the policy.

Prerequisites

Before you start, check that you have the following.

What you need

checked 11/2026

Area What you need Docs
Licence App Control: Windows Pro, Enterprise or Education (included)
Intune: Intune Plan 1
Indicators and KQL queries: Defender for Endpoint Plan 2
Intune Remediations: Windows Enterprise E3 or E5 per user
App ControlRemediations
Admin role Intune Administrator, or a role with the App Control for Business permission. Security Reader for advanced hunting, Security Administrator for the indicators and the custom detection rule. Roles
Device Windows 11 Pro, Enterprise or Education, enrolled in Intune and onboarded to Defender. Co-managed devices: Endpoint Protection workload set to Intune. Devices
Reference device A test device with the App Control Policy Wizard and every fork you want to block installed. Wizard

Configuration

You configure two things: Defender indicators that block the extension stores of the forks, and an App Control policy in Intune that blocks the forks themselves.

The order keeps users working while you close the gap. First you find who already uses a fork, so the block doesn’t break anyone’s work on day one. The store block comes next: it doesn’t depend on the policy and stops new extension downloads while you build and test it. The policy then runs in audit mode, and you enforce it only after the audit events show that it stops the forks and nothing else. The last steps add an alert when a fork is installed and show how to roll the policy back without a restart.

Find Who Uses a Fork

Defender portal

Intune admin center

Before you block anything, find out who already uses a fork, or the block breaks their work on day one. In the Defender portal, Endpoints > Vulnerability management > Inventories > Software shows each editor with its version and devices. The software inventory also sees per-user installs (their names end in _(user)), so one query in Hunting > Advanced hunting counts the devices for every editor:

DeviceTvmSoftwareInventory
| where OSPlatform startswith "Windows"
| where SoftwareVendor in~ ("microsoft", "anysphere", "todesktop", "exafunction", "codeium", "vscodium", "amazon", "google")
| where SoftwareName has_any ("visual_studio_code", "cursor", "windsurf", "devin", "vscodium", "kiro", "antigravity")
| extend Editor = case(
    SoftwareName has "visual_studio_code", "VS Code",
    SoftwareName has "cursor", "Cursor",
    SoftwareName has_any ("windsurf", "devin"), "Devin Desktop",
    SoftwareName has "vscodium", "VSCodium",
    SoftwareName has "kiro_cli", "Kiro CLI",
    SoftwareName has "kiro", "Kiro",
    "Antigravity IDE")
| summarize Devices = dcount(DeviceId) by Editor
| order by Devices desc

Tell the users on that list before the block reaches them, and agree on VS Code as the replacement.

The software inventory shows which editors are installed, not which extensions run in them. To list the extensions per user and editor, go to Devices > Manage devices > Scripts and remediations > Remediations > Create in the Intune admin center and add this detection script, with no remediation script. It reads the extension folders of VS Code and of every fork:

Detection script: VS Code and fork extensions (PowerShell)
<#
.SYNOPSIS
    Intune Remediations detection script: VS Code and fork extensions per user profile.
.NOTES
    Version: 9. Run as System, 64-bit PowerShell. Read-only, always exits 0:
    check the "Scan:" status at the start of the output (2048 characters max).
#>
$ErrorActionPreference = 'Stop'
$editors = [ordered]@{
    '.vscode' = 'VSCode'; '.cursor' = 'Cursor'; '.devin' = 'Devin'; '.windsurf' = 'Windsurf'
    '.vscode-oss' = 'VSCodium'; '.kiro' = 'Kiro'; '.antigravity-ide' = 'Antigravity'
}
$link = [IO.FileAttributes]::ReparsePoint
# <publisher>.<name>-<version>[-<platform>]
$idPattern = '^(?<id>[a-z0-9][a-z0-9_-]*\.[a-z0-9][a-z0-9_-]*)-\d+\.\d+\.\d+([.+_-][a-z0-9.+_-]*)?$'
$errors = 0; $skipped = 0; $checked = 0; $missing = 0; $unknown = 0
$details = [Collections.Generic.List[object]]::new()
$allIds = [Collections.Generic.List[string]]::new()

try {
    # Local/AD (S-1-5-21) and Entra ID (S-1-12-1) profiles
    $profiles = @(Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' |
        Where-Object { $_.PSChildName -match '^S-1-(5-21|12-1)-' } |
        ForEach-Object { $_.GetValue('ProfileImagePath') } | Where-Object { $_ } | Sort-Object -Unique)

    # VS Code: system and per-user install
    $vscLine = 'VS Code installed: not found in checked locations'
    $candidates = @(@($env:ProgramW6432, $env:ProgramFiles, ${env:ProgramFiles(x86)}) | Where-Object { $_ } |
            ForEach-Object { Join-Path $_ 'Microsoft VS Code\Code.exe' }) +
        @($profiles | ForEach-Object { Join-Path $_ 'AppData\Local\Programs\Microsoft VS Code\Code.exe' })
    foreach ($exe in $candidates) {
        try {
            if (Test-Path -LiteralPath $exe -PathType Leaf) {
                $vscLine = "VS Code installed: yes ($((Get-Item -LiteralPath $exe).VersionInfo.ProductVersion))"
                break
            }
        } catch { $errors++ }
    }

    foreach ($profilePath in $profiles) {
        if (-not (Test-Path -LiteralPath $profilePath -PathType Container)) { $missing++; continue }
        $checked++
        $user = Split-Path $profilePath -Leaf
        foreach ($e in $editors.Keys) {
            # Errors are counted per editor folder, the scan continues
            try {
                $dir = Join-Path $profilePath "$e\extensions"
                if (-not (Test-Path -LiteralPath $dir -PathType Container)) { continue }
                if ((Get-Item -LiteralPath $dir -Force).Attributes -band $link) { $skipped++; continue }
                # .obsolete = uninstalled, folder not removed yet
                $obsolete = @()
                $obsFile = Join-Path $dir '.obsolete'
                try {
                    if (Test-Path -LiteralPath $obsFile -PathType Leaf) {
                        $obsolete = @((Get-Content -LiteralPath $obsFile -Raw -Encoding UTF8 | ConvertFrom-Json).PSObject.Properties.Name)
                    }
                } catch { $errors++ }
                $ids = @(Get-ChildItem -LiteralPath $dir -Directory -Force |
                    Where-Object { $obsolete -notcontains $_.Name } | ForEach-Object {
                        if ($_.Attributes -band $link) { $skipped++ }
                        elseif ($_.Name -match $idPattern) { $Matches.id.ToLower() }
                        else { $unknown++ }
                    } | Sort-Object -Unique)
                foreach ($id in $ids) { $allIds.Add($id) }
                $details.Add([pscustomobject]@{ Label = "$user/$($editors[$e])"; Ids = $ids })
            } catch { $errors++ }
        }
    }

    if ($errors -or $skipped) { $status = "partial ($errors errors, $skipped links skipped)" } else { $status = 'complete' }
    $out = "Scan: $status, profiles $checked checked, $missing missing"
    if ($unknown) { $out += ", $unknown unrecognised folders" }
    $out += " | $vscLine"
    if ($allIds.Count) {
        # Installs per publisher (user x editor)
        $pubs = $allIds | ForEach-Object { $_.Split('.')[0] } | Group-Object | Sort-Object Count -Descending |
            ForEach-Object { "$($_.Name) $($_.Count)" }
        $out += " | Extensions: $($allIds.Count) | Publishers (installs): " + ($pubs -join ', ')
    }
    if (-not $details.Count) {
        if ($errors -or $skipped) { $out += ' | No results: check errors and skipped links' }
        else { $out += ' | No editor extensions found in checked locations' }
    } else {
        $out += ' | Counts: ' + (($details | ForEach-Object { "$($_.Label) $($_.Ids.Count)" }) -join ', ')
        foreach ($d in $details) { if ($d.Ids.Count) { $out += " | $($d.Label): " + ($d.Ids -join ', ') } }
        if ($out.Length -gt 1980) { $out = $out.Substring(0, 1960) + ' | Truncated: yes' } else { $out += ' | Truncated: no' }
    }
    Write-Output $out
} catch {
    # A failed scan must not look like "nothing found"
    $msg = ($_.Exception.Message -replace '[\|;\r\n\t]', ' ' -replace '\s+', ' ').Trim()
    Write-Output "Scan: failed | $($msg.Substring(0, [Math]::Min(300, $msg.Length)))"
}
exit 0
  • Run this script using the logged-on credentials: No, so it runs as System and can read every user profile.
  • Run script in 64-bit PowerShell: Yes, so it finds VS Code under the 64-bit Program Files folder.
  • Schedule: Daily, because the extension list changes slowly.

The script only reads and always exits with 0, so Intune never runs a remediation. The list shows up per device in the Pre-remediation detection output column: first the scan status (complete or partial), then whether VS Code is installed and the installs per publisher, then the extensions per user and editor. A fork with extensions in this list is in use: tell its user before the block reaches the device.

Intune remediation device status with the Pre-remediation detection output panel: scan status, VS Code installed, installs per publisher, then the extensions per user and editor
Pre-remediation detection output for one device.

On Windows, Antigravity installs Antigravity.exe in the antigravity folder, while older installs run Antigravity IDE.exe. The queries in this guide list both names.

Block Fork Extension Stores

Defender portal

Intune admin center

Forks don’t download extensions from the Visual Studio Marketplace, so the VS Code allowlist doesn’t reach their stores: open-vsx.org (VSCodium, Kiro), marketplace.cursorapi.com and marketplace.cursor-cdn.com (Cursor) and marketplace.windsurf.com (Devin Desktop). Cursor needs both domains: the store lists extensions on one and downloads the files from the other. GlassWorm spread through Open VSX. Blocking these stores stops new extensions in every fork while you build the App Control policy.

Before you block the stores, check who downloads from them. This query shows which apps download from Open VSX or from the Cursor and Devin Desktop stores built on it. Proxy and tunnel agents are left out, because they hide the app behind them.

DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteUrl has_any ("open-vsx.org", "openvsx", "marketplace.cursorapi.com", "marketplace.cursor-cdn.com", "marketplace.windsurf.com")
| extend Proc = tolower(InitiatingProcessFileName), User = tolower(InitiatingProcessAccountName)
| where isnotempty(Proc) and not(Proc contains "tunnel" or Proc contains "proxy")
| extend Client = case(
    Proc has_any ("chrome", "msedge", "firefox", "safari", "brave"), "Browser",
    Proc startswith "code", "VS Code (check its gallery setting)",
    Proc has_any ("cursor", "devin", "windsurf", "vscodium", "kiro", "antigravity", "theiaide"), "Fork",
    "Other app")
| summarize Devices = dcount(DeviceId), Users = dcount(User), Apps = make_set(Proc, 15) by Client
| order by Devices desc

VS Code itself should never show up here: it uses the Visual Studio Marketplace, so a hit means a changed gallery setting or a fork renamed to Code. Other app lists anything else that downloads from these stores, such as a tool with its own editor built in: check what it is before you block it.

Advanced hunting keeps network events for 30 days, so a fork that nobody has opened for a month doesn’t show up.

Domain indicators need two switches before they block anything. In the Defender portal, go to Settings > Endpoints > General > Optional features and turn on Custom network indicators. In Intune, set Enable Network Protection to Enabled (block mode) in an Endpoint security > Antivirus policy. Network protection covers every process, not only the browser, so it also covers the fork and its extension host.

Microsoft Defender Settings, Endpoints, Optional features: Custom network indicators turned On
Defender: Custom network indicators On.
Intune Endpoint security Antivirus policy: Enable Network Protection set to Enabled (block mode)
Intune Antivirus policy: Enable Network Protection in block mode.

Then go to Settings > Endpoints > Indicators > URLs/Domains in the Defender portal and add an indicator with the action Block execution for each of the four store domains. Block all four: Cursor and Devin Desktop don’t use Open VSX directly.

URL/Domain Fork Title
open-vsx.org VSCodium, Kiro Block Open VSX extension store
marketplace.cursorapi.com Cursor Block Cursor extension store
marketplace.cursor-cdn.com Cursor Block Cursor extension store
marketplace.windsurf.com Devin Desktop Block Devin Desktop extension store

Create one indicator per row. The screenshots show the Cursor indicator; the other three differ only in the domain and the title.

Indicator page. Enter the domain and the title from the table and leave Expires on at Never, so the store stays blocked until you delete the indicator. For the description, use this text with the fork name in place of <fork>:

Blocks the <fork> extension store. <fork> is a VS Code fork and ignores the VS Code extension allowlist.

Defender Add Indicator, Indicator step: domain marketplace.cursorapi.com, title and description of the Cursor extension store indicator
Add item on the URLs/Domains tab: the domain, title and description.

Action page. Select Block execution, turn on Generate alert, and set the severity to High and the category to Unwanted software. A block then raises an alert that names the device and the user, so you see who still tries to reach the store. For the recommended actions, use this text:

Check who uses <fork> on this device. Move the user to VS Code with approved extensions, or set the fork’s own extension policy if the fork is approved.

Defender Add Indicator, Action step: Block execution selected
The Action page: Block execution.
Defender Add Indicator, alert details: severity High, category Unwanted software, recommended actions
Alert details on the same page: severity, category and recommended actions.

Organizational scope page. Select All devices in my organization. VS Code doesn’t use these stores, so the block doesn’t affect it.

Defender Add Indicator, Organizational scope step: All devices in my organization
The Organizational scope page: all devices.

Check. Back on the URLs/Domains tab, search for extension store to check that all four indicators are there with Block execution.

Defender Indicators, URLs/Domains tab: open-vsx.org, marketplace.cursorapi.com, marketplace.cursor-cdn.com and marketplace.windsurf.com with the action Block execution
All four store domains on the URLs/Domains tab with the action Block execution.

Enter the domain, not a full URL. Outside Edge, Defender sees only the domain of an HTTPS connection, so an indicator with a path blocks only in Edge, and forks aren’t Edge. A new indicator usually blocks within two hours; Microsoft allows up to 48 hours. The store block doesn’t stop a fork that is already installed: it keeps running with the extensions it has. The App Control policy below blocks the app itself.

Build the App Control Policy

Intune admin center

Check the signer first. It decides the rule type, and a fake installer can copy the name and the icon, but not the vendor’s signature. I read these values from the current installers on 28 October 2026:

Editor Windows signer Install folder Extensions folder
VS Code Microsoft Corporation Microsoft VS Code .vscode
Cursor Anysphere, Inc. cursor .cursor
Devin Desktop Exafunction, Inc. Devin .devin
VSCodium SignPath Foundation VSCodium .vscode-oss
Kiro Amazon.com, Inc. Kiro .kiro
Antigravity Google LLC antigravity .antigravity-ide

Install folders sit under %LOCALAPPDATA%\Programs, extension folders under %USERPROFILE%, for example %USERPROFILE%\.cursor\extensions. Older Devin Desktop installs still use .windsurf.

(Get-AuthenticodeSignature "$env:LOCALAPPDATA\Programs\cursor\Cursor.exe").SignerCertificate.Subject

Cursor and Devin Desktop use certificates that are valid for only a few days, so a rule must use the product name or a stable CA, never the certificate thumbprint.

The App Control Policy Wizard is Microsoft’s free tool for App Control policies. Run it on a device where the forks are installed, because every rule needs the real exe as a reference file.

  • Policy Editor, open C:\Windows\schemas\CodeIntegrity\ExamplePolicies\AllowAll.xml and give the policy a name.
  • Policy Rules, settings 1 and 2 in the screenshots below.
  • File Rules, + Add Custom, Deny, one rule per fork: a Publisher rule for Kiro and Devin Desktop (tick publisher, product name and file name), and a File Attributes rule on product name for Cursor, VSCodium and Antigravity.
  • Save without the recommended block rules (4), for example as BlockForks.xml. The Wizard writes the XML and a binary .cip file; Intune needs the XML, and the commands in the next steps use this file name.
App Control Policy Wizard, Policy Rules page: Audit Mode turned off (1), Update Policy without Rebooting turned on (2)
Policy Rules: Audit Mode off, update without reboot on.
App Control Policy Wizard, File Rules page: Deny rules for Devin, Kiro, VSCodium, Antigravity and Cursor (3), both Merge with Recommended Block Rules options cleared (4)
File Rules: Deny rules, no merge with the recommended rules.
  1. Audit Mode off. This is the enforced version; you turn audit on only for the first upload, in the audit deployment below.
  2. Update Policy without Rebooting on, so the policy applies without a restart.
  3. Deny rules, one per fork.
  4. Both Merge with Recommended Block Rules options cleared.
App Control Wizard custom rule for Devin.exe: Deny, Publisher rule with publisher, product name and file name ticked
Devin Desktop: Publisher rule with product name.
App Control Wizard custom rule for VSCodium.exe: Deny, File Attributes rule on product name VSCodium
VSCodium: File Attributes rule.

Four things in the Wizard catch you out:

  • Tick product name. Electron forks keep electron.exe as the original file name. A rule on publisher and file name alone blocks every Electron app from that publisher. Product name limits the rule to the fork, and it still blocks a renamed copy.
  • Block every version. A deny rule with a minimum version blocks that version and lower, so the next update runs. Use 65535.65535.65535.65535, as Microsoft’s recommended block rules do. The Wizard rejects that value, so clear Version in the Wizard and set MinimumFileVersion="65535.65535.65535.65535" in the XML.
  • Remove the quotes from the publisher. The Wizard copies the publisher with its quotes, for example CertPublisher Value="&quot;Amazon.com, Inc.&quot;". That value never matches, and Kiro kept running until I changed it to Amazon.com, Inc..
  • Check the XML before you upload it. In one test the Wizard dropped the Antigravity rule from the saved XML and turned one VSCodium rule into Allow. Check that each fork has a Deny or a DeniedSigner entry, and that <Rules> has Enabled:Update Policy No Reboot. If it’s missing, add it with Set-RuleOption -FilePath .\BlockForks.xml -Option 16.

Devin Desktop is signed with a short-lived Microsoft ID Verified certificate. The Wizard pins the rule to Microsoft ID Verified Code Signing PCA 2021, above the issuing CAs that rotate, so the rule survives new certificates.

Deploy in Audit Mode, then Block

Intune admin center

You deploy one policy and change it twice: first in audit mode, then enforced. Both versions keep the same PolicyID, so the device replaces the policy in place.

  • On your admin PC, turn audit mode on in the XML: Set-RuleOption -FilePath .\BlockForks.xml -Option 3.
  • Endpoint security > App Control for Business > Create Policy, platform Windows.
  • Configuration settings format, Enter xml data, then paste or upload the audit XML.
  • Assign it to a device group.
Intune App Control for Business policy: Configuration settings format with the options Use built-in controls and Enter xml data
Configuration settings format: Enter xml data.
Intune Endpoint security, App Control for Business: the block policy for VS Code forks in the policy list, assigned
The policy in App Control for Business.
Intune App Control for Business policy overview: device check-in status Succeeded 2
Succeeded on the assigned devices.

Step 2. In audit mode the policy blocks nothing. Every time a fork starts, the device logs event 3076 in Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational, and Defender shows the same events in Advanced hunting.

Step 3. On your admin PC, remove audit mode and raise the version. The ConfigCI cmdlets ship with Windows:

Set-RuleOption -FilePath .\BlockForks.xml -Option 3 -Delete
Set-CIPolicyVersion -FilePath .\BlockForks.xml -Version "1.0.0.1"

Microsoft recommends two ways to change these rule options: the cmdlets above or the App Control Wizard (Policy Editor > Audit Mode), which raises the version when it saves. Change the rule options this way, not by editing the option lines in the XML.

Open the same Intune policy, Properties > Configuration settings > Edit, and upload the new XML. After the next sync the device replaces the audit version with the enforced one, without a restart. Keep the PolicyID; a new PolicyID would add a second policy instead of replacing the first.

Intune App Control for Business policy, XML view: the Deny and DeniedSigner entries for Cursor, VSCodium, Antigravity, Kiro and Devin highlighted
The enforced XML in Intune: one deny entry per fork.

Other App Control policies can stay. A file must pass every enforced policy, so the deny rules win.

Alert When a Fork Is Installed

Defender portal

The block stops a fork from starting, but it’s worth knowing who tried to install one, also on devices the policy hasn’t reached yet. Fork installers write the new exe under a temporary name and then rename it (the Cursor installer turns is-XXXXX.tmp into Cursor.exe), so the rule watches renamed files as well as created ones, in any folder. That also catches portable copies in Downloads or OneDrive. The query also matches every reinstall and every update of a fork that is already installed, but Defender doesn’t raise a new alert for each match: in my lab the Cursor updates on the same device matched the query and raised no new alert. A fork that was installed before you created the rule raises no alert at all: the inventory query in Find Who Uses a Fork lists those devices.

In the Defender portal, go to Investigation & response > Hunting > Custom detection rules, select Create, and paste this query:

DeviceFileEvents
| where ActionType in ("FileCreated", "FileRenamed")
| where FileName in~ ("Cursor.exe", "Windsurf.exe", "Devin.exe", "VSCodium.exe", "Kiro.exe", "Antigravity IDE.exe", "Antigravity.exe")
| project Timestamp, DeviceId, DeviceName, ReportId, ActionType, FileName, FolderPath, SHA256, InitiatingProcessFileName, InitiatingProcessAccountUpn

NRT works here because the query uses one table, no joins and no comments. Fill in the wizard with these values:

Page Setting Value
General Detection name Windows – VS Code fork installed
General Frequency Continuous (NRT)
Alert settings Alert title VS Code fork installed on {{DeviceName}}
Alert settings Severity, category Medium, Execution
Alert settings Entity mapping Device, identifier DeviceId, column DeviceId
Automated actions Devices Run antivirus scan
Scope Device groups All devices
Defender custom detection wizard, General page: detection name, description, rule query and Continuous (NRT) frequency
The General page: name, description, the query and Continuous (NRT).
Defender custom detection wizard, Alert settings: alert title and description with DeviceName and FileName placeholders
Alert settings: {{DeviceName}} puts the device in the title, {{FileName}} puts the fork in the description.
Defender custom detection wizard, Entity mapping: impacted asset Device, identifier DeviceId, column DeviceId
Entity mapping: the device, so the antivirus scan knows where to run.
Defender custom detection wizard, Automated actions: Run antivirus scan selected for devices
Automated actions: Run antivirus scan on the device.
Defender custom detection wizard, Scope: All devices selected
Scope: All devices, so the rule also covers devices without the block policy.

To get these alerts by email, add a rule under Settings > Endpoints > Email notifications.

Roll Back Without a Restart (optional)

Intune admin center

If you delete the policy in Intune or remove its assignment, the device removes it, but the block stays in effect until the next restart. To roll back at once, replace the policy with an allow-all version first:

  • Copy the block XML, remove the deny rules, keep the PolicyID and raise the version.
  • Upload it to the same Intune policy. After the next sync the forks start again, without a restart.
  • Then delete the policy or remove the assignment.

To block again, upload the block XML with a higher version than the allow-all one.

Test Results

Scenario What blocked it What the user saw
Connection to open-vsx.org Defender domain indicator VSCodium can’t fetch extensions
Extension install in Cursor Defender domain indicators for marketplace.cursorapi.com and marketplace.cursor-cdn.com Error while installing ‘<extension>’ extension; extension pages don’t open
Extension search in Devin Desktop Defender domain indicators for marketplace.windsurf.com and open-vsx.org Error while fetching extensions. Failed to fetch
Cursor, VSCodium and Antigravity started with the policy in audit mode Nothing, audit only The forks start; event 3076 on the device and an audited event in Defender
Audit version replaced by the enforced version Update Policy without Rebooting Block after the next sync, no restart
Cursor, Kiro, Devin Desktop, VSCodium and Antigravity started with the policy enforced, also Kiro2.exe, a renamed copy of Kiro App Control deny rules on publisher or product name Block message Your organization used App Control for Business to block this app
VS Code on the same device Nothing, not denied VS Code starts as usual
Fork installed per user (Cursor, Kiro, a renamed Kiro copy, Devin Desktop, VSCodium, Antigravity) Custom detection rule Nothing; the admin got an alert and the rule started an antivirus scan on the device
Rollback to the allow-all version, then block again Same PolicyID, higher version Cursor starts, then is blocked again, no restart

Fork Stores Blocked

Forks could no longer download extensions. After the open-vsx.org indicator reached the device, VSCodium couldn’t load its extension list, so nothing from Open VSX could be installed.

VSCodium Extensions view showing Error while fetching extensions. Failed to fetch, after the open-vsx.org block indicator reached the device
VSCodium: the extension list fails to load.

Cursor stopped installing extensions once both Cursor indicators reached the device. With only marketplace.cursorapi.com blocked, Cursor still installed extensions, because it downloads the files from marketplace.cursor-cdn.com. With both blocked, extension pages failed to open and every install ended with an error. Cursor then offers Try Downloading Manually, which asks for a VSIX file from disk. A user who gets the file elsewhere can still install it, so the store block isn’t enough on its own: the App Control policy closes this gap by blocking Cursor itself.

Cursor on a Windows 11 test device after the store indicators: the extension page fails with The editor could not be opened due to an unexpected error, and installing Notepad++ keymap fails with Error while installing extension
Cursor: the extension page and the install both fail.

Audit Mode: Forks Logged, Not Blocked

In audit mode every fork still started. The device logged event 3076 for each one, and Defender listed the same starts as audited. The audit events showed only the forks, so the policy was ready to enforce.

Event Viewer, CodeIntegrity Operational log: event 3076 for Cursor.exe, the policy Windows App Control - Block VS Code forks would have blocked it
On the device: event 3076 for Cursor.
Defender Advanced hunting: AppControlCodeIntegrityPolicyAudited events for Antigravity, VSCodium and Cursor from the Block VS Code forks policy
In Defender: audited forks on all devices.

Forks Blocked When They Start

With the policy enforced, every fork stops before it opens and Windows shows the block message. The rule checks the product name, so a renamed copy is blocked too. Here Kiro2.exe, a copy of Kiro:

Windows 11 test device: double-click on Kiro2.exe in File Explorer opens the message Your organization used App Control for Business to block this app, with the path of Kiro2.exe
▶ Clip · 0:08Double-click on Kiro2.exe: App Control blocks it.

The device logs event 3077 with the name of the policy that blocked the file, and Defender showed the same block a few minutes later:

Event Viewer, CodeIntegrity Operational log: event 3077 for Cursor.exe blocked by the policy Windows App Control - Block VS Code forks
Event 3077: Cursor blocked by the fork policy.
Defender advanced hunting: the query returns Cursor.exe blocked and the fork files audited by the Block VS Code forks policy
Advanced hunting: Cursor blocked, the audit events below it.

The Defender query lists what the policy logged in audit mode and what it blocked when enforced, with the user who started the fork:

DeviceEvents
| where Timestamp > ago(7d)
| where ActionType in ("AppControlCodeIntegrityPolicyBlocked", "AppControlCodeIntegrityPolicyAudited")
| extend PolicyName = tostring(parse_json(AdditionalFields).PolicyName)
| where PolicyName has "VS Code forks"
| project Timestamp, DeviceName, ActionType, FileName, FolderPath, PolicyName, InitiatingProcessAccountName
| order by Timestamp desc

Change "VS Code forks" to the name of your policy. On the device, CiTool.exe -lp lists the active policies with their version; the block policy shows Is Currently Enforced: true.

Install Alert and Antivirus Scan

The install alert fires on the step where VSCodiumUserSetup-x64-1.143.17232.tmp renames the file to VSCodium.exe, about a minute and a half after the install started.

Defender alert timeline: the VSCodium installer renames its temporary file to VSCodium.exe and the VS Code fork installed alert fires
Alert on the rename.
Defender custom detection rule Windows - VS Code fork installed, Triggered actions tab: Run antivirus scan submitted
Scan started by the rule.

The scan shows on the rule page under Hunting > Custom detection rules > Triggered actions. The alert page and the Action center history don’t list it, so check the result there.

Rollback Without a Restart

Rollback: after the allow-all version 1.0.3.8 synced, CiTool showed it enforced and Cursor started, without a restart.

Block again: version 1.0.3.9 with the deny rules blocked Cursor after the next sync, again without a restart.

Windows 11 test device: CiTool shows the fork policy at version 1.0.3.8 (allow-all) enforced, and Cursor is running
Allow-all version 1.0.3.8: Cursor runs again.
Cursor blocked again by App Control after the policy version 1.0.3.9 was synced, CiTool shows version 1.0.3.9 enforced
Version 1.0.3.9: Cursor blocked again.

Troubleshooting

Where to look

  • Device: CiTool.exe -lp lists the active policies, their version and whether each one is enforced.
  • Event Viewer: Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational. Event 3077 is a block by an enforced policy, 3076 a block an audit policy would make.
  • Event Viewer: Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. Event 1126 is a store connection blocked by network protection, 1125 one it only audited.
  • Advanced hunting: a store block is a DeviceEvents row with ActionType ExploitGuardNetworkProtectionBlocked. ResponseCategory CustomBlockList in AdditionalFields means your indicator made the block.
  • Intune: the device status of the App Control policy shows whether the device applied it.
  • Defender: the editor inventory query, the store query and the blocked-apps query, and Hunting > Custom detection rules > Triggered actions for the scan the install alert started.

Common problems

Domain indicator doesn’t block

CauseCustom network indicators are off, network protection runs in audit mode, or the indicator hasn’t reached the device yet

FixTurn on Custom network indicators, set network protection to block, then wait: most blocks apply within two hours, some take up to 48. To test on the device, run Invoke-WebRequest https://marketplace.cursorapi.com -UseBasicParsing: once the block applies, it fails with Could not create SSL/TLS secure channel

The store shows ConnectionSuccess although it’s blocked

CauseThe connection opens first; network protection reads the domain during the TLS handshake and then cuts it, so DeviceNetworkEvents still logs ConnectionSuccess

FixCheck DeviceEvents for ExploitGuardNetworkProtectionBlocked instead. That row, with the alert from the indicator, is the proof of the block

A fork still starts

CauseThe publisher value still has the quotes the Wizard copied, the Wizard dropped the rule from the saved XML, or the policy is still in audit mode

FixCheck the deny rules in the saved XML (one rule per fork, publisher value without quotes), and check that Enabled:Audit Mode is gone

The new version doesn’t apply

CauseThe version wasn’t raised, or the XML has a new PolicyID

FixKeep the PolicyID, raise the version with Set-CIPolicyVersion, sync the device and check the version with CiTool.exe -lp

Other Electron apps are blocked too

CauseThe Publisher rule uses publisher and file name only, and the file name is electron.exe

FixTick product name in the rule

Summary

VS Code forks install without admin rights and ignore the VS Code extension policy. Defender indicators block the extension stores they download from, and a deny-only App Control for Business policy, built on Microsoft’s allow-all example and deployed from Intune, blocks each fork by product name, with the publisher where its signature allows it, including renamed copies and future versions, while every other app keeps running. Deploy it in audit mode first, then enforce the same policy, and roll back with an allow-all version; none of these steps needs a restart.

Sources