docx

Warn

Audited by Socket on Oct 15, 2026

2 alerts found:

Securityx2
SecurityMEDIUM
scripts/office/soffice.py

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.

Confidence: 62%Severity: 86%
SecurityMEDIUM
scripts/accept_changes.py

This module is a document-processing utility that performs headless LibreOffice execution by installing and running a LibreOffice Basic macro from a runtime-writable profile in /tmp. The wrapper itself shows no network access or credential theft, but it provides a strong code-execution primitive (macro write + macro execution via UNO script). Because the macro payload (ACCEPT_CHANGES_MACRO) is not present in the provided fragment, its behavior cannot be verified; if that payload were malicious or tampered, the impact could be substantial within the LibreOffice execution context. Additionally, timeout handling may misreport success, which can undermine output integrity.

Confidence: 45%Severity: 70%
Audit Metadata
Analyzed At
Oct 15, 2026, 07:50 PM
Package URL
pkg:socket/skills-sh/asgeirtj%2Fsystem_prompts_leaks%2Fdocx%2F@6a3bc6e14cb2b6443a55221ed28c540fdaf7f30107a7cd8e131cf297051841f6