
Hello,
I am currently designing an auditing and monitoring architecture to track the usage of credentials (Certificates, Secrets, and Federated Credentials) configured on Microsoft Entra App Registrations.
For validation, I configured multiple credentials under a single App Registration:
- Two X.509 Certificates (
clientAssertion)
- Two Client Secrets (
clientSecret: e.g., auto-screte and test-screte)
- One Workload Identity Federation Credential (
fic-asw-federation)
I tested token issuance and refresh operations under non-interactive delegated user flows and observed the resulting logs in AADNonInteractiveUserSignInLogs and SigninLogs.
1. Observed Limitations
- Federated Identity Credential (FIC): The
FederatedCredentialId column in AADNonInteractiveUserSignInLogs captures the exact GUID, enabling a 1:1 match with audit logs (AuditLogs).
- Client Secrets & Client Assertions: While
ClientCredentialType shows clientSecret, the ServicePrincipalCredentialKeyId column is empty/null in user sign-in log schemas. When multiple active secrets exist on the application, it is impossible via KQL to determine which specific Secret ID (KeyIdentifier) was authenticated for a given sign-in event.
Q1. Secret Key ID Availability in User Sign-in Logs
- While
AADServicePrincipalSignInLogs includes ServicePrincipalCredentialKeyId, user-context logs do not. Is there any existing column or property within AuthenticationProcessingDetails in AADNonInteractiveUserSignInLogs that records the specific keyId of the Client Secret or Certificate used?
Q2. Alternative Methods Outside of KQL
- Outside of Log Analytics KQL queries, are there official alternative mechanisms (e.g., specific Microsoft Graph endpoints, Entra Recommendations for unused credentials, or Workload Identity Protection telemetry) to audit and trace the exact usage of application credentials?
Q3. Feasibility & Security Review of Azure Key Vault (AKV) Logging
- To compensate for Entra ID's logging gap, we are evaluating storing the Client Secrets in Azure Key Vault and tracking access via Key Vault Diagnostic Logging (
SecretGet events).
- Because backend applications typically read the secret from AKV once at startup and cache it in memory across thousands of token requests, this will not offer 1:1 transaction-level mapping with Entra ID sign-in events.
- From an identity and security auditing standpoint, is relying on Key Vault audit logs considered a recommended approach for tracking credential utilization, and what security caveats should we consider?
Q4. Microsoft Best Practices for Auditable Credential Architecture
- For strict incident response (e.g., verifying if a leaked client secret was actively exploited in delegated token flows), what is the official Microsoft recommendation? (e.g., enforcing single-secret lifecycle governance, or migrating entirely to Secretless architectures such as Managed Identities and Workload Identity Federation?)
Thank you in advance for your insights.Hello,
I am currently designing an auditing and monitoring architecture to track the usage of credentials (Certificates, Secrets, and Federated Credentials) configured on Microsoft Entra App Registrations.
For validation, I configured multiple credentials under a single App Registration:
- Two X.509 Certificates (
clientAssertion)
- Two Client Secrets (
clientSecret: e.g., auto-screte and test-screte)
- One Workload Identity Federation Credential (
fic-asw-federation)
I tested token issuance and refresh operations under non-interactive delegated user flows and observed the resulting logs in AADNonInteractiveUserSignInLogs and SigninLogs.
1. Observed Limitations
- Federated Identity Credential (FIC): The
FederatedCredentialId column in AADNonInteractiveUserSignInLogs captures the exact GUID, enabling a 1:1 match with audit logs (AuditLogs).
- Client Secrets & Client Assertions: While
ClientCredentialType shows clientSecret, the ServicePrincipalCredentialKeyId column is empty/null in user sign-in log schemas. When multiple active secrets exist on the application, it is impossible via KQL to determine which specific Secret ID (KeyIdentifier) was authenticated for a given sign-in event.
Q1. Secret Key ID Availability in User Sign-in Logs
- While
AADServicePrincipalSignInLogs includes ServicePrincipalCredentialKeyId, user-context logs do not. Is there any existing column or property within AuthenticationProcessingDetails in AADNonInteractiveUserSignInLogs that records the specific keyId of the Client Secret or Certificate used?
Q2. Alternative Methods Outside of KQL
- Outside of Log Analytics KQL queries, are there official alternative mechanisms (e.g., specific Microsoft Graph endpoints, Entra Recommendations for unused credentials, or Workload Identity Protection telemetry) to audit and trace the exact usage of application credentials?
Q3. Feasibility & Security Review of Azure Key Vault (AKV) Logging
- To compensate for Entra ID's logging gap, we are evaluating storing the Client Secrets in Azure Key Vault and tracking access via Key Vault Diagnostic Logging (
SecretGet events).
- Because backend applications typically read the secret from AKV once at startup and cache it in memory across thousands of token requests, this will not offer 1:1 transaction-level mapping with Entra ID sign-in events.
- From an identity and security auditing standpoint, is relying on Key Vault audit logs considered a recommended approach for tracking credential utilization, and what security caveats should we consider?
Q4. Microsoft Best Practices for Auditable Credential Architecture
- For strict incident response (e.g., verifying if a leaked client secret was actively exploited in delegated token flows), what is the official Microsoft recommendation? (e.g., enforcing single-secret lifecycle governance, or migrating entirely to Secretless architectures such as Managed Identities and Workload Identity Federation?)
Thank you in advance for your insights.