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": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYAB..."
},
{
"id": "photo2",
"description": "A portrait",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..."
}
]
},
"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.

Was this page helpful?