docx
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill performs runtime compilation and script generation. The script
scripts/office/soffice.pycontains a hardcoded C source string (_SHIM_SOURCE) that is compiled into a shared object viagccand loaded into thesofficeprocess usingLD_PRELOADto work around environment-specific socket restrictions. Additionally,scripts/accept_changes.pywrites a LibreOffice Basic macro (ACCEPT_CHANGES_MACRO) to a temporary user profile at runtime to automate the acceptance of tracked changes. - [COMMAND_EXECUTION]: The skill relies on several external binaries executed via subprocess calls, including
gccfor shim compilation,soffice(LibreOffice) for document processing,pandocfor reading document content,pdftoppmfor rendering verification, andgitfor performing diffs during validation. These commands are executed using argument lists, which prevents standard shell injection. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted Word documents (
.docx,.dotx). While binary document formats have a high attack surface, the skill implements significant defensive measures to mitigate this risk, such as using thedefusedxmllibrary to prevent XML-based attacks and verifying archive integrity. - [SAFE]: The skill demonstrates strong security-conscious development practices. The
safe_extractfunction inscripts/office/helpers/__init__.pyexplicitly prevents ZipSlip (path traversal) and symlink attacks by resolving paths and verifying they remain within the target directory. The instructions inSKILL.mdalso advise the agent to proactively remove symlinks from unpacked documents to further reduce the risk from untrusted files.
Audit Metadata