Image inspection and redaction

Cloud Data Loss Prevention (DLP) can inspect for and redact sensitive content that exists within images. Images must first be encoded in base64 and an image type must be specified. Inspection and redaction are two distinct actions:

  • Inspection: Cloud DLP inspects the submitted base64-encoded image for the specified intoTypes. It returns the detected InfoTypes, along with one or more set of pixel coordinates and dimensions. Each set of pixel coordinate values and dimension values indicate the upper-left corner and the dimensions of bounding boxes, respectively. Within each bounding box, sensitive data was found.
  • Redaction: Cloud DLP inspects the submitted base64-encoded image for the specified infoTypes. It returns a new base64-encoded image is returned in the same image format as the original image. Cloud DLP redacts—or masks with opaque boxes—any sensitive data findings. You can configure the color of these boxes in the request.

Inspection example

Take the following image as an example input:

Image before redaction

To inspect this image using Cloud DLP, you can use the following JSON request to submit the base64-encoded image to the Cloud DLP API. You can try this request in APIs Explorer. (To avoid having to authorize, click Execute without OAuth.)

JSON input:

POST https://dlp.googleapis.com/v2/projects/[PROJECT-ID]/content:inspect?key={YOUR_API_KEY}

{
  "item":{
    "byteItem":{
      "data":"iVBORw0KGgoAAAANSUhEUgAAAmQAAAArCAAAAADz68vwAAAAAXNSR0IArs4c6QAAIotJREFUeNrtvGe4nVW19n8/q5e9d3pIgEAIIQELnQihiMIBEYhEUEFBBZGDCiIq0kTpiChHURQ9IFKkqaiHo6A0UcFC74Sg1JC6yypPm+33flg7IYBRcv7X//J635P7y15rX8985hhz3nOMMceYc0VoHdbh/18U1g3BOqwj2TqsI9k6rMM6kq3DOpKtwzqSrcM6rCPZOvzfRDKrRK73MV75YTWkwStkyqWWciVrfKGTnJf/5z0TS9JqaTokpWt83MtK+Rt58Sp9rGRf1w7J2JWSZuqJasOa39OVghJ55KWgoPh/NNBIUsza6yGn1acj1aBsolySXGqkTLIakdqSDZmUSd4LKXby8pm8pJacUKzuaMdO6kqpkaTgJK9czsnIkihfvT8yxSKVjKRYBsn6oHTVzOVGsTIZ5cokOcXyr5nHaLVZtmUibElxvytGf2+eQ1mKG5EUCr64prn1NSn3jX866JGsqZSTlQ8mDVeyxY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twVI7718TOM6Dw63XwOsb/Xsv4vJyBweEtsz2B4I1ryj/wECBGj1TK9NaBFgiC5u1NXFvaVOOCy6NfeGgCVbSXoDMZkzAUcChBwP1vTa5aFn6FYuk5Uf23nPtsQxowfWO5YU38sS43oO3RKcwWIhW3n6MVr3+2T/QhCohujo77zufs8/uua1bFl9emWNVxJfiz9MmjqgQCH6F6q5jmT/UpLBqRO336Fp9YZvyPliyKsFvepe4z9CXCvq9Rcc15Hsfwe/ot698ihuKq4X3jBpXtX8jRIzWkey/5UIkUZ5gqWqtSCZC0TlN8wxj6J/qa9cR7J/KckUSeo2I0lvOMTqXWcPFNeuN3xpHcn+F7rL3rV5CV/6Rz+T8HpyRhJEb7zFWj28jmT/z9EskiwVJVH9jYfmeB+VCm84JnMSUWFdTPa/dmupKFIo4Mpr8QMsRAqFtfCvobDSx64j2Tr8P4x1v7S4DutItg7/9+P/ADwG26X1rOOpAAAAAElFTkSuQmCC",
      "type":"IMAGE_PNG"
    }
  },
  "inspectConfig":{
    "infoTypes":[
      {
        "name":"PHONE_NUMBER"
      }
    ]
  }
}

Submitting this image to the DLP API's content.inspect method and instructing it to search for the PHONE_NUMBER infoType produces the following JSON.

JSON output:

{
  "result":{
    "findings":[
      {
        "infoType":{
          "name":"PHONE_NUMBER"
        },
        "likelihood":"POSSIBLE",
        "location":{
          "contentLocations":[
            {
              "imageLocation":{
                "boundingBoxes":[
                  {
                    "left":431,
                    "width":11,
                    "height":43
                  },
                  {
                    "left":436,
                    "width":42,
                    "height":43
                  },
                  {
                    "left":479,
                    "width":11,
                    "height":43
                  },
                  {
                    "left":489,
                    "width":48,
                    "height":43
                  },
                  {
                    "left":536,
                    "width":11,
                    "height":43
                  },
                  {
                    "left":540,
                    "width":73,
                    "height":43
                  }
                ]
              }
            }
          ]
        },
        "createTime":"2019-09-18T17:09:56.213Z"
      }
    ]
  }
}

This JSON response tells us that:

  • A phone number was found.
  • The likelihood that the finding is indeed a Social Security number is POSSIBLE.
  • The sensitive content is located within the bounding boxes defined within "boundingBoxes".
  • The inspection was run at the time given within "createTime".

Redaction example

You can redact sensitive data in images using the DLP API's image.redact method. To redact the phone number in this image, use the following JSON request to submit the base64-encoded image to the DLP API. You can try this request in APIs Explorer (To avoid having to authorize, click Execute without OAuth.)

JSON input:

POST https://dlp.googleapis.com/v2/projects/[PROJECT-ID]/image:redact?key={YOUR_API_KEY}

{
  "byteItem":{
    "data":"iVBORw0KGgoAAAANSUhEUgAAAmQAAAArCAAAAADz68vwAAAAAXNSR0IArs4c6QAAIotJREFUeNrtvGe4nVW19n8/q5e9d3pIgEAIIQELnQihiMIBEYhEUEFBBZGDCiIq0kTpiChHURQ9IFKkqaiHo6A0UcFC74Sg1JC6yypPm+33flg7IYBRcv7X//J635P7y15rX8985hhz3nOMMceYc0VoHdbh/18U1g3BOqwj2TqsI9k6rMM6kq3DOpKtwzqSrcM6rCPZOvzfRDKrRK73MV75YTWkwStkyqWWciVrfKGTnJf/5z0TS9JqaTokpWt83MtK+Rt58Sp9rGRf1w7J2JWSZuqJasOa39OVghJ55KWgoPh/NNBIUsza6yGn1acj1aBsolySXGqkTLIakdqSDZmUSd4LKXby8pm8pJacUKzuaMdO6kqpkaTgJK9czsnIkihfvT8yxSKVjKRYBsn6oHTVzOVGsTIZ5cokOcXyr5nHaLVZtmUibElxvytGf2+eQ1mKG5EUCr64prn1NSn3jX866JGsqZSTlQ8mDVeyxYIrralBWoMoa7zhucnLKkhp/TXtfNEXlVdzVYMve0rKSiWtuVdBIfiyL4pIMpVQUIh8gVBeS5IlDWsqZRGtrR4KXsXVHE4IJV+Mm1o8VaaipByViHxRUrtZlDIz4NJ+Wyga15DSqKZuU5G8qziVfSF3tVLIa5GUNLKaLw43K0Pj1amXJFvuaVeQKykpr6Zft09Kq4Vu3VdsWb6o4LN+W87LWaE2WOmX8qpMObJleRV9Ua708vqm8vdIlldMtcccX+z0K7zWj5pi0ZQjEclTtJW4+f/RhHpbLmq12fVFIlsW0ZrIW179zxvkWaH8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/qa9cR7J/KckUSeo2I0lvOMTqXWcPFNeuN3xpHcn+F7rL3rV5CV/6Rz+T8HpyRhJEb7zFWj28jmT/z9EskiwVJVH9jYfmeB+VCm84JnMSUWFdTPa/dmupKFIo4Mpr8QMsRAqFtfCvobDSx64j2Tr8P4x1v7S4DutItg7/9+P/ADwG26X1rOOpAAAAAElFTkSuQmCC",
    "type":"IMAGE_PNG"
  },
  "imageRedactionConfigs":[
    {
      "infoType":{
        "name":"PHONE_NUMBER"
      }
    }
  ]
}

Submitting this image to the DLP API's image.redact method and instructing it to redact content corresponding to the PHONE_NUMBER infoType produces the following JSON.

JSON output:

{
  "redactedImage":"iVBORw0KGgoAAAANSUhEUgAAAmQAAAArCAAAAADz68vwAAAYBElEQVR42u1cCZhU1bGu2337dk/3LIwwyOIg6wzGBTdGQECiRuMCQjAqimsUV9wREUU2JUBCjHEXxQCJis8tvigugBu4DOIIIjCgDCDL7L3c23c/9apOzyBBQMe8vAd+fZEZZvou59T566+/6tQVMHscSAe07Gjp+f+hI7tuWZBlQZY9siDLHlmQZUGWBVkWZNkjC7LskQVZFmRZkB1IIHPQQDfzT735H7scad9D30QLMU5fjL1aga50PfR+2FxCl193+QU/Za+nezRAerD3o5fD4Quc711HT7Gd5pGamBmq4+/9PilEn+brCT7Tpz/6T0KHnKguWj4PadGfD5M5ZAlh+34SXbHHdXYydmJb79VIjklfLOPHGN3Rne/QygintXb3ekFa+J5v/Pi1sXxfona36ySqLLQs9AmBDLR/WcTvj9OXJ2ZQYtPM0Reu7zktBZkhp0t3aek86PG7+EALV9fcv0BmiWb38jDJMNrtsD20hTS15wr7J7rzrog1Pdx1dT26tfMvzLY7Me367UfizNnDda6/O0/sxad2OoPgj6008Z7JgNuNgFtASDzpFs9DOoH582AyQWGQiER4vsWc8n0j+Gxs3ZR4wMQ+wpTBbmv9KBc1zF1u32jT332dzmf/6NUVnk0LWvf968iZ4gSXNCY8ufDkMfuEGdOIjYI0gMPE57o2K4YWMxmaRhMhtWwe9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oNLJvrZUwh8VW7lRzC4nKc0zQnTyQxLQU9nZj0+FWGNKUHDndgmPVocD95g8N43zlei7/TKJwkF5j5MZxpyroyfeynMraybJpMrek1vQVjNLV3e2QHnRDI1fwq2UnMZ1BqUUNcTzLSacos5BsHrWMrfcf17QWh2zOJjEtjtDe4Kd5oQj+ZeYKsJrdUk+1nG+Q2N4t6MnvTZWN5tWzIMJt6OGWfu+fJlk6jqTPUZQHBgKlzsWlrjX6fduRKWiRkLWHKV0MsR/BeIZ1OXxt5NRpcuUnA15iseBt5OZF4xbEzT5V9kxb95OqZjm5hu9zywMGVs5AEDTB/iCEL+XF5Hy4voWMzYklV67yHSl/JFwzT5sRRl0lCY9NA5QtXFo/OFIwsdpCU19SLz+O1+JaGHFYmfSTmtkxGe5qezRUPwqrPV+gufWpyBca0ZQeL6Sd3aZ7ODJ+mqMv9DRm5Df5N3LPiXAeaA8fpGCf73qB9xk5BZGhmLs28uUNjNZtbaVsKmv1s7zLTtkcK2SVz1fKPFoFENuuw27m2hBmXCTjjsgVLNJbd8sUyzDSbETQtyfaufHfMzfiqKd/VMMi3bfkOmi9/5spposl0jfLpRBaSljJ1bzvT85LMKO6EJDIhCSwDBAcXwYvEWsIjiNTyTUXmZSkzw4BpCXmReb1I9snbTe9E0a8SKBHp8etHPG6ZvIkmX8uMN9P8n2YGEpmmxlQTaKQI923JWbacYAa2tkxKrab2YPlGhOxjYktyo57sTrIzTsH2lnM3y+cURJ+TPUbe2VG+Z6YIhx6/J2F5PP505jVD6VAH/Ctx2eP/+iAPCYBy7T5fzMm+QZ49/j2Q+d7YmUv0Pb0clgVZ9vj38dUsdXX5FpOdBVn2+F8/fNHc509JBmZBlj3+MyCTKEuJnVlXFmTZ4385XIomlAl3n/+bhCzIsse/BzP5moJ879fPgix7/EdSS1nAy3S4OFmQZY/95ciCLHtkQZYFWRZk/y/H/wDzy1Z3LOk10QAAAABJRU5ErkJggg=="
}

Using a base64 decoder, we can see that the returned "redactedImage" value looks like the following. Note that the phone number has been redacted:

Image after redaction

Resources

To learn more about image inspection and redaction in Cloud DLP, see the following how-to topics:

For API documentation, see:

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Data Loss Prevention