Base64-encoded data in JSON

JSON data can contain base64-encoded data within certain attributes. For example:

{ "user": { "id": "12345", "name": "John Doe", "profilePicture": "data:image/png;base64,iVBORw0KGgoAAAAN...", "photos": [ { "id": "photo1", "description": "A scenic view", "image": "asset:3ll16o0nna40..." }, { "id": "photo2", "description": "A portrait", "image": "asset:1apxbn5jxphn..." } ] }, "metadata": { "timestamp": "2024-12-24T12:00:00Z", "source": "Generated Example" } }

Deep CDR can be configured to perform an in-depth inspection of such data by:

  • Decoding base64-encoded content.

  • Recursively sanitizing the extracted data.

  • Re-encoding the sanitized data in base64.

  • Reinserting the processed data back into the JSON structure.