ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V3
  3. Well-Architected
  4. V3 Security
  5. V3 Identity
  6. V3 Identity Workflows
  7. Mailbox Access Identity Workflow

Mailbox Access Identity Workflow

security
architecturev3

Mailbox Access Identity Workflow

ION phishing analysis reads the body of reported or suspicious messages in customer mailboxes. It uses the purpose-specific multi-tenant application azsp-ontinue-ion-access-phishing-write-prd-01 (ADR-0010). The Microsoft Graph Mail.Read application permission is tenant-wide when granted in Entra. ION therefore requires the customer to constrain mailbox access with Exchange Online RBAC for Applications, and ION does not process any mailbox until the scope has been validated end to end.

Actors and identities

Mailbox access identities
ConcernAuthoritative systemION responsibility
Customer identity administratorCustomer home tenantGrants admin consent and the Mail.Read application permission.
Customer Exchange administratorExchange Online in the customer tenantCreates the Exchange service principal, management scope, and role assignment, and runs the authorization test.
Phishing applicationazsp-ontinue-ion-access-phishing-write-prd-01, multi-tenantHolds the phishing-analysis Graph permissions and trusts the calling workload's UAMI as a federated credential.
Phishing-analysis workloadION microservice with its own UAMIExchanges its token for a customer-tenant Graph token and reads only in-scope messages.
Scoped mailboxesMailboxes matching the management scopeThe only mailboxes whose content Exchange returns to the application.

Application permissions

Graph application permissionUse
Mail.ReadRead message bodies in in-scope mailboxes
Mail.ReadBasic.AllRead message metadata without body content
SecurityAnalyzedMessage.Read.AllRead analyzed-message records
SecurityAnalyzedMessage.ReadWrite.AllAct on analyzed messages
ThreatSubmission.Read.AllRead threat submissions
ThreatSubmission.ReadWrite.AllCreate and update threat submissions

The Exchange RBAC for Applications scope in this workflow constrains message content access through the Application Mail.Read role.

Tenancy

ElementTenant
Phishing application registration and federated credentialsOntinue platform directory
Calling workload UAMIOntinue platform directory
Service principal, consent, and Mail.Read grantCustomer tenant Entra
Exchange service principal, management scope, and role assignmentCustomer tenant Exchange Online
Graph access tokenIssued by the customer tenant

Onboarding

1

Consent and grant Mail.Read

Owner: Customer identity administrator

ION sends the admin consent URL for the phishing application:

https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}

The authority is always organizations; ION never uses common and never pre-fills a tenant. ION verifies the returned tenant and state against the onboarding record. Consent requires a Privileged Role Administrator or an equivalent role able to grant application permissions. After consent, the Mail.Read grant applies to every mailbox in the tenant, so ION does not process mail yet.

2

Register the service principal in Exchange

Owner: Customer Exchange administrator

In Exchange Online PowerShell, as Organization Management or an Exchange Administrator:

New-ServicePrincipal -AppId <appClientId> -ObjectId <enterpriseAppObjectId> -DisplayName "ION Phishing Analysis"

The IDs are the application client ID and the customer’s enterprise application object ID. These steps are PowerShell-only.

3

Create the management scope

Owner: Customer Exchange administrator

The default scope uses a mailbox custom attribute. Tag each in-scope mailbox and create the scope:

Set-Mailbox -Identity <mailbox> -CustomAttribute1 "MSSP-PhishingAnalysis"
New-ManagementScope -Name "ION-PhishingAnalysis" -RecipientRestrictionFilter "CustomAttribute1 -eq 'MSSP-PhishingAnalysis'"

Where the customer already manages mailboxes through an Administrative Unit, the assignment can instead use -RecipientAdministrativeUnitScope with that unit.

4

Assign Application Mail.Read to the scope

Owner: Customer Exchange administrator

New-ManagementRoleAssignment -App <appClientId> -Role "Application Mail.Read" -CustomResourceScope "ION-PhishingAnalysis"

Assign only Application Mail.Read. No other Exchange application role is assigned for this workflow.

5

Test the Exchange assignment

Owner: Customer Exchange administrator

Test-ServicePrincipalAuthorization -Identity <appClientId> -Resource <inScopeMailbox>
Test-ServicePrincipalAuthorization -Identity <appClientId> -Resource <outOfScopeMailbox>

The in-scope mailbox must report InScope True for Application Mail.Read; the out-of-scope mailbox must report False.

6

Validate end to end and activate

Owner: Ontinue engineering

Test-ServicePrincipalAuthorization evaluates the Exchange assignment. ION confirms the effective result through Graph with the runtime identity: a message body in an in-scope mailbox is readable, and a read in an out-of-scope mailbox returns ErrorAccessDenied. Only after both results are recorded does ION activate phishing processing for the tenant.

Detailed commands and evidence are in Mailbox-scoped access.

Application Access Policies

Exchange Application Access Policies are deprecated and are not used for new onboarding.

Runtime token flow

The calling workload’s UAMI is a federated identity credential on the phishing application; every new Entra application starts with federated credentials only. Where the phishing application still holds a Key Vault client secret, that secret is transitional and SRE monitors its expiry until migration completes. The token scope is https://graph.microsoft.com/.default. The customer tenant ID comes from the verified onboarding record. See Workload Identity Federation.

Validation and authorization

  • Entra authorizes the application permissions granted at consent.
  • Exchange RBAC for Applications restricts message content access to mailboxes in the management scope.
  • ION requires a recorded end-to-end validation before processing, treats ErrorAccessDenied as an out-of-scope signal rather than a retryable error, and never attempts to read a mailbox through another application.

Responsibilities

ActivityCustomer identity adminCustomer Exchange adminCustomer security or riskOntinue engineeringOntinue security lead
Approve mailbox scope and useConsultedConsultedAccountableInformedConsulted
Consent and Mail.Read grantResponsibleInformedAccountableInformedInformed
Exchange service principal, scope, and assignmentInformedResponsibleAccountableConsultedInformed
Test-ServicePrincipalAuthorizationInformedResponsibleAccountableConsultedInformed
Phishing application and federated credentialInformedInformedInformedResponsibleConsulted
End-to-end Graph validationInformedConsultedInformedResponsibleConsulted
Design and change reviewInformedInformedConsultedResponsibleAccountable
OffboardingResponsibleResponsibleAccountableResponsibleInformed

Revocation and offboarding

  • Remove one mailbox. Clear the custom attribute or remove it from the Administrative Unit. Exchange denies access on subsequent requests.
  • Stop all mailbox access. Remove the management role assignment; then remove the scope and the Exchange service principal.
  • Full offboarding. The customer identity administrator removes the consent or deletes the enterprise application after the Exchange objects are removed.
  • Ontinue-side emergency. Remove the workload’s federated credential from the phishing application or disable the calling workload.

ION re-runs the end-to-end check when the customer reports scope changes and suspends processing for the tenant if an out-of-scope read ever succeeds.

Audit

The customer’s Entra audit log records consent and permission grants; the Exchange admin audit log records New-ServicePrincipal, New-ManagementScope, and New-ManagementRoleAssignment changes; the customer’s mailbox audit records application access. ION records the onboarding record, validation evidence for the in-scope and out-of-scope tests, token exchanges, and per-message access with customer, mailbox, workload, and correlation ID. ION never logs tokens, assertions, or message bodies in identity logs.

Related pages

  • Workflow overview
  • Microservices
  • Customer Azure RBAC
  • Mailbox-scoped access implementation
  • Customer onboarding
  • Workload Identity Federation
  • Customer Environment Access
  • ADR-0010 — Split multi-tenant access-permission apps

On this page

  • Actors and identities
  • Application permissions
  • Tenancy
  • Onboarding
  • Runtime token flow
  • Validation and authorization
  • Responsibilities
  • Revocation and offboarding
  • Audit
  • Related pages
PreviousCustomer Portal Identity Workflow
NextMicroservices Identity Workflow
Edit on GitHubSecurity