Supported file types and scanning modes

This page lists the types of files that Sensitive Data Protection can scan and describes the scanning modes that Sensitive Data Protection uses to analyze files.

Supported file types in inspection and de-identification operations

The following table shows the types of files that Sensitive Data Protection can inspect and transform (de-identify).

Sensitive Data Protection relies on file extensions and media (MIME) types to identify the types of the files to be scanned and the scanning modes to apply. For example, Sensitive Data Protection scans a .txt file in plain text mode, even if the file is structured as a CSV file, which is normally scanned in structured parsing mode.

File type File extensions Limits Scanning mode Transformation support
Apache Avro

avro

Avro limits Structured parsing
Comma- or tab-separated values

csv, tsv

Structured parsing De-identify content
PDF

pdf

PDF limits Intelligent document parsing
Text

asc, brf, c, c++, cc, cpp, cs, css, cxx, dart, eml, go, h, h++, hh, hpp, hs, htm, html, hxx, ini, java, js, json, jsonl, lhs, m, markdown, md, mkd, ml, mli, ocaml, php, pht, phtml, pl, pm, py, pyw, rb, rbw, rc, rs, scala, sh, shtm, shtml, sql, tex, text, txt, vcard, vcs, wml, xhtml, xml, xsd, xsl, yaml, yml

Plain text De-identify content
Microsoft Word

docm, docx, dotm, dotx

Word limits Intelligent document parsing
Microsoft Excel

xlsm, xlsx, xltm, xltx

Excel limits Intelligent document parsing
Microsoft Powerpoint

potm, potx, pptm, pptx

Powerpoint limits Intelligent document parsing
Image

bmp, gif, jpe, jpeg, jpg, png

  • OCR
  • Image content detection
  • Image content classification
Redaction
Binary

Unrecognized file types and images that can't be scanned using optical character recognition (OCR), image content detection, or image content classification.

Binary

Supported file clusters in discovery operations

During discovery, Sensitive Data Protection organizes the detected files into file clusters. These clusters are groups of similar file types. The following table shows the supported file clusters and file extensions. Not all detected files are scannable.

Files might move between file clusters as Sensitive Data Protection adds support for more file clusters. As scanning support expands, the discovery service might begin to scan files that were previously not scanned. You are billed as described in Discovery pricing.

File cluster File extensions Limits Scanning mode
Text

asc, eml, htm, html, ini, json, jsonL, log, markdown, md, mkd, plist, shtm, shtml, sql, tex, text, txt, vcard, vcs, xsd, xsl

Plain text
Source Code

bat, brf, c, c++, cc, cmd, cpp, cs, css, cxx, dart, go, h, hh, hpp, hs, hxx, java, js, lhs, m, ml, ocaml, php, phtm, phtml, pl, ps1, py, pyw, rb, rbw, rc, rs, scala, scpt, scr, script, sh, sql, vb, vbs, wml, xml, yaml, yml

Plain text
Structured Data

avro, csv, tsv, proto

Structured parsing for avro, csv, and tsv files. Plain text parsing for proto files
Rich Documents

doc, docm, docx, dotm, dotx, pdf, potm, potx, ppt, pptm, pptx, xls, xlsm, xlsx, xltm, xltx

Supported PDF, Microsoft Word, Excel, and Powerpoint files smaller than 30 MiB are scanned. Intelligent document parsing
Images

bmp, gif, heic, ico, jpe, jpeg, jpg, pm, png, svg, tiff, webp

Supported images (bmp, gif, jpe, jpeg, jpg, and png) smaller than 4 MiB are scanned using OCR in regions that support image scanning.
  • OCR
  • Image content detection
  • Image content classification
Executables

ac, air, apk, app, appimage, bas, bin, bms, class, cls, com, command, ctl, ctx, dca, ddf, dep, dll, dob, dox, dsr, dsx, dws, exe, frm, frx, gadget, ipa, mpk, oca, ocx, pag, pgx, pif, pyc, res, run, scb, tlb, vbd, vbg, vbl, vbp, vbr, vbw, vbz, vlx, wct, widget, workflow, wsf, x86, x86_64, xap, xbe, xlm

Not scanned at this time
Archives

7z, a, ace, afa, alz, apk, ar, arc, arj, ark, b1, b6z, ba, bh, cab, car, cdx, cfs, cpio, cpt, dar, dd, dgc, dmg, ear, esd, gca, genozip, gz, ha, hki, ice, ima, img, iso, jar, kgb, lha, lpaq#*, lzh, lzx, mou, pak, paq#*, paq6, paq7, paq8 and variants, partimg, pea, phar, pim, pit, qda, rar, rk, run, s7z, sda, sea, sen, sfx, shar, shk, sit, sitx, sqx, swm, tar, tar.bz2, tar.gz, tar.lz4, tar.lzma, tar.xz, tar.z, tgz, uc, uc0, uc2, uca, ucn, ue2, uha, ur2, war, wim, xar, xp3, yz1, zip, zipx, zoo, zpaq, zz

Sensitive Data Protection scans files within archives that have these file extensions: bz2, cpio, gz, jar, lz4, lzma, tar, tar.bz2, tar.gz, tar.lz4, tar.lzma, tar.xz, tar.z, xz, z, zip

The scanning mode used for each file depends on the type of the file.

Multimedia

3g2, 3gp, 8svx, aa, aac, aax, act, aiff, alac, amr, amv, ape, asf, au, avi, awb, cda, drc, dss, dvf, f4a, f4b, f4p, f4v, flac, flv, gif, gifv, gsm, iklax, ivs, M2TS, m2v, m4a, m4b, m4p, m4p (with DRM), m4v, mkv, mmf, mng, mogg, mov, movpkg, mp2, mp3, mp4, mpc, mpe, mpeg, mpg, mpv, msv, MTS, mxf, nmf, nsv, oga, ogg, ogv, opus, qt, ra, raw, rf64, rm, rmvb, roq, sln, svi, TS, tta, viv, vob, voc, vox, wav, webm, wma, wmv, wv, yuv

Not scanned at this time
AI Models

caffemodel, ckpt, coreml, dlc, ggjt, ggmf, ggml, gguf, h5, keras, llamafile, mar, mleap, nc, npy, npz, onnx, pb, pkl, prompt, pt, pt2, pte, pth, ptl, safetensors, surml, tflite, tfrecords

Not scanned at this time
Unknown Any other file not within another cluster. These are files that lack extensions or use common but non-standard extensions, like .dat or .1 or .2 Not scanned at this time

Unrecognized file types in Cloud Storage

If a file is not recognized during a storage scan, the system will, by default, scan it as a binary file. It attempts to convert the content to UTF_8, and then scans it as plain text.

If a file is not recognized during a discovery scan, the system doesn't scan it.

If you have a collection of files you want to skip because Sensitive Data Protection doesn't recognize them, you can specify an exclusion list using CloudStorageOptions.file_set.regex_file_set.exclude_regex.

Limits on bytes scanned per file

In general, you can limit the number of bytes scanned per file. In the Google Cloud console, you do so by turning on sampling. In the Cloud Data Loss Prevention API, you set the bytes_limit_per_file or bytesLimitPerFilePercent field.

Sampling isn't supported in OCR and intelligent parsing modes. That is, when the following file types are scanned in OCR or intelligent document parsing mode, Sensitive Data Protection ignores any settings that you apply to limit the bytes scanned per file.

  • Image
  • Microsoft Excel
  • Microsoft PowerPoint
  • Microsoft Word