docx

Fail

Audited by Socket on Aug 18, 2026

3 alerts found:

Anomalyx2Malware
AnomalyLOW
scripts/office/unpack.py

No direct malicious activity (e.g., networking, subprocesses, credential theft, or exfiltration) is evident in this fragment. The main security concern is that it extracts an attacker-controlled Office ZIP using zipfile.ZipFile.extractall() without ZIP member path validation, which can enable Zip Slip/path traversal and arbitrary file overwrite. Additional risk comes from rewriting extracted XML files and from modifying sys.path to load helper modules, which could be problematic if the script directory is attacker-influenced. Helper-function internals are not shown, so their safety cannot be fully verified from this module alone.

Confidence: 62%Severity: 66%
AnomalyLOW
scripts/accept_changes.py

This module is primarily a document automation wrapper around headless LibreOffice with explicit macro injection and execution. While it appears intended to accept/remove tracked changes, it writes a LibreOffice Basic module into a persistent /tmp profile and then executes it via an UNO script URL—so security depends heavily on the (unprovided) ACCEPT_CHANGES_MACRO content and the safety of get_soffice_env(). There are also supply-chain/local-path risks due to sys.path manipulation and cross-run interference risk from a fixed /tmp profile directory. Treat as moderately suspicious until the macro payload and imported helper code are reviewed.

Confidence: 52%Severity: 55%
MalwareHIGH
scripts/office/soffice.py

This wrapper executes `soffice` with environment-variable customization and, when Unix sockets are unavailable, writes C source to `/tmp`, compiles it with `gcc`, and injects the resulting shared library into `soffice` via `LD_PRELOAD`. That LD_PRELOAD + runtime compilation pattern is highly suspicious and can enable arbitrary native code execution inside a trusted third-party application. The provided fragment is truncated (the actual `_SHIM_SOURCE` payload is missing), so the true maliciousness cannot be verified from this module excerpt alone; security should be treated as high-risk pending inspection of the shim code.

Confidence: 62%Severity: 83%
Audit Metadata
Analyzed At
Aug 18, 2026, 01:46 PM
Package URL
pkg:socket/skills-sh/npow%2Fclaude-skills%2Fdocx%2F@0955b995b4e0abbbce32a63fb1b18df6f0b1c81ff7fea6bcafc4113c229fbac2