xlsx
Audited by Socket on Oct 3, 2026
3 alerts found:
Anomalyx3This module is primarily a LibreOffice-driven formula recalculation tool, but it also installs (writes) a persistent LibreOffice Basic macro into a user profile directory and then triggers that macro via a soffice script URL. Because the actual RECALCULATE_MACRO payload is not included in the provided fragment (and get_soffice_env is external), the code cannot be confirmed as harmless; the macro could be leveraged for sabotage or arbitrary actions depending on its content.
The fragment is nonfunctional as provided because _SHIM_SOURCE is incomplete and causes a syntax error. Its apparent purpose is a LibreOffice compatibility wrapper, but the planned dynamic compilation and LD_PRELOAD injection are security-sensitive. The fragment contains no demonstrated malicious payload; assessment of the shim's behavior requires the missing C source. Use of predictable temporary paths also creates a potential race or tampering concern if the code is repaired and executed in a shared environment.
The code appears to implement legitimate Office-document unpacking and XML normalization, with no direct evidence of malware, credential theft, network exfiltration, or code execution. The primary security issue is unsafe archive extraction without explicit path validation, which can permit arbitrary file overwrite via malicious archive entries; ZIP bomb resource exhaustion is also possible. Review the imported helper modules separately.