Blocking based on office document metadata

Starting with iBatyr Monitor 5.5, the agent can block files based on office document metadata.

Metadata is data that describes the properties of the file itself, but does not contain the content.

Metadata can be used to more accurately identify and block files on users’ desktops. Use one of the Category metadata fields for this. For example, you can add the value Confidential to a field, and then set it to block files whose metadata contains this value.

Metadata in file properties

Working with metadata is supported only for documents in the following formats:

Format

Extension

Microsoft Office Word

.docx

Microsoft Office Excel

.xlsx

Microsoft Office PowerPoint

.pptx

OpenOffice Text Document

odt

OpenOffice Spreadsheet

.ods

OpenOffice Presentation

odp

The content of metadata depends on the file format and custom settings. The following are properties that can contain metadata:

  • file name,

  • file type,

  • file size,

  • date of creation,

  • date of change,

  • date of last access,

  • access rights,

  • author,

  • location,

  • category, category

  • other properties.

We are interested in the Category field because it contains a value to identify the file.

Note

The Category field may vary depending on the application. Microsoft Office applications already have a Category field, but LibreOffice needs to create it.

Configuring file blocking via metadata

Add a value to the metadata and then set the lock based on it.

Add a value to the Category field

Your actions depend on the office package.

  1. Open the file.

  2. Go to File → Properties → Summary.

  3. In the Categories (Add Propety) field, enter the label name, for example Block.

  4. Save your changes.

Adding a label to a file

The lock is not case sensitive, for example CONFIDENTIAL and Confidential are treated as the same value.

If you want to assign more than one value to the Category field, list them separated by semicolons: Confidential; Important.

Add a blocking rule in the configuration

After adding a value to the Category field of the file, open the iBatyr Monitor web interface and configure the blocking.

  1. Go to Control Panel → Computer Configuration → your configuration → Tags and Access Blocks.

  2. Select the DLP module checkbox.

  3. Click Add Rule +.

  4. Fill in the fields: File Category - Equal to - the value of the Category field, in our case Confidential.

  5. Add other rules as needed, such as blocking for a specific user or domain.

  6. Save your changes.

Adding a label to the configuration

After saving the changes, the user will see the message “Could not access the file” when trying to open the file.

Blocking Rules for Multiple Values¶

If you have assigned multiple values to the Category field, use regular expressions to block.

  1. Metadata contains the values *Confidential; Important*.

    To block by value Confidential or Important, use the Matches operator and enter in the Value field:

(^|;)конфиденциально($|;)|(^|;)важно($|;)
Illustration 5 — Blocking based on office document metadata
  1. Metadata contains the values *Confidential; Important*.

    To block by value Confidential, use the Matches operator and enter in the Value field:

(^|;)конфиденциально($|;)
Illustration 6 — Blocking based on office document metadata
  1. The metadata contains the values *Confidential*.

    To block by value Confidential or Important, use the Contained in operator and enter in the Value field:

конфиденциально важно
Illustration 7 — Blocking based on office document metadata