docx

Warn

Audited by Socket on Jul 25, 2026

2 alerts found:

AnomalySecurity
AnomalyLOW
scripts/accept_changes.py

This 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.

Confidence: 47%Severity: 62%
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%
Audit Metadata
Analyzed At
Jul 25, 2026, 02:14 AM
Package URL
pkg:socket/skills-sh/NousResearch%2Fhermes-agent%2Fdocx%2F@080dfa21a377e3cb29bccd9c344798b9ea0bd2ed64c377713751159b7d84b219
Security Audit — socket — docx