xlsx
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The module
scripts/office/soffice.pyperforms dynamic code generation and execution to handle environment restrictions. - It contains a hardcoded C source string (
_SHIM_SOURCE) designed to shim Unix socket system calls. - At runtime, it writes this source to a randomized temporary directory, compiles it into a shared object using
gcc, and then injects it into thesofficeprocess using theLD_PRELOADenvironment variable. - This mechanism is a legitimate compatibility shim for sandboxed environments and includes security measures to prevent local file swapping attacks.
- [COMMAND_EXECUTION]: The skill executes several external binaries via
subprocess.runto perform its primary functions. scripts/recalc.pyandscripts/office/soffice.pyexecutesoffice(LibreOffice) to recalculate workbook formulas and convert documents.scripts/office/soffice.pyexecutesgccto compile the socket shim when environment restrictions are detected.scripts/office/validators/redlining.pyexecutesgit diffto compare text content and identify untracked changes in Word documents.- In all cases, the scripts build minimal environments for these processes to prevent the accidental exposure of sensitive environment variables or credentials.
- [INDIRECT_PROMPT_INJECTION]: The skill has a large attack surface as it processes untrusted Office documents (
.xlsx,.docx,.pptx) which are parsed and then converted into Markdown or JSON for the agent. - Ingestion points:
scripts/office/validate.pyandscripts/recalc.pyread external files into memory. - Sanitization: The skill proactively mitigates common XML vulnerabilities by using the
defusedxmllibrary for parsing all Office XML components. - Capability inventory: The skill has extensive file-writing and subprocess execution capabilities used for repair and validation tasks.
Audit Metadata