Start your free Preview

Posture check · Workload and agent identity

Credentials on a Microsoft first-party service principal ​(T1098.001)

A credential was added in your tenant to the service principal of an app Microsoft publishes.

Why it matters

Attackers add a credential to a Microsoft app's service principal to sign in as that app, which blends in with Microsoft's own traffic.

How GraphnAI finds it

It runs after every sync, on each connected domain or tenant on its own. It applies to Microsoft Entra ID.

It reads:

  • The directory attributes servicePrincipalType, keyCredentials, passwordCredentials, credentialsInheritedFromApp, appOwnerOrganizationId, appOwnerClass and verifiedPublisher
  • 4 more GraphnAI analyses

Tiered Fidelity™ level: Theoretical

Every finding from this check carries the Theoretical level.

  1. TheoreticalThis checkConfigured in the directory. Nothing else checked.
  2. ConstrainedA constraint on it has been checked.
  3. ValidatedTelemetry has seen it in use.

How Select Fire™ writes the fix

Select Fire mode: Safe Mode

How to fix it

Microsoft apps rarely need a credential added in your tenant, and attackers add one to sign in as the app. Find out who added this credential and when, then remove it.

The script Select Fire writes

When the finding names the exact change, Select Fire opens in Safe Mode and writes a PowerShell script from a template that removes the secrets and certificates the finding names from the service principal. It's a dry run until you add -Apply, with the current state saved first and the change checked afterwards. You review it and run it yourself.

Why Select Fire doesn't run it: Removing a service principal's credential, or disabling the service principal, is done in Microsoft Entra.

Related checks

MITRE ATT&CK® technique names and MITRE D3FEND™ technique labels: © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. ATT&CK® is a registered trademark and D3FEND™ a trademark of The MITRE Corporation.

See it on your own directory.

The Public Preview is free for 30 days from your first sync, on your own server.

Start your free Preview