logo

Database

Azure Event Hub Connection String

Description

The source code repository contains sensitive information: Azure Event Hub Connection String

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    Matches Azure Event Hub Connection String patterns in source code and configuration files

Vulnerable code example

Endpoint=sb://mynamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=Gdfi2lb4fqNdozFGTRUsvfqZSMCMzfh/2oj02CZ0LPE=
EVENTHUB_CONNECTION_STRING="Endpoint=sb://contoso-prod.servicebus.windows.net/;SharedAccessKeyName=SendPolicy;SharedAccessKey=aB3dEfGhIjKlMnOpQrStUvWxYz0123456789AbCdEf=;EntityPath=myeventhub"
connectionString = 'Endpoint=sb://contoso-gov.servicebus.usgovcloudapi.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=Qw3rTy6uIoP9aSdFgHjKlZxCvBnM01234567890AbCd='