logo

Database

Azure Ai Document Intelligence Api Key

Description

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

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

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

Vulnerable code example

AZURE_DOCUMENT_INTELLIGENCE_KEY=JNYrO34lOMF7GB6NstEdLTA05IQhd8rn3UhtpqaGsylgc2UIhjhtJQQJ99dGrmlOCDwHWteDAAALACOGxWg2
client = DocumentIntelligenceClient(endpoint, AzureKeyCredential("aHBt3RkELcfLTCAFq27DbyXuglSMrMV7ZAY51UKF0MSofqKJml6eJQQJ997KVJ9Qa6z4YicbAAALACOGWXog"))
headers = {'Ocp-Apim-Subscription-Key': 'wXT18UZba1MuhuvEBmfmhgziXHCNobeuwpsZaBxrSncj8vh8N7uYJQQJ99cDPij4MU0EW2Y1AAALACOGRrxt'}
key1: AKRxCN7wBrZglu4ZioX6zj4FXyfJBaf7Bn0l8AK5QzakD8atsTscJQQJ999DpAFwQmApTM9UAAALACOG8KYqAb==