Join our Newsletter — 33% off our NHI Course

Who is accountable when delegated mailbox access is abused through a third-party package?

Accountability usually spans software supply chain owners, identity platform teams, and the business owner that approved the application or workflow. If device-code access or Graph permissions were not constrained, the identity team owns the control gap. If the package was approved without provenance review, the software governance process also failed.

Why This Matters for Security Teams

delegated mailbox access becomes a governance problem the moment a third-party package can act with the same authority as the human who approved it. The real risk is not only mailbox reading or sending, but the combination of OAuth consent, Graph permissions, and package provenance that can turn a routine integration into a durable abuse path. NHIMG’s 52 NHI Breaches Analysis shows how often identity trust breaks down once non-human access is granted and left in place.

Security teams often misread this as a simple application incident. In practice, the accountable parties differ by control failure: the business owner for approval risk, the identity platform team for permission scope and tenant controls, and software supply chain owners for package provenance and dependency review. OWASP’s OWASP Non-Human Identity Top 10 and NIST’s NIST SP 800-53 Rev 5 Security and Privacy Controls both reinforce that identity controls must be scoped, reviewed, and continuously governed, not merely approved once.

In practice, many security teams encounter delegated mailbox abuse only after a third-party package has already been granted persistent access and used for silent data collection.

How It Works in Practice

Accountability follows the control boundary, not just the incident boundary. If a third-party package requested delegated mailbox access through OAuth consent, the identity team is responsible for constraining what the token can do, how long it lasts, and whether high-risk permissions require admin approval. If the package was accepted without checking publisher reputation, dependency integrity, or recent change history, software governance owns the provenance gap. If the business sponsor approved the workflow without understanding mailbox scope, that approval is also part of the failure chain.

Operationally, teams should separate three questions: who approved the integration, who configured the identity trust, and who owns the data exposure risk. That is the cleanest way to assign accountability after abuse, because one actor may have enabled access while another failed to contain it. NHIMG’s LiteLLM PyPI package breach and Reviewdog GitHub Action supply chain attack both illustrate how trusted packages can become identity abuse paths when provenance and permission scope are weak.

  • Review delegated permissions separately from application ownership and procurement approval.
  • Limit Graph and mailbox scopes to the minimum required for the workflow.
  • Prefer admin consent with documented review for sensitive mailbox delegation.
  • Revoke stale tokens and review service-to-mailbox bindings on a fixed schedule.
  • Log consent events, permission grants, and package version changes in one audit trail.

Current guidance suggests using least privilege, short-lived access, and explicit provenance checks, but there is no universal standard yet for how much delegated mailbox access a third-party package should retain across different business workflows. These controls tend to break down when legacy mail integrations rely on blanket tenant-wide consent because the platform cannot distinguish routine automation from silent exfiltration.

Common Variations and Edge Cases

Tighter mailbox delegation often increases operational friction, requiring organisations to balance rapid workflow approval against stronger provenance and permission review. That tradeoff becomes sharper when a package is installed by a business user but governed by central identity policy, because the approval chain is split across teams. In those cases, the business owner may think they own the risk, while the identity team actually owns the permission boundary.

Edge cases usually involve shared mailboxes, delegated admin roles, or vendor workflows that require send-as and read access at the same time. In those situations, the question is not only whether the package was malicious, but whether the organisation gave it standing authority that exceeded the task. Best practice is evolving, but current consensus is clear that mailbox delegation should be reviewed like any other non-human identity with persistent access, especially when the package can be updated without a fresh security review. The Klue OAuth Supply Chain Breach is a reminder that consented access can scale into enterprise-wide exposure fast.

Where organisations struggle most is proving who had the authority to say yes, not who first noticed the abuse.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 Covers over-privileged non-human access, central to delegated mailbox abuse.
NIST CSF 2.0 PR.AC-4 Identity and access permissions must be managed and reviewed continuously.
CSA MAESTRO IAP-2 Agent and tool authorization must be constrained at runtime and by task.
NIST AI RMF Accountability for AI-enabled automation depends on governance and monitoring.
NIST SP 800-53 Rev 5 AC-6 Least privilege is the core control for limiting delegated mailbox abuse.

Review delegated mailbox permissions against NHI-01 and remove any standing access beyond the workflow need.