docx
Audited by Socket on Jul 25, 2026
2 alerts found:
AnomalySecurityThis module performs headless LibreOffice processing but does so by writing (or reusing) and executing a LibreOffice Basic macro module via a UNO script URL. The lack of macro payload visibility (ACCEPT_CHANGES_MACRO is not shown) and the weak reuse check for an existing Module1.xba in a fixed /tmp profile elevate supply-chain risk: a tampered or stale macro could be executed. There is no clear evidence of network exfiltration or reverse shells in the snippet, but macro execution is a high-impact capability, output_file is not constrained, and timeout handling may incorrectly report success. Overall: potentially high security risk due to macro injection/execution and insufficient integrity controls on the macro code.
This module is primarily a LibreOffice launcher that adds a temporary profile and environment modifications, but it also contains a high-risk optional pathway: it can write C source, compile a native shared library with gcc, and inject it into the soffice process via LD_PRELOAD. While no direct exfiltration is visible in the Python, the native shim content (missing/truncated in the snippet) is critical; until verified, this represents a substantial supply-chain security risk due to the ability to execute arbitrary native code within the soffice process context.