A Microsoft Entra sign-in log category that records authentications by applications and service principals using their own credentials, not on behalf of a user. Defenders review it for sign-ins from unexpected IP addresses or locations, and for use shortly after a credential was added, because stolen secrets or certificates are used without MFA.
What the sign-in log is actually telling you
Service principal sign-in logs show when an application, daemon, automation task, or other non-user workload authenticates with its own credentials. The key value is attribution: you can separate machine-driven access from human interactive sign-ins and see which workload presented which credential at a given time.
That distinction matters because a service principal can sign in without MFA in the way a human user would. If the log entry shows a workload authenticating from an unfamiliar location, impossible travel pattern, or a time that does not fit the application’s normal behaviour, the event deserves immediate review.
For defenders, this log category is less about identity proofing and more about workload accountability. It is one of the few native places where Entra can show whether a service credential was used, when it was used, and whether the usage pattern fits the application’s expected operational profile.
Why it is a high-value telemetry source
The log becomes especially useful immediately after a new credential is added to an application or service principal. That timing can indicate legitimate rotation, but it can also signal that an attacker has just introduced a secret or certificate and is testing whether it works. The log is therefore a practical way to connect credential lifecycle events with first use.
It also helps distinguish normal automation from abuse. A workload that suddenly starts signing in from a consumer hosting range, a new cloud region, or an address that has no historical relation to the application often indicates either compromise or an unexpected configuration change. This is why the log is commonly paired with app credential inventory and change review.
When used well, the log gives analysts a narrow but powerful signal: this is not a user acting through delegated access, but the workload itself authenticating directly. That makes it easier to investigate token theft, secret replay, and certificate abuse without conflating them with human sign-ins.
How defenders use it in investigation and detection
Operationally, analysts use this log to baseline normal service principal behaviour, then alert on deviations such as rare source IPs, unusual geographies, first-seen sign-ins, or sign-ins that occur soon after a credential change. The important question is not only whether the sign-in succeeded, but whether the credential use fits the workload’s normal purpose and environment.
It is also useful for post-compromise scoping. If an attacker has signed in as a service principal, the log can help identify the window of use, the source network, and the approximate moment the credential became active. That supports correlation with cloud audit logs, application changes, and downstream resource access.
For investigation teams, the log is strongest when combined with surrounding telemetry, such as credential-add events, resource access records, and application ownership data. On its own it shows authentication, but in context it helps explain how a workload identity was abused and what the attacker likely touched next.
What it means for remediation and log quality
A service principal sign-in event often triggers two parallel tasks: contain the exposed credential and verify whether any other credentials, tokens, or related secrets were also exposed. If the sign-in looks malicious, defenders typically treat the service principal as compromised until proven otherwise and review the application’s recent changes, privileges, and downstream API activity.
Log quality matters as much as the event itself. If service principal sign-ins are not being collected, retained, or reviewed consistently, organisations lose the ability to spot abuse early and may miss the first successful use of a stolen secret. That is why this log category belongs in the same operational conversation as detection engineering, audit retention, and workload identity governance.
For teams that rely heavily on application credentials, the broader security issue is simple: service principals are often high-leverage access paths, so their sign-in telemetry becomes one of the clearest indicators of credential theft or misuse.
Risk and Threat Considerations
Service principal sign-in logs matter because stolen application secrets or certificates are often usable without interactive challenges, which makes abuse quiet and durable. A compromised workload credential can let an attacker authenticate from an unfamiliar network, blend into legitimate automation, and access cloud resources until the credential is rotated or revoked.
Failure mechanism: An attacker obtains a client secret or certificate, then uses the service principal directly to authenticate and operate as the application, bypassing user-centric controls and many behavioural expectations that defenders rely on for human accounts.
Impact: The resulting access can expose APIs, data stores, mail, storage, and administrative functions, and it can also create a misleading audit trail if the sign-in is mistaken for legitimate automation rather than credential 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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-6 — Audit Review, Analysis, and Reporting | Service principal sign-in logs are audit records that must be reviewed for anomalous workload authentication. |
| IA-5 — Authenticator Management | The term centers on application secrets and certificates used as authenticators for workload sign-ins. | |
| IA-9 — Service Identification and Authentication | Workloads and services authenticate as non-human actors, which this log records directly. | |
| Recommendation — Analyze service principal sign-in records for unusual source patterns and investigate suspected credential abuse. Manage service principal secrets and certificates with rotation, renewal, and revocation controls. Use service-to-service authentication controls that uniquely identify each workload and log its sign-ins. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | This log category is an audit source needed for monitoring and investigation of application sign-ins. |
| Recommendation — Centralize and review service principal sign-in logs to detect suspicious workload authentication. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Unexpected sign-ins often indicate that a service principal secret or certificate has been exposed. |
| Recommendation — Detect leaked workload secrets early and rotate the credential immediately after suspicious use. | ||
Practitioner Guidance
What to watch for: Review sign-ins that come from a new IP range, an unexpected country, or a period shortly after a credential was added or changed. Those are often the highest-signal indicators that the application credential is being used in a way that merits containment and deeper scoping.
Practitioner takeaway: Treat this log as workload authentication evidence, not just another sign-in feed, because its main value is tying credential use to identity-specific behaviour that should be explainable.
Related resources from NHI Mgmt Group
- Guide: Azure Entra Client Secrets Security Guide
- How do you monitor service principal sign-in logs in Microsoft Entra ID?
- What breaks when a user can own a privileged service principal?
- Who is accountable when a service principal bypasses a platform access policy?
- Who is accountable when a service principal is used to persist access in Azure?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org