xlsx

Warn

Audited by Gen Agent Trust Hub on Oct 23, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The recalc.py script uses subprocess.run and subprocess.Popen to execute system commands for managing headless display environments and LibreOffice processes.
  • Evidence in recalc.py includes calls to pgrep, Xvfb, soffice, and timeout/gtimeout utilities.
  • Specifically, ensure_xvfb_running() executes Xvfb :99 -screen 0 1024x768x24 and pgrep -f Xvfb.*:99 based on environment conditions.
  • [DYNAMIC_EXECUTION]: The script dynamically creates and writes a LibreOffice Basic macro (Module1.xba) to the user's application support directory to perform formula recalculation.
  • In setup_libreoffice_macro(), the variable RECALCULATE_MACRO (a XML/StarBasic string) is written to ~/.config/libreoffice/4/user/basic/Standard/Module1.xba (Linux) or ~/Library/Application Support/LibreOffice/4/user/basic/Standard/Module1.xba (macOS).
  • The macro is subsequently executed via the soffice CLI using a vnd.sun.star.script URL scheme, which allows execution of the generated local code.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 23, 2026, 02:21 AM