Security Overview
This document provides full security documentation for the App Store for Intune, including all Azure resources created, permissions granted, and security configurations. It is intended to assist security teams with reviews and compliance requirements.
Table of contents
Section titled “Table of contents”- Azure resources created
- Identity and access management
- Microsoft Entra ID app registration
- Managed identity configuration
- Network security
- Data protection
- Authentication flow
- Authorization model
- Audit logging
- Security checklist
- Package verification
Azure resources created
Section titled “Azure resources created”The ARM template deploys the following resources:
| Resource Type | Name Pattern | Purpose |
|---|---|---|
| App Service Plan | asp-apprequest-{env} | Hosts the web application |
| App Service | apprequest-{env}-{unique} | ASP.NET Core API + React SPA |
| Azure Key Vault | kv-appreq-{unique} | Secure secret storage |
| SQL Server | sql-apprequest-{env}-{unique} | Database server |
| SQL Database | AppRequestPortal | Application data storage |
| Storage Account | stappreq{unique} | Queue + blob storage for packaging |
| Application Insights | ai-apprequest-{env} | Application monitoring |
| Log Analytics Workspace | la-apprequest-{env} | Centralized logging |
| Azure Bot | bot-apprequest-{env}-{unique} | Teams proactive messaging (optional) |
| Bot Teams Channel | {bot}/MsTeamsChannel | Enables Teams communication (optional) |
Resource configuration details
Section titled “Resource configuration details”App Service
Section titled “App Service”- Runtime: .NET 8.0 on Linux
- TLS Version: Minimum TLS 1.2 enforced
- HTTPS Only: Enabled (HTTP redirects to HTTPS)
- FTPS State: Disabled (no FTP access)
- Client Affinity: Disabled (stateless application)
- Always On: Enabled (prevents cold starts)
SQL Server
Section titled “SQL Server”- TLS Version: Minimum TLS 1.2
- Firewall: One rule,
AllowAzureServices(start and end address 0.0.0.0), which admits connections from any Azure-hosted source. See SQL Server firewall. - Authentication: SQL authentication (username/password)
Azure Bot (optional)
Section titled “Azure Bot (optional)”- SKU: F0 (Free)
- Location: Global
- App Type: UserAssignedMSI
- Microsoft App ID: the client ID of the bot’s own user-assigned managed identity (
Bot:UamiClientId). The deployment always creates this identity and attaches it to the App Service. It creates the Azure Bot only when the Teams bot is enabled. - Messaging Endpoint:
https://{app-url}/api/messages - Channels: Microsoft Teams only
- Authentication: Bot Framework handles its own authentication via
ConfigurationBotFrameworkAuthentication, using that managed identity
Bot Framework Authentication Model:
- As of v1.33.0 the Azure Bot resource uses a dedicated user-assigned managed identity. It does not use the portal app registration, and there is no client secret in this path.
- That identity holds no Microsoft Graph or Intune permissions. It authenticates to Bot Framework and nothing else. Expanding the group behind a notification is done by the App Service’s system-assigned managed identity, like every other Graph call.
- Proactive messages are sent via
BotAdapter.ContinueConversationAsyncorCreateConversationAsync, authenticated with the same managed identity - No additional Microsoft Graph API permissions are required for Teams bot notifications. Bot Framework handles its own auth channel.
Data stored:
BotConversationReferencestable stores per-user conversation references for proactive messaging- Contains: User ID (Microsoft Entra ID object ID), Conversation ID, Service URL, serialized ConversationReference JSON
- Conversation references are encrypted/signed by Bot Framework and tied to the bot credentials that created them
- If bot credentials change, existing conversation references become invalid and must be cleared
Identity and access management
Section titled “Identity and access management”System-assigned managed identity
Section titled “System-assigned managed identity”The App Service is configured with a System-Assigned Managed Identity. This identity is automatically created and managed by Azure. The App Service also carries the Teams bot’s user-assigned managed identity, which is used only to authenticate to Bot Framework.
"identity": { "type": "SystemAssigned, UserAssigned", "userAssignedIdentities": { "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('botUamiName'))]": {} }}Purpose: The Managed Identity allows the application to authenticate to Azure services without storing credentials in code or configuration.
Role assignments
Section titled “Role assignments”The following permissions are granted to the Managed Identity:
| Permission Type | Scope | Purpose |
|---|---|---|
| Website Contributor Role | App Service | Enables in-app updates via Azure Resource Manager |
| Key Vault Access Policy (Get, List Secrets) | Key Vault | Read application secrets from Key Vault |
Why Website Contributor?
The in-app update feature allows administrators to update the application from within the portal. To do this, the application must be able to modify its own WEBSITE_RUN_FROM_PACKAGE app setting. The Website Contributor role grants this permission. App Store uses it both when an administrator installs an update and on first start, when App Store pins the setting to the version it runs.
Why Key Vault Access?
Sensitive connection strings (SQL, storage) are stored in Azure Key Vault and read at runtime through the App Service’s managed identity.
There is no Microsoft Entra ID client secret. The App Service authenticates to Microsoft Graph as its own system-assigned managed identity and the Teams bot as its own user-assigned managed identity, so there is no application password anywhere in the product to store, reference, rotate or lose.
Scope limitation: All permissions are scoped to the minimum required resources (not the resource group or subscription), following the principle of least privilege.
{ "type": "Microsoft.Authorization/roleAssignments", "scope": "[concat('Microsoft.Web/sites/', variables('appName'))]", "properties": { "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'de139f84-1756-47ae-9be6-808fbbe84772')]", "principalId": "[reference(resourceId('Microsoft.Web/sites', variables('appName')), '2024-11-01', 'full').identity.principalId]", "principalType": "ServicePrincipal" }}Microsoft Entra ID app registration
Section titled “Microsoft Entra ID app registration”App Store for Intune uses a single Microsoft Entra ID app registration. It serves two roles bound to the same client ID: it validates incoming user tokens (the API trusts only tokens whose audience matches this client ID, then checks the scope) and it powers the single-page application sign-in flow.
Application type: Single-page application (SPA)
Authentication:
- Client ID only. There is no client secret: the App Service uses its managed identity for all service-to-service calls.
- MSAL.js with the authorization code flow and PKCE
API permissions (delegated):
| API | Permission | Type | Purpose |
|---|---|---|---|
| Microsoft Graph | User.Read | Delegated | Read the signed-in user’s profile and photo |
Token configuration:
- Access tokens issued for:
api://{client-id} - Scope exposed:
access_as_user
Redirect URIs (Single-page application platform):
https://{app-name}.azurewebsites.nethttps://{custom-domain}(if a custom domain is configured)
Enter each with no trailing slash and no path. App Store signs users in with the address they opened the portal at.
The Microsoft Graph application permissions App Store uses to call Intune, manage groups, read users, and send mail are not held on this app registration. They are granted to the App Service’s managed identity instead. See Managed identity configuration.
Optional: the workload API registration
Section titled “Optional: the workload API registration”If you enable unattended API access, a second app registration exists, separate from the sign-in one above. It holds no client secret, no certificate, no Microsoft Graph permissions and no Intune permissions. Its only contents are an Application ID URI, which names the audience, and App Store’s application roles.
Keeping it separate is deliberate: the registration your staff authenticate against keeps its property of holding no credentials and no application roles, and a mistaken role assignment on a registration that exists only to hold roles cannot reach the sign-in identity.
The caller authorised through it is a customer-controlled managed identity, typically an Azure Automation Account’s. It can perform seven reads and cannot approve, reject or change anything. A User Access Group doesn’t apply to it: App Store lets this managed identity through and still limits it to those reads. See Call the API from Azure Automation.
If unattended access is not configured, this registration does not exist and App Store accepts no application token.
Teams bot note: No Microsoft Graph permissions are required for Teams bot notifications. Bot Framework handles its own authentication, and as of v1.33.0 the bot authenticates with a dedicated user-assigned managed identity (no client secret). Do not add TeamsActivity.Send or similar permissions; they are not used by this application.
Managed identity configuration
Section titled “Managed identity configuration”How the managed identity works
Section titled “How the managed identity works”-
Creation: When the ARM template deploys, Azure automatically creates a service principal in Microsoft Entra ID for the App Service.
-
Environment variables: Azure injects these environment variables into the application:
MSI_ENDPOINTorIDENTITY_ENDPOINT: Token endpoint URLIDENTITY_HEADER: Secret header for authenticationWEBSITE_SITE_NAME: App Service nameWEBSITE_RESOURCE_GROUP: Resource group nameWEBSITE_OWNER_NAME: Subscription ID
-
Token acquisition: The application uses
DefaultAzureCredentialfrom Azure.Identity SDK to acquire tokens:var credential = new DefaultAzureCredential();var armClient = new ArmClient(credential); -
Authorization: The Managed Identity authenticates to Azure Resource Manager and is authorized via the Website Contributor role assignment.
Microsoft Graph application permissions
Section titled “Microsoft Graph application permissions”The same system-assigned managed identity also holds the Microsoft Graph application permissions App Store uses to call Microsoft Graph as itself, with no client secret. These are granted once after deployment by the Grant Microsoft Graph permissions PowerShell script:
| Permission | Purpose |
|---|---|
DeviceManagementApps.Read.All | Read the Intune app catalog and assignment state |
DeviceManagementApps.ReadWrite.All | Create and update Intune Win32 app deployments |
DeviceManagementConfiguration.Read.All | Read Intune assignment filters used by ring deployment settings |
DeviceManagementManagedDevices.Read.All | Read managed devices associated with the requesting user |
Device.Read.All | Resolve an Entra device from its Azure AD Device ID. Group membership is added by directory object, so this is what lets an app assigned to devices reach the device |
Group.ReadWrite.All | Create and manage the security groups that drive app assignments |
GroupMember.Read.All | Resolve whether a user is in a group, which is how the admin, approver, portal access and app target groups are evaluated |
User.Read.All | Read user profiles, managers, and group memberships for approvals |
Mail.Send | Send email notifications from a configured mailbox (optional, granted by default; -GrantMailSend $false leaves it off). As an application permission it allows sending as any mailbox; Exchange Online can limit it to the mailbox App Store sends from |
DeviceManagementManagedDevices.PrivilegedOperations.All | Ask a device to check in with Intune, for the Check in now button on My Devices (optional, not granted by default; -GrantPrivilegedDeviceCheckIn $true grants it) |
App Store asks for the narrowest permission that does each job. Device.Read.All grants reading device objects and nothing more; Directory.Read.All, which would also cover it, is deliberately not requested.
The device check-in permission is the exception, and not by choice. DeviceManagementManagedDevices.PrivilegedOperations.All is the only permission Microsoft offers for a device check-in, and the same grant also covers wipe, retire, and rename. There is no narrower tier. App Store never calls wipe, retire, or rename; it calls check-in and nothing else. Because the granted authority is wider than the feature, the setup script grants it only when you run it with -GrantPrivilegedDeviceCheckIn $true, and even then it does nothing until an administrator selects Let users ask a device to check in on Store Administration > Storefront. Every attempt is written to the audit log, refusals included.
What the managed identity can do
Section titled “What the managed identity can do”- Call Microsoft Graph as the application using the granted permissions above (read and write Intune apps, manage groups, read users, send mail)
- Read and update the App Service’s own configuration settings
- Read the App Service’s properties
- Restart the App Service
- Read secrets from the provisioned Key Vault (Get, List permissions only)
What the managed identity can’t do
Section titled “What the managed identity can’t do”- Access other resources in the subscription
- Modify other App Services
- Write, delete, or manage secrets in Key Vault
- Access SQL Database directly (uses SQL authentication via connection string from Key Vault)
- Deploy or delete resources
Network security
Section titled “Network security”Inbound traffic
Section titled “Inbound traffic”| Protocol | Port | Source | Destination | Purpose |
|---|---|---|---|---|
| HTTPS | 443 | Internet | App Service | User access |
| HTTPS | 443 | App Service | Azure SQL | Database connections |
| HTTPS | 443 | App Service | Microsoft Graph | API calls |
| HTTPS | 443 | Bot Framework Service | App Service | Teams bot messages (/api/messages) |
| HTTPS | 443 | App Service | Bot Framework Service | Proactive bot notifications |
App Service network configuration
Section titled “App Service network configuration”- Public Access: Enabled (internet-accessible)
- TLS 1.2: Minimum version enforced
- HTTPS Only: HTTP requests redirected to HTTPS
- IP Restrictions: None by default (can be configured)
SQL Server firewall
Section titled “SQL Server firewall”The SQL Server is configured with the following security controls:
- Azure services: Allowed (firewall rule
AllowAzureServices, start and end address 0.0.0.0)- This rule lets the App Service connect to the database.
- It admits network connections from any Azure-hosted source, not only your subscription. That includes resources that belong to other Azure customers.
- Other public IP addresses: Not allowed by default
- No client IP addresses are on the allowlist.
- A connection from outside Azure is refused by the firewall.
- Private endpoint: Not configured by default (you can add one for stronger network isolation)
To verify SQL firewall rules:
az sql server firewall-rule list --server <server-name> --resource-group <rg-name>To add a client IP for temporary admin access:
az sql server firewall-rule create --server <server-name> --resource-group <rg-name> \ --name "AdminAccess" --start-ip-address <your-ip> --end-ip-address <your-ip>Remember to remove temporary rules after use.
Recommendations for enhanced security
Section titled “Recommendations for enhanced security”Conditional Access policies
Section titled “Conditional Access policies”We strongly recommend configuring the following Microsoft Entra ID Conditional Access policies for App Store for Intune. Target them at the App Store app registration. Since v1.34.0 there is one registration: it both hosts the single-page application sign-in and is the audience the API validates tokens against, so a single policy covers the whole sign-in path.
| Policy | Description | Why It Matters |
|---|---|---|
| Require MFA | Require multifactor authentication for all users accessing the portal | Prevents unauthorized access from compromised credentials |
| Require compliant device | Only allow access from Intune-compliant devices | Since this portal manages Intune apps, ensuring the requesting device meets compliance is a natural fit |
| Require managed device | Only allow access from Microsoft Entra ID joined or hybrid joined devices | Prevents access from personal/unmanaged devices |
| Block risky sign-ins | Block sign-ins flagged as medium or high risk by Microsoft Entra ID Identity Protection | Automatically blocks access when suspicious activity is detected (requires Microsoft Entra ID P2) |
| Restrict by location | Only allow access from trusted named locations (office IPs, VPN ranges) | Limits exposure to known network boundaries |
| Sign-in frequency | Require re-authentication every 8-12 hours | Limits the window of exposure from a stolen session token |
Network security enhancements
Section titled “Network security enhancements”- Virtual network integration: Deploy App Service into a VNet
- Private endpoints: Use private endpoints for SQL and storage
- IP restrictions: Limit access to known IP ranges
- Azure Front Door: Add WAF protection
Data protection
Section titled “Data protection”Data at rest
Section titled “Data at rest”| Data Type | Storage Location | Encryption |
|---|---|---|
| Application data | Azure SQL Database | TDE (Transparent Data Encryption) |
| User settings | Azure SQL Database | TDE |
| Branding assets | Azure SQL Database | TDE |
| Bot conversation references | Azure SQL Database | TDE |
| Logs | Log Analytics | Azure-managed encryption |
Data in transit
Section titled “Data in transit”- All communication uses TLS 1.2+
- HTTPS enforced at App Service level
- SQL connections use encrypted connections
Sensitive data handling
Section titled “Sensitive data handling”| Data | Storage Method | Notes |
|---|---|---|
| SQL Connection String | Azure Key Vault | Referenced via Key Vault reference in App Settings |
| Storage Connection String | Azure Key Vault | Referenced via Key Vault reference in App Settings |
| User tokens | Session storage (browser) | Not persisted server-side |
| Action tokens | SQL Database | GUID per request, used for email approve/reject |
| Bot conversation references | SQL Database | Conversation IDs and service URLs for Teams proactive messaging |
| Audit logs | SQL Database | Retained indefinitely |
Secrets management
Section titled “Secrets management”All sensitive secrets are stored in Azure Key Vault and accessed via Key Vault references:
ConnectionStrings__DefaultConnection = @Microsoft.KeyVault(SecretUri=https://{vault}.vault.azure.net/secrets/SqlConnectionString/)AzureStorage__ConnectionString = @Microsoft.KeyVault(SecretUri=https://{vault}.vault.azure.net/secrets/StorageConnectionString/)Key Vault security features:
- Secrets encrypted at rest with Azure-managed keys
- Soft delete enabled (7-day retention for accidental deletion recovery)
- Access restricted to the App Service’s Managed Identity only
- No direct secret access for users or administrators (must use Azure Portal/CLI with appropriate permissions)
- All secret access is logged in Key Vault diagnostic logs
Secret and key rotation
Section titled “Secret and key rotation”Microsoft Entra ID credentials:
App Store no longer uses a client secret. The App Service authenticates to Microsoft Graph with its managed identity, so there is no Microsoft Entra ID secret to rotate or expire.
SQL password rotation:
- Reset password in Azure Portal → SQL Server → Reset admin password
- Update connection string in Key Vault:
Terminal window az keyvault secret set --vault-name <vault-name> --name SqlConnectionString --value "Server=tcp:..." - Restart App Service
Emergency key rotation:
If you suspect a secret has been compromised:
- Immediately rotate the affected secret using the steps above
- Review Key Vault access logs for unauthorized access
- Review App Service logs for unusual activity
- Consider rotating all secrets if compromise scope is unknown
Certificate management
Section titled “Certificate management”SSL certificates:
| Certificate Type | Management | Renewal |
|---|---|---|
| Azure-managed (default) | Automatic | Auto-renewed by Azure |
| Custom domain with Azure certificate | Automatic | Auto-renewed by Azure |
| Custom uploaded certificate | Manual | Upload new certificate before expiration |
Microsoft Entra ID app credentials:
There are none to monitor. The App Store app registration has no client secret and no certificate; both identities that do privileged work are managed identities, and Azure issues those tokens to the workload itself.
Monitoring expiration:
Set up Azure Monitor alerts for:
- Key Vault secret expiration (90 days before), for the SQL and storage connection strings
- SSL certificate expiration (if you use a custom domain)
# Check Key Vault secret expiration datesaz keyvault secret list --vault-name <vault-name> --query "[].{name:name, expires:attributes.expires}"Authentication flow
Section titled “Authentication flow”┌──────────────┐ ┌──────────────┐ ┌──────────────┐│ Browser │ │ Entra ID │ │ App Service │└──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │ │ │ │ 1. Navigate to app │ │ │───────────────────────────────────────────────>│ │ │ │ │ 2. Redirect to sign-in│ │ │<───────────────────────────────────────────────│ │ │ │ │ 3. User authenticates │ │ │───────────────────────>│ │ │ │ │ │ 4. Return tokens │ │ │<───────────────────────│ │ │ │ │ │ 5. API call with token │ │───────────────────────────────────────────────>│ │ │ │ │ │ 6. Validate token │ │ │<───────────────────────│ │ │ │ │ │ 7. Token valid │ │ │───────────────────────>│ │ │ │ │ 8. API response │ │ │<───────────────────────────────────────────────│Token validation
Section titled “Token validation”The API validates JWT tokens from Microsoft Entra ID:
- Issuer: Must match Microsoft Entra ID tenant
- Audience: Must be the App Store app registration (its client ID or
api://{client-id}), or the workload API audience when unattended access is configured. A user token must also carry theaccess_as_userscope. - Signature: Validated using Microsoft Entra ID public keys
- Expiration: Token must not be expired
- Claims: User identity extracted from token
Authorization model
Section titled “Authorization model”Role-based access control
Section titled “Role-based access control”| Role | How Assigned | Capabilities |
|---|---|---|
| User | Any authenticated user | Browse apps, submit requests, view own requests |
| Approver | Named in the app’s approval workflow: a person, a group, or the requester’s manager | Approve/reject requests, view pending approvals |
| Admin | The initial administrator (the person who deployed App Store) or a member of the Admin Group | Full access, manage apps, settings, users |
Group-based authorization
Section titled “Group-based authorization”Administrator access comes from the initial administrator recorded at first start and, optionally, the Admin Group (AdminGroupId). ApproverGroupId is kept only as a record of the retired tenant-wide approver group and grants no approval rights. These values are stored in the PortalSettings table:
BootstrapAdminObjectId -- Object ID of the initial administratorAdminGroupId -- (Optional) Microsoft Entra ID Group Object ID for adminsApproverGroupId -- Retired; kept as a record only, grants nothingUserAccessGroupId -- (Optional) Restrict access to specific groupAuthorization check flow
Section titled “Authorization check flow”// Check if user is adminvar userId = User.FindFirstValue("oid");var isAdmin = await _portalRoleService.IsAdminAsync(userId);Audit logging
Section titled “Audit logging”What is logged
Section titled “What is logged”| Event | Data Captured |
|---|---|
| App request submitted | User ID, App ID, Device ID, Timestamp |
| Request approved/rejected | Reviewer ID, Decision, Comments, Timestamp |
| Settings changed | User ID, Setting changed, Old/New values |
| App sync | User ID, Apps added/updated, Timestamp |
| User sign-in | User ID, IP address, Timestamp |
| Administrative change (1.39.0) | Every write action in the administration API (settings, apps, workflows, packaging, updates, permissions) is recorded as Controller.Action with User ID, IP address, Timestamp |
| Access denied (1.39.0) | Access.Denied: the endpoint and the identity that was refused |
| Request cancelled (1.39.0) | Request.Cancelled: User ID, Request ID, Timestamp |
| Portal update (1.39.0) | Portal.UpdateRequested and Portal.UpdateInstalled, including the package URL applied and the one it replaced |
Audit log storage
Section titled “Audit log storage”- Location: SQL Database (
AuditLogstable) - Retention: Indefinite (no automatic purge)
- Access: Admin-only, on Reports > Analytics > Audit Trail
Log schema
Section titled “Log schema”CREATE TABLE AuditLogs ( Id NVARCHAR(450) PRIMARY KEY, UserId NVARCHAR(450) NOT NULL, UserEmail NVARCHAR(255) NOT NULL, Action NVARCHAR(100) NOT NULL, EntityType NVARCHAR(100) NOT NULL, EntityId NVARCHAR(450) NOT NULL, Details NVARCHAR(MAX), -- JSON payload Timestamp DATETIME2 NOT NULL, IpAddress NVARCHAR(50) NOT NULL);Security checklist
Section titled “Security checklist”Pre-deployment
Section titled “Pre-deployment”- App Store app registration created with delegated
User.Readonly, no client secret, and no application permissions - Microsoft Graph application permissions granted to the App Service’s managed identity with the setup script, not to the app registration
- Strong SQL administrator password configured
- Deployed by a person, who becomes the initial administrator, or, for an automated deployment, an Admin Group and the administrator’s
bootstrapAdminObjectIdandbootstrapAdminUserPrincipalNamesupplied - Approval workflows name the approvers for each app that requires approval
Post-deployment
Section titled “Post-deployment”- Verify HTTPS-only access working
- Test authentication flow
- Verify role-based access (admin vs. user)
- Review Microsoft Entra ID sign-in logs
- Enable Azure Security Center recommendations
- If Teams bot enabled: confirm that Bot App ID on Store Administration > Communications matches the
teamsBotAppIddeployment output, which is the client ID of the bot’s managed identity - If Teams bot enabled: test bot notification delivery
Ongoing operations
Section titled “Ongoing operations”- Review audit logs regularly
- Monitor failed authentication attempts
- Update application when security patches released
- Review and remove unused app permissions
Optional enhancements
Section titled “Optional enhancements”- Enable Microsoft Entra ID Conditional Access policies (see Recommended Policies)
- Configure Microsoft Entra ID Identity Protection (required for risk-based CA policies)
- Implement Private Endpoints for SQL and Key Vault
- Add Azure Front Door with WAF
- Enable Azure Defender for App Service
- Azure Key Vault for secrets (enabled by default)
Package verification
Section titled “Package verification”Apps deployed to Intune via the App Store originate as YAML manifests in the microsoft/winget-pkgs community repository. Each manifest declares an installer URL and the SHA256 hash that installer must match. The packaging pipeline verifies the downloaded installer against that hash before wrapping it for Intune (PackagingQueueService.DownloadFromGitHubAsync).
That hash check defends against a tampered installer at the publisher’s download server, but it trusts the manifest itself. The manifest is fetched from raw.githubusercontent.com over HTTPS, and anyone able to MITM that connection (or substitute a manifest in a compromised mirror) could feed the pipeline a manifest that points at a malicious installer with a matching hash.
Verified chain via source2.msix
Section titled “Verified chain via source2.msix”To close that gap, the App Store can verify each package against Microsoft’s signed community index. The WinGet client itself uses this same chain (see PackagesTable.h in winget-cli for the upstream schema).
How it works (when VerifyManifestIntegrity is enabled):
- The portal downloads
source2.msixfromhttps://cdn.winget.microsoft.com/cache/source2.msix. - The .msix contains a SQLite database (
Public/index.db) with apackagestable: one row per package Microsoft has reviewed and merged into the community repository, with the SHA256 of the package’s version data manifest in thehashcolumn. - Before packaging any WinGet-sourced app, the portal looks the package up in this index. If the package is not present, the packaging job fails with an explicit “Manifest integrity check failed” error rather than silently falling back to an unverified path.
- The downloaded MSIX and extracted SQLite are cached on disk for 12 hours so repeat lookups don’t re-download the ~10 MB archive.
What this protects against:
- Tampered manifest substituted on the GitHub fetch path. A malicious manifest for a non-existent or non-merged package ID will fail the index lookup.
- An attacker pointing an existing package ID at a different installer. Once paired with the version-data-manifest hash check (planned, see roadmap below), the manifest contents can be cryptographically tied back to what Microsoft moderators reviewed.
What this does not yet protect against (v1 limitations):
- The full design (documented internally as the WinGet manifest verification specification) calls for fetching the version data manifest from the Azure CDN by content-addressed URL and verifying its hash against the SQLite value, then doing the same for each per-version merged manifest. v1 implements only the index lookup gate; the hash-of-manifest comparison is a planned v2 enhancement.
- MSIX signature validation against Microsoft’s certificate chain (Authenticode-on-MSIX via WinTrust). v1 relies on HTTPS + DNS to
cdn.winget.microsoft.comas the trust root. A compromised CDN is out of scope for v1; v2 will add full signature validation.
Configuration: Store Administration > System, Catalog Sourcing, “Verify manifest integrity against Microsoft’s signed index”. Default is on. An upgrade turns it on once for installations that predate the default; after that an administrator’s choice is kept. Admins running internal hardened mirrors of the WinGet repo can turn it off and rely on their mirror’s own integrity controls. If you use your own repository (Catalog Repository URL), packages that aren’t in Microsoft’s community index are refused while this setting is on.
What the check does, precisely. It confirms that the package ID is present in Microsoft’s signed index and refuses to package anything that is not. It does not compare the contents of the manifest fetched from GitHub with the index. Separately, the installer the portal downloads must match the SHA-256 published in the manifest for the version being packaged, or packaging stops.
Failure mode: Verification failures are loud, not silent. The packaging job is marked failed and the error message names the package and explains the integrity check failed. There is no fallback to the unverified path while verification is enabled. The only way around it is to clear Verify manifest integrity against Microsoft’s signed index on Store Administration > System.
App Store Release Packages
Section titled “App Store Release Packages”The checks above cover the apps App Store packages for Intune. App Store also verifies its own release package before it runs a new version.
App Store updates itself only from its release location, https://bi.powerstacks.com/appstoreforintune/bin by default (setting Application:ReleasesBaseUrl). Before an in-app update changes anything, App Store downloads the package and compares it with the SHA-256 checksum the release publishes. By default it refuses the update if the checksum is missing or doesn’t match, and the running version stays in place. It then points WEBSITE_RUN_FROM_PACKAGE at the version-specific package, and sets Application__Version, through Azure Resource Manager as its managed identity.
On its first start, App Store runs the same check and pins WEBSITE_RUN_FROM_PACKAGE to the version it runs, so a restart can’t change the version. About a minute after each start, it checks the package again and writes a critical log entry if the package no longer matches the checksum it recorded. It changes nothing when that happens.
Script Signing
Section titled “Script Signing”App Store doesn’t sign the PowerShell scripts it creates. That includes the install script it writes for each app, the detection and requirement scripts it generates, and the uninstall script. The PSAppDeployToolkit module that App Store includes in a package is signed by its publisher. The Graph permission grant script isn’t signed either.
In environments that allow only signed scripts, for example where the AllSigned PowerShell execution policy is set through Group Policy or Intune, or where App Control for Business restricts scripts, these scripts can be blocked, and installs, detection or uninstalls can fail. If your organization requires signed scripts, test App Store deployments on a device with that policy before you rely on them. Signing support is on the roadmap.
Compliance considerations
Section titled “Compliance considerations”Data residency
Section titled “Data residency”- All data stored in the Azure region selected during deployment
- No cross-region data replication by default
Data retention
Section titled “Data retention”- Audit logs: Retained indefinitely
- Application data: Retained until manually deleted
- App Insights logs: 90 days default (configurable)
GDPR considerations
Section titled “GDPR considerations”- User data limited to: Name, Email, User ID (from Microsoft Entra ID)
- No sensitive personal data stored
- Data can be exported/deleted upon request via database access
Incident response
Section titled “Incident response”Security event indicators
Section titled “Security event indicators”Monitor for these events in Microsoft Entra ID and App Insights:
- Multiple failed sign-ins from same IP
- Unusual geographic access patterns
- Bulk data access (many API calls in short time)
- Privilege escalation attempts
- Configuration changes outside business hours
Response actions
Section titled “Response actions”- Disable App Service if compromise suspected
- Rotate secrets (SQL password, storage keys). There is no Entra ID client secret to rotate; the App Service and the Teams bot both use managed identities
- Review audit logs for unauthorized access
- Revoke user access if account compromised
- Contact Azure Support for assistance
Contact
Section titled “Contact”For security questions or to report vulnerabilities:
- Email: info@powerstacks.com