Azure IoT shared access key

The Azure IoT shared access key sensitive information type (SIT) in Microsoft Purview identifies credentials used to authenticate Azure IoT devices and services, including shared access keys in Azure IoT connection strings.

This SIT is the newer detector for the credential type covered by the Azure IoT connection string SIT. It supports additional credential variants.

This SIT is included in the All credentials bundled SIT.

Important

You must enable Advanced classification scanning and protection if you want to use a credential scanning SIT in an endpoint DLP policy. This requirement is specific to the combination of credential scanning SITS and endpoint DLP policies. The advanced classification article gives you information about enabling advanced classification, and about configuring endpoints and the supported file types.

Format

A Base64-encoded 256-bit symmetric key. The encoded key contains 44 characters: 43 letters, digits, forward slashes (/), or plus signs (+), followed by an equal sign (=).

Pattern

A sequence of 43 characters consisting of:

  • Uppercase or lowercase letters (A-Z or a-z).
  • Digits (0-9).
  • Forward slashes (/).
  • Plus signs (+).

The 43-character sequence is followed by an equal sign (=), for a total of 44 characters.

Format example:

abcdefghijklmnopqrstuvwxyz0123456789/+ABCDE=

This value illustrates the key format. Key length alone doesn't establish that the SIT will detect a value; the surrounding credential context also matters.

Credential example

The following connection string provides a complete Azure IoT credential example for detection testing. The hostname and key are fictitious documentation values, not credentials for accessing an Azure resource.

HostName=account.azure-devices.net;SharedAccessKeyName=key;SharedAccessKey=abcdefghijklmnopqrstuvwxyz0123456789/+ABCDE=

Use the complete connection string when testing detection. Shortened keys, redacted values, and placeholders aren't suitable substitutes for this positive-test example.

Checksum

No

Keyword Highlighting

Supported

When keyword highlighting is supported in the contextual summary for a sensitive information type or a trainable classifier, in the Contextual Summary view of activity explorer, the keywords in a document that were matched to a policy are highlighted.

Definition

This SIT is designed to match the security information that's used to authenticate Azure IoT devices and services.

It uses several primary resources:

  • Patterns of Base64 encoded 256-bits symmetric key.
  • Patterns of CredentialName, CredentialFeatures, AccountIdentityName, AccountIdentityValue, ResourceType, ResourceName, ID.
  • Patterns of mockup values, redactions, and placeholders.
  • A dictionary of vocabulary.

The patterns identify credentials with reasonable confidence and evaluate patterns for mockup values, redactions, and placeholders. Credential type names or usage descriptions in place of a key aren't suitable for positive detection testing. Use the complete connection string in the Credential example section to test detection.

Keywords

Keyword_SymmetricKey256:

  • SharedAccessKey
  • AccountKey