App Control & Advanced Hunting

Find out what App Control would block in your environment — then build a policy from what you find.

Requires Microsoft Defender for Endpoint with Advanced Hunting   ·   Advanced Hunting retains 30 days of data

The short version

Application control is the single most effective thing you can do to stop untrusted code running — and the one most organisations never finish deploying. The reason is almost always the same: nobody can answer “what will break if I turn this on?”

This page of Highwind answers that question using data your tenant is already collecting. Deploy an audit-mode policy, let it run, and every Code Integrity event lands in Advanced Hunting. Highwind pulls those events, compares them against real policy files, and tells you exactly which applications are not yet covered.

This is not only for building an allow policy. Use it to author a policy that permits software, one that blocks it, or simply to survey your estate and find out what enforcement would break — before you commit to anything.

Outcome pages 3.7.0

Advanced Hunting is still the engine, but most administrators arrive with a goal, not a query: block this, allow that, am I ready to enforce? From 3.7.0 the App Control area is organised around those goals.

MenuPageWhat it is for
InvestigateAdvanced HuntingEvents from your tenant, grouped by publisher or application, with recommended rules.
Impact ScannerWhat a policy would block, grouped by application, before you enforce it.
Enforcement ReadinessA scored readiness assessment and briefing. Each run is kept so you can see readiness move over time.
Deploy App ControlApp and File ScannerStart here: scan folders on this machine; signed files are detected and the rule levels are listed in preference order. Double-click an installed app (or Show rules) to see, copy or export its rules, or Export base policy for a ready audit-mode Default Windows policy with those rules.
AppLocker MigrationReads this PC's AppLocker rules, or an imported AppLocker XML, and shows what each becomes in App Control. Path and hash rules convert; publisher rules convert too: Find signers on this PC looks for the software, reads its signing certificate and writes a signer rule (pinned to file, product and version when the rule has them); rules whose software is not installed here stay "Needs signer". Managed installer rules stay in AppLocker; allow-all rules, user-scoped rules, exceptions, scripts and packaged apps are flagged for review. Export the converted rules as an audit-mode policy and the full overview as a report. Nothing on the PC is changed. A built-in signer database fills in publisher rules for software it has seen before, without the software on the PC; signers found on this PC are added to it, and Add signers from report teaches it from a migration report exported on another PC.
Policy Analyzer (under Policy Management)Import a folder of policy XML files and see how they work together. Checks each policy, then the whole set: base and supplemental links, a supplemental whose base is missing or does not allow supplementals, rules no signing scenario uses, user-mode and kernel-mode mix-ups, duplicate or contradicting rules, Managed Installer policies that carry their own allow-list, and what each option does. Add an audit or block event (typed in, or taken from Advanced Hunting) to see which policy made the decision and why an allow rule in another policy did not help. Every finding says why it matters, how to check it and how to fix it, with a security warning; test fixes in audit mode first. Ask Highwind AI sends the review to the assistant. Nothing on the PC is changed.
Block ApplicationsBuild a deny policy. Recommends the rule level for each application and shows the blast radius — everything else the rule would also catch — before you deploy it.
Allow ApplicationsPick applications and get a recommended allow strategy and rule level, assembled into a base or supplemental policy.
Policy ManagementRule RecommendationsRule-level advice per application, with a risk score.
EndpointPoliciesThe App Control policies active on this endpoint. Pick one from the list (base first, then its supplementals) to see its rules and signers.
EndpointDevice StatusCode Integrity policy, VBS and Smart App Control state for the selected device.

Changing policies you already have

Hiding pages. Each new page has its own visibility value (default: administrators only) — VisibilityAppControlBlockPage, …AllowPage, …ReadinessPage, …ImpactPage, …RuleRecommendationsPage, …LocalPoliciesPage. See the registry reference or the ADMX templates.

The workflow, in order

Each step depends on the one before it. Do them in this order.

  1. Sign in. Pick your cloud — Commercial, GCC, GCC‑High or DoD — then click Sign In. You need the Advanced Hunting read permission in the tenant.
  2. Load your policies first. Open the Policies drawer and choose Local active for the policies already on this machine, or Browse folder for a draft you are testing. Doing this before you query is what makes results come back already compared, instead of every row reading “Not Evaluated”.
  3. Set your scope. Last N days sets the lookback, Max caps the rows returned. Switch the view to Fleet Impact for a whole-tenant picture rather than individual events.
  4. Pick a Group by level (Fleet Impact only). Match it to the rule type you intend to write — see the table below. On a large tenant this is the single biggest lever on how much data comes back.
  5. Run the query. Results are compared against your loaded policies automatically. Read the Disposition column: Would Still Block is your work queue, Allowed is already covered.
  6. Work the list in Decisions. Record Allow / Block / Defer / Need info per application, with an owner, ticket reference and rationale. Decisions save to disk and are reapplied on future queries.
  7. Export. The Export drawer produces rule fragments or a complete policy from a template. The rollout enablement exports give you the application inventory, the publisher shortlist and a scored readiness report.
  8. Deploy in audit mode first. Let it run for at least one full patch cycle, then repeat this workflow. Only enforce once the readiness assessment shows the estate is genuinely covered.

Choosing a Group by level

One row should equal one thing you would write a rule for. Match this setting to the rule type you plan to author.

Publisher (signer)

Smallest result. One row per signer. Use when you intend to trust vendors wholesale with Publisher rules.

Publisher + product

The usual starting point. One row per product per vendor — small enough to read end to end, specific enough to decide on.

File identity

One row per distinct file, ignoring version and location. Matches FilePublisher / FileName rules and collapses per-user install paths automatically.

File + location

One row per file per folder, with user-profile paths normalised to \Users\*\. Use when authoring FilePath rules.

Hash

Largest result. Every version of every binary. Only for Hash rule authoring — expect this to be very large.

Why this matters on a large estate. The finest level keys on hash and folder path. Per-user installs such as Teams, Chrome, Zoom and VS Code live under C:\Users\<name>\AppData, so one application can produce one row per user — hundreds of thousands of rows describing a single app. Grouping at the level you will actually write rules at removes that at source, before any result-size limit is reached.
Switching Group by does not re-run the query. Results are regrouped from the data already collected, so you can look at the same pull several ways for free. One limit: grouping only runs one way. You can always go coarser, but you cannot recover detail that was discarded — asking for Hash after collecting at Publisher will prompt you to re-run rather than show something wrong. If you expect to explore, collect at a fine level once. Regrouped results are badged Regrouped locally, and comparison results are cleared because the rows changed shape.

Rule precedence — a different setting

Group by decides how rows are grouped. Rule precedence, on the right of the same toolbar, decides which rule each row is recommended. They list similar-sounding names, so they are easy to confuse — but they are independent, and precedence is the one that shapes your finished policy.

It behaves exactly like PowerShell New-CIPolicy -Level <first> -Fallback <rest>: the first level an event actually satisfies wins. Drag to re-rank, or select and use the arrows. The order is saved between sessions, and a custom badge appears whenever it differs from the recommended default.

LevelMatches onSurvives an update?
FilePublisherSigner + original file name + minimum versionYes — the usual right answer
PublisherSigner + issuing CAYes — broadest; trusts a vendor's whole catalogue
SignedVersionSigner + minimum versionYes
FileAttributePE header fields (InternalName, ProductName)Usually — good for signed files that get renamed
FileNameFile name onlyYes, but defeated by renaming a file
HashExact SHA256No — breaks on every patch
FilePathAny file in a locationYes, but only safe where standard users cannot write
The hash trap. Hash rules look like the safe choice because they are the most precise. In practice a hash-led policy is the one that gets abandoned: every Patch Tuesday invalidates it and someone has to re-author the lot. Keep signer-based levels first and let hashes catch only what is genuinely unsigned. Equally, a FilePath rule under C:\Users\ is user-writable — it effectively means "allow anything".

Recommended order, and what Reset to defaults restores: FilePublisher → Publisher → SignedVersion → FileAttribute → FileName → Hash → FilePath. After changing the order, existing results are stale until you re-evaluate — use Apply & re-compare in the same panel.

By application

Next to By publisher on the Advanced Hunting page, By application rolls events up to the application they belong to (product, major version and vendor), the same grouping the Decisions view and the Fleet portal use. Each row shows devices, files, events, would-block and allowed counts, versions and hashes seen, whether it is signed, when it was last seen, and the rules it needs. Use the arrow to show or hide its files and the rule each one gets; a hash is explained when it is used. Double-click a row, or press Rules…, to see the policy that application would produce and save it or add it to an existing policy (the policy keeps its PolicyID and only the version rises). Tick applications to export just those; with none ticked, Export uses every application in the list. Advanced Hunting does not carry every file detail, such as the signer, so press Scan… on a row to scan the application's folder on one of the devices that reported it. The scan opens in the App and File Scanner, which builds the rules from the real files using your rule order. This needs administrator access to the device's administrative share.

The App and File Scanner follows the same rule precedence. Changing the order updates the Recommend column straight away, and files reached through an administrative share such as \\localhost\C$\Program Files\… are treated as the local path, so a path rule is offered when you rank it above Hash.

Reading the Disposition column

Disposition is the result of comparing each event against the policies you loaded.

The Recommend column suggests the rule type that would authorise the file, based on the metadata the event actually carries — a signer if one exists, otherwise file attributes, a path, or a hash as a last resort.

The Decisions workbench

A rollout is not a single sitting. You pull a month of data, work through the top publishers, email four application owners, and come back on Thursday. The Decisions workbench is what lets that work accumulate instead of starting over each time.

  1. Run a query first — the workbench lists every distinct application in the results.
  2. Select a row and record a verdict: Allow, Block, Defer (waiting on a vendor or an upgrade) or Need info (waiting on an application owner).
  3. Fill in Owner, Ticket and Why before pressing the verdict button. These are typed by you — Advanced Hunting does not supply them — and they are what make the ledger an audit trail rather than a list of verdicts.
  4. Use Save notes to update the annotation on an already-decided row without changing the verdict.
  5. Decisions persist keyed by publisher + product + original file name, so they survive re-running the query, restarting Highwind, and the vendor shipping a new version.
  6. Ledger → Sync with shared ledger points at a file on a share: it reads it, merges your decisions in, writes it back and adopts the result, so several admins can work one master list. Newest decision wins per application, and genuine disagreements are reported rather than applied silently.
  7. Ledger → Export audit trail (CSV) produces the who-approved-what-and-why record for your change board.

Checking the real file 3.7.0

When the binary is on this machine, Highwind confirms it is the file the event describes (SHA-256 or Authenticode hash), verifies the signature with Windows, including catalog signing, and anchors publisher rules on the real signing certificate.

SharePoint Decision Store 3.7.0

The shared-file ledger works for two or three administrators. When the people deciding are not the people writing rules — an application owner board, a service desk — they want a list they can open in a browser. The SharePoint Decision Store keeps application-level decisions in one SharePoint Online list, synchronised with Highwind over Microsoft Graph.

Setting it up

  1. Enable the feature on the machine: HKLM\SOFTWARE\Policies\Highwind, DWORD SharePointDecisionStoreEnabled = 1 (or the ADMX setting Enable the SharePoint decision store).
  2. Sign in to Advanced Hunting in the right cloud. The same sign-in is reused for SharePoint — Highwind requests a separate Microsoft Graph token for the same account.
  3. On the Decisions page, open SharePoint ▾ → Settings… and enter the site URL (or a sharing link), the list name and the permission model.
  4. Click Create or validate list. Missing columns and indexes are added after you confirm; nothing is ever deleted.
  5. Use Synchronize now day to day. SharePoint ▾ → Sign in and test connection validates access without changing anything.
Permission modelDelegated Graph scopeApprovalReach
Selected list onlyLists.SelectedOperations.SelectedAdmin consent + a grant on each listOnly the granted list
Selected siteSites.SelectedAdmin consent + a grant on the siteOnly the granted site
My SharePoint accessSites.ReadWrite.All (sync), Sites.Manage.All (list creation only)User consentEverything the signed-in user can already edit
Prefer the narrow models. My SharePoint access needs no administrator, but the token it produces can write to every site the user can. For production, grant Selected list only or Selected site. Highwind shows the admin-consent link when consent is missing.

Turning it off: set the value back to 0. Local decisions remain in %LOCALAPPDATA%\Highwind\AppControl\decisions-{tenant}.json. Highwind never deletes SharePoint lists — remove the list, the site/list grant and the consent yourself if you no longer need them.

Advanced Hunting sign-in and permissions 3.7.0

Advanced Hunting is read-only and uses delegated permissions: Highwind queries as the person who signs in, so that person must also be allowed to run Advanced Hunting in the Microsoft Defender portal. Highwind uses a public client, so there is no client secret, and it never writes anything.

Sign-in pathResourceDelegated permission
Default (Microsoft Defender XDR)https://api.security.microsoft.comAdvancedHunting.Read
Legacy Defender for Endpointhttps://api.securitycenter.microsoft.comAdvancedQuery.Read
Microsoft Graphhttps://graph.microsoft.comThreatHunting.Read.All

GCC, GCC High and DoD use the matching sovereign hosts; pick the cloud before signing in. The sign-in window waits up to 3 minutes, then gives up. Cancel sign-in stops it sooner.

What the user sees, and where the request goes

Reviewing who has granted access

  1. Entra admin center → Enterprise applications → remove the Application type filter and search for Microsoft Graph Command Line Tools or its application ID 14d82eec-204b-4c2f-b7e8-296a70dab67e. By default Highwind signs in with this well-known Microsoft public client (the same one the Microsoft Graph PowerShell module uses), so it is not a Highwind-named app and the consent prompt carries that name. It appears under Enterprise applications only after someone in the tenant has signed in with it; if the search finds nothing, nobody has consented yet. If the Advanced Hunting settings use your own client ID, search for that instead.
  2. Open it → Permissions. The Admin consent tab lists tenant-wide grants and the User consent tab lists each user who consented individually.
  3. Or from PowerShell (Microsoft Graph module). Sign in with Connect-MgGraph -Scopes Application.Read.All,DelegatedPermissionGrant.Read.All, adding -Environment USGov (GCC High), USGovDoD or China outside the commercial cloud. These are administrator-level read scopes, so you may be asked to consent to them too. If a cmdlet fails with a vague “One or more errors occurred”, run $Error[0].Exception.InnerException.Message to see the real reason, usually insufficient privileges:
    $sp = Get-MgServicePrincipal -Filter "appId eq '14d82eec-204b-4c2f-b7e8-296a70dab67e'"
    Get-MgOauth2PermissionGrant -Filter "clientId eq '$($sp.Id)'" |
        Select-Object Id, ConsentType, PrincipalId, ResourceId, Scope
    ConsentType is AllPrincipals for admin consent and Principal for one user (PrincipalId is that user).

Granting access ahead of time (PowerShell) 3.7.0

Use this when users hit Need admin approval and your tenant has no approval workflow, or you simply want nobody to see a prompt. An administrator gives Highwind permission to run Advanced Hunting as the signed-in user. It adds no new rights: what each person can see is still set by their Defender portal role. You need the Cloud Application Administrator or Global Administrator role, and the Microsoft Graph PowerShell module (Install-Module Microsoft.Graph.Authentication, Microsoft.Graph.Applications, Microsoft.Graph.Identity.SignIns, Microsoft.Graph.Users).

Which API? Microsoft recommends the Microsoft Graph security API (runHuntingQuery, permission ThreatHunting.Read.All). Microsoft has said the older Defender XDR and Defender for Endpoint hunting APIs are being retired (retirement began January 2026, see Microsoft message center item MC1220762), so use Graph for new setups. Graph hunting is available in the commercial, GCC, GCC High and DoD clouds, but not in China. In Highwind, open the Advanced Hunting settings and choose Microsoft Graph as the sign-in path so it matches what you grant here.
Environment
API

Pick your environment and API; the commands below change to match. The client ID is the same in every step and every cloud: 14d82eec-204b-4c2f-b7e8-296a70dab67e is the Microsoft Graph Command Line Tools application, which the Graph PowerShell module itself uses in all clouds. What differs by cloud is the sign-in address, which the -Environment setting in step 1 handles. If your Advanced Hunting settings use your own client ID, put that in step 2 instead.

  1. Connect. This signs you in to your tenant as an administrator so the next steps can read and change grants. The two scopes let it manage service principals and permission grants.
    Connect-MgGraph -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
    Connect-MgGraph -Environment USGov -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
    Connect-MgGraph -Environment USGovDoD -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
    GCC uses the same addresses as commercial, so it uses this command too.
  2. Set the client and the API. The client is the app that signs users in (Highwind). The API is what it is allowed to call, and the scope is the permission on that API.
    $clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e'   # Microsoft Graph Command Line Tools
    $apiAppId    = '00000003-0000-0000-c000-000000000000'   # Microsoft Graph
    $scope       = 'ThreatHunting.Read.All'
    $clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e'   # Microsoft Graph Command Line Tools
    $apiAppId    = '8ee8fdad-f234-4243-8f3b-15c294843740'   # Microsoft Threat Protection (Defender XDR API)
    $scope       = 'AdvancedHunting.Read'
    $clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e'   # Microsoft Graph Command Line Tools
    $apiAppId    = 'fc780465-2017-40d4-a0c5-307022471b92'   # WindowsDefenderATP (Defender for Endpoint API)
    $scope       = 'AdvancedQuery.Read'
  3. Make sure both exist in your tenant. A tenant only has an app's service principal (its local entry) after someone has used it. This looks each one up and creates it if missing. Without it, the grant in step 4 has nothing to attach to.
    $client = Get-MgServicePrincipal -Filter "appId eq '$clientAppId'"
    if (-not $client) { $client = New-MgServicePrincipal -AppId $clientAppId }
    $api = Get-MgServicePrincipal -Filter "appId eq '$apiAppId'"
    if (-not $api) { $api = New-MgServicePrincipal -AppId $apiAppId }
    Microsoft Graph always exists in a tenant, so the second lookup finds it. If creating the API fails in your cloud, the API is not available there; use Microsoft Graph instead.
  4. Grant the permission. This records that Highwind may call the API on behalf of users, so they are not asked. Choose one:

    Everyone in the tenant (AllPrincipals):

    New-MgOauth2PermissionGrant -ClientId $client.Id -ConsentType AllPrincipals `
        -ResourceId $api.Id -Scope $scope

    One user only (Principal), useful for a pilot:

    $me = (Get-MgUser -UserId 'you@contoso.com').Id
    New-MgOauth2PermissionGrant -ClientId $client.Id -ConsentType Principal -PrincipalId $me `
        -ResourceId $api.Id -Scope $scope
  5. Check it. This lists the grants for the client. You should see your scope and ConsentType AllPrincipals (or Principal for the pilot). Allow a few minutes, then sign in from Highwind: there should be no prompt.
    Get-MgOauth2PermissionGrant -Filter "clientId eq '$($client.Id)'" |
        Select-Object Id, ConsentType, PrincipalId, ResourceId, Scope

If a grant for the same client and API already exists, New-MgOauth2PermissionGrant fails. Add the scope to it instead: Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId <Id> -Scope '<existing scopes> <new scope>'. Granting does not give the user a Defender portal role: they still need Security data basics → Read and device-group scope.

Removing your own grant to repeat the sign-in

  1. In Highwind, choose Sign out on the Advanced Hunting page so the saved token is dropped.
  2. Remove your consent grant:
    Connect-MgGraph -Scopes DelegatedPermissionGrant.ReadWrite.All
    $me = (Get-MgUser -UserId 'you@contoso.com').Id
    $sp = Get-MgServicePrincipal -Filter "appId eq '14d82eec-204b-4c2f-b7e8-296a70dab67e'"
    Get-MgOauth2PermissionGrant -Filter "clientId eq '$($sp.Id)' and principalId eq '$me'" |
        ForEach-Object { Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $_.Id }
  3. If an administrator granted consent for everyone, your own removal changes nothing. Remove the AllPrincipals grant the same way, or delete the enterprise application (Enterprise applications → Properties → Delete) to reset it completely. It is recreated on the next sign-in.
  4. Sign in again from Highwind to see the prompt (or the approval request) from the beginning. Allow a few minutes for the change to take effect.
Deleting the enterprise application or removing a tenant-wide grant affects every Highwind user in the tenant who signs in to Advanced Hunting. Do this in a test tenant, or tell your colleagues first.

Very large environments

Advanced Hunting has a 30-day retention, a per-query complexity limit, a response-size cap and a request rate limit. On an estate of a few hundred thousand devices, all four bite.

Watch the status bar. TRUNCATED means more distinct binaries were found than your row limit kept — raise the limit, because the rows dropped are the low-reach long tail, which is exactly what is still missing from your policy. An incomplete window warning means a 30-minute slice still exceeded the service limits; narrow the scope with a vendor or product filter and re-run.

What you can export

Where to go next

The same guidance is available inside the app: Knowledge Base → Application Control → Advanced Hunting.