logo

Database

Azure Ai Language Api Key

Description

The source code repository contains sensitive information: Azure AI Language API Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Azure AI Language API Key patterns in source code and configuration files

Vulnerable code example

LANGUAGE_KEY=zH1knbhajF9QxzQue0Mgef7gM8cxD4lqpdPYBcSTOuZNKHoCXQvYJQQJ991LcjnaUOH9wmgvAAAaACOGZLdA
client = TextAnalyticsClient(endpoint, AzureKeyCredential("cMhlNZMsOqaqQMl0Zr7qeF1LHErsyH6ep6OeBO4f3VrHZpRIeqziJQQJ998HpoLGtuE4e46QAAAaACOGXx7U"))
headers = {'Ocp-Apim-Subscription-Key': 'QBnQTatHnilahyFNth5NQQtKtOYbXhaeI15jA63ZprjqzXOklB3DJQQJ99YEQ2ExCXrlZDNkAAAaACOGcnAc'}
key1: q6BaXskNPuS2vEaKsOVvP6kXD6exkq3Gw7dbVIZE6uo2HbaaTNhXJQQJ99XDNJAQy5KP58HgAAAaACOGG4mpAb==