office-sensitivity-labels

Detect and process AIP/DRM-protected Microsoft Office files across platforms.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/chkp-roniz/skills --skill office-sensitivity-labels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-sensitivity-labels
Source: https://github.com/chkp-roniz/skills/tree/main/.github/skills/office-sensitivity-labels
Command: npx skills add https://github.com/chkp-roniz/skills --skill office-sensitivity-labels

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, openpyxl, olefile, pywin32.

What problem does it solve?

Detect and manage Microsoft Office files that are protected by Azure Information Protection (AIP) or DRM, enabling safe access and compliant workflows across platforms.

Core Features & Use Cases

  • Protection detection: identify when files are encrypted or labeled.
  • Cross-platform reading strategies: read unprotected content with pandas/openpyxl, or decrypt with Windows COM automation, or use cross-platform MIP SDK workflows.
  • Module & CLI tooling: Python module for integration and command-line scripts for quick, repeatable tasks.
  • Security & compliance guidance: proper authentication, auditing, and safe handling of decrypted data.

Quick Start

Install the required packages and run detect_protection.py on a file to identify protection, then read protected files with read_protected_excel.py or import excel_reader for programmatic access.

Frequently Asked Questions about office-sensitivity-labels

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read AIP or DRM protected Office files in Python?

To read AIP or DRM protected Office files in Python, use this skill to detect encryption and apply fallbacks like pandas, openpyxl, or Windows COM automation via pywin32 for secure data extraction.

Can I detect if an Excel file is DRM protected before processing?

Yes, you can detect if an Excel file is DRM protected by running the detection script, which identifies encrypted or labeled files using olefile before attempting to read the content.

Does reading protected Office documents work across platforms or only on Windows?

Reading protected Office documents works across platforms using cross-platform MIP SDK workflows, while Windows environments can additionally leverage COM automation via pywin32 for decryption.

What is the best way to extract data from protected xlsx and docx files?

The best way to extract data from protected xlsx and docx files is using this skill's fallback strategies, starting with pandas and openpyxl for unprotected content, then escalating to COM automation or MIP SDK.

Do I need pywin32 to process protected Microsoft Office files?

You need pywin32 only on Windows to enable COM automation for decrypting protected Microsoft Office files, but cross-platform workflows use the MIP SDK without requiring pywin32.

How to handle encrypted Office files not working with standard pandas read operations?

When encrypted Office files fail standard pandas read operations, use this skill to apply Windows COM automation or MIP SDK workflows, ensuring safe cleanup and clear error handling for compliant access.