T06 · System Persistence
- Location
recalc.py:17- Finding
Persistent Installation of a LibreOffice Application Macro
- Content
View full analysis
Sub RecalculateAndSave() ThisComponent.calculateAll() ThisComponent.store() ThisComponent.close(True) End Sub """ try: with open(macro_file, "w") as f: f.write(macro_content) return True except Exception: return False ``` ### Technical Analysis The recalculation script installs `Module1.xba` in LibreOffice's persistent, user-wide macro directory. On Linux, the target is under `~/.config/libreoffice/4/user/basic/Standard`; on macOS, it is under `~/Library/Application Support/LibreOffice/4/user/basic/Standard`. This macro remains installed after the script exits and can affect later LibreOffice sessions. Installing application-level executable content is not necessary ...[truncated 1556 chars]- Remediation
View remediation
