xlsx
Warn
Audited by Gen Agent Trust Hub on Apr 28, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Runtime compilation of embedded C source code.
- The file
scripts/office/soffice.pyembeds C source code in the_SHIM_SOURCEvariable. - The script writes this code to the temporary directory and executes
gccviasubprocess.run()to compile it into a shared object library (lo_socket_shim.so). - [COMMAND_EXECUTION]: Process injection via LD_PRELOAD.
- The
scripts/office/soffice.pyscript sets theLD_PRELOADenvironment variable to the path of the compiled shared library before launching thesofficeprocess. - This technique shims standard socket-related system calls (
socket,listen,accept,close,read) to redirect application IPC behavior. - [COMMAND_EXECUTION]: Modification of host application configuration.
- The
scripts/recalc.pyscript automatically writes a StarBasic macro (Module1.xba) to the user's LibreOffice configuration directory (~/.config/libreoffice/or~/Library/Application Support/LibreOffice/). - This macro is used to force formula recalculation and save the document, which modifies the execution environment of the spreadsheet software.
- [COMMAND_EXECUTION]: Execution of system-level binaries.
- Multiple scripts use
subprocess.run()to invoke external utilities such asgitfor diffing documents,sofficefor recalculation, andgccfor compilation tasks. - [PROMPT_INJECTION]: Attack surface for indirect prompt injection.
- Ingestion points:
scripts/office/unpack.pyandscripts/recalc.pyprocess untrusted external spreadsheet files (.xlsx, .csv) and XML content. - Capability inventory: The skill has extensive file-write and command-execution capabilities, including the ability to compile and inject binaries.
- Sanitization: While the skill uses
defusedxmlto mitigate XML-based attacks, the lack of boundary markers or instructions to ignore embedded content in processed data creates a potential surface for indirect injection attacks.
Audit Metadata