Aller au contenu principal

Azure Open AI API key

Description​

General​

  • Documentation: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference
  • Summary: Azure is a cloud computing service created by Microsoft. Open AI is an AI service which enables one to train its own LLM to fit its needs. The trained model is then serviced through a REST API, which requires authentication by an API key. This detector finds this key.

Details for Azure Open AI API key​

  • Family: token

  • Category: ai

  • Company: Microsoft

  • High recall: False

  • Validity check available: True

  • Analyzer available: True

  • Revoker available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 5.83

  • Prefixed: False

Secret Analyzer​

Analysis Method​

  • Provider allows scopes enumeration: False
  • Total network call count: 3
  • Total call count may vary: False

HTTP Calls​

Requests are designed to capture metadata and not to function effectively.

  • GET: /openai/batches
  • GET: /openai/files
  • GET: /openai/fine_tuning/jobs

Other Calls​

Non-HTTP queries or HTTP calls made through a third-party app (e.g., Python package). No other calls for this analyzer.

Revoker​

Auth Credentials​

Valid credentials needed to authenticate the request.

  • admin_tenant_id: ID of the Entra tenant of the service principal allowed to manage the leaked resource

  • admin_client_id: Application (client) ID of a service principal holding a role allowing listKeys and regenerateKey on the leaked resource, such as Cognitive Services Contributor

  • admin_client_secret: Client secret matching admin_client_id

  • subscription_id: ID of the Azure subscription owning the leaked resource

HTTP Calls​

List of calls performed by the revoker.

  • GET: /subscriptions/{subscription_id}/providers/Microsoft.CognitiveServices/accounts
  • POST: /subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.CognitiveServices/accounts/{account_name}/listKeys
  • POST: /subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.CognitiveServices/accounts/{account_name}/regenerateKey
  • POST: /{tenant_id}/oauth2/v2.0/token

Revocation Mode​

Revocation is synchronous.