Back to skill

Security audit

Pptx Anthropic

Security checks for vulnerabilities and agentic risk

Overview

This presentation skill is mostly coherent, but it uses risky native LibreOffice shimming and broad file-modifying helpers that need review before installation.

Install only in an isolated, unprivileged environment and use copies of presentations. Be especially cautious with untrusted PPTX files, because rendering may invoke LibreOffice with a native LD_PRELOAD shim, and avoid relying on the bundled DOCX/XLSX helpers unless you intentionally want broader Office-document behavior.

Vulnerability Patterns
  • Tool Hijacking and SpoofingModifies or replaces tools so legitimate-looking calls execute attacker logic
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
Findings (4)

T07 · Tool Hijacking and Spoofing

Error
Location
scripts/office/soffice.py:24
Finding

Predictable Shared Library Path Enables LD_PRELOAD Hijacking

Content
View full analysis
dict: env = os.environ.copy() env["SAL_USE_VCLPLUGIN"] = "svp" if _needs_shim(): shim = _ensure_shim() env["LD_PRELOAD"] = str(shim) return env _SHIM_SO = Path(tempfile.gettempdir()) / "lo_socket_shim.so" def _ensure_shim() -> Path: if _SHIM_SO.exists(): return _SHIM_SO src = Path(tempfile.gettempdir()) / "lo_socket_shim.c" src.write_text(_SHIM_SOURCE) subprocess.run( ["gcc", "-shared", "-fPIC", "-o", str(_SHIM_SO), str(src), "-ldl"], check=True, capture_output=True, ) src.unlink() return _SHIM_SO ``` ### Technical Analysis The helper stores its native shim at the predictable shared path `/tmp/lo_socket_shim.so`. If that path already exists, `_ensure_shim()` accepts it without checking its owner, permissions, file type, content, or cryptographic digest. `get_soffice_env()` subsequently places the accepted path in `LD_PRELOAD`. The dynamic loader therefore loads the shared object into the LibreOffice process before normal libraries. A malicious shared object can use a constructor function to execute arbitrary native code immediately when LibreOffice starts. The same predictable path also creates a time-of-check/time-of-use risk. Even if the legitimate script initially determines that the file does not exist, another local process may attempt to replace or redirect the output while compilation is occurring. The predictable C source path is similarly unsafe, although compromise of the resulting shared object is the primary risk. ### Attack Path 1. The attacker has access as another local user or through another process sharing the same temporary directory. 2. Before the Skill invokes LibreOffice, the attacker cre ...[truncated 1016 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/add_slide.py:89
Finding

Unvalidated Slide Source Allows Path Traversal and Local File Copying

Content
View full analysis
None: slides_dir = unpacked_dir / "ppt" / "slides" rels_dir = slides_dir / "_rels" source_slide = slides_dir / source if not source_slide.exists(): print(f"Error: {source_slide} not found", file=sys.stderr) sys.exit(1) next_num = get_next_slide_number(slides_dir) dest = f"slide{next_num}.xml" dest_slide = slides_dir / dest source_rels = rels_dir / f"{source}.rels" dest_rels = rels_dir / f"{dest}.rels" shutil.copy2(source_slide, dest_slide) if source_rels.exists(): shutil.copy2(source_rels, dest_rels) ``` ```python unpacked_dir = Path(sys.argv[1]) source = sys.argv[2] if not unpacked_dir.exists(): print(f"Error: {unpacked_dir} not found", file=sys.stderr) sys.exit(1) source_type, layout_file = parse_source(source) if source_type == "layout" and layout_file is not None: create_slide_from_layout(unpacked_dir, layout_file) else: duplicate_slide(unpacked_dir, source) ``` ### Technical Analysis The `source` command-line argument is appended directly to the slide directory without restricting it to an expected filename such as `slide2.xml`. `Path` preserves relative traversal components, so a value containing `../` can resolve outside `unpacked_dir/ppt/slides`. The script only checks whether the resulting path exists. It does not resolve the path and verify that it remains under the intended slide directory. `shutil.copy2()` consequently copies the selected external file into the unpacked presentation as a newly named slide. Normal packing parses files ending in `.xml`, which limits straightforward disclosure through the standard workflow to content that can pass XML processing. Nevertheless, readab ...[truncated 1340 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/office/unpack.py:45
Finding

Unbounded Office Archive Extraction Enables Resource Exhaustion

Content
View full analysis
Remediation
View remediation
MAX_FILES: raise ValueError("Archive contains too many entries") total = 0 for info in infos: if info.file_size > MAX_ENTRY_SIZE: raise ValueError("Archive member is too large") total += info.file_size if total > MAX_TOTAL_SIZE: raise ValueError("Archive expands beyond the permitted size") if info.compress_size == 0 and info.file_size > 0: raise ValueError("Suspicious compression metadata") if info.compress_size and info.file_size / info.compress_size > MAX_RATIO: raise ValueError("Suspicious compression ratio") ``` ]]>

T08 · Insecure Dependencies

Note
Location
SKILL.md:226
Finding

Unpinned Global Dependency Installation Creates Supply-Chain Exposure

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (44)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

If the skill package really includes generic LibreOffice subprocess execution plus LD_PRELOAD shims while presenting itself as a simple PPTX utility, that hidden execution complexity materially increases risk. It can expose arbitrary document-conversion surfaces and environment manipulation not obvious from the trigger text, making misuse and exploitation through crafted documents or prompts more likely.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The trigger language is extremely broad: any mention of decks, slides, presentations, or .pptx files invokes the skill. In an agent system, overly broad routing can cause powerful shell/file-modifying workflows to activate in contexts where they are unnecessary, increasing exposure to prompt injection in document content and accidental destructive operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The helper operates on DOCX internals (word/document.xml) even though the skill is declared as PPTX-only. In an agent setting, this scope mismatch is dangerous because a PPTX-triggered workflow could unexpectedly read or modify Word documents, violating user expectations and enabling unintended cross-format file tampering.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/office/soffice.py (reported line 25)May include surrounding context.

python
def get_soffice_env() -> dict:
    env = os.environ.copy()
    env["SAL_USE_VCLPLUGIN"] = "svp"

    if _needs_shim():

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

Setting LD_PRELOAD to inject a custom shared library into LibreOffice changes process behavior at the dynamic linker level, which is a powerful and dangerous capability. In a .pptx-processing skill, this is far outside expected functionality and creates a covert execution path for arbitrary native code whenever the helper runs.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

Invoking a system compiler to build executable native code is unnecessary for routine presentation processing and introduces a supply-chain and local-environment trust dependency. If gcc, temp files, or resulting artifacts are tampered with, the skill can execute attacker-influenced code under the agent's privileges.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The embedded shim hooks libc socket, listen, accept, and close to bypass AF_UNIX restrictions and even forces process exit in close(). Intercepting core libc behavior is highly invasive, can destabilize execution, and is effectively a sandbox-evasion technique that is inappropriate for a presentation skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

This file implements Word .docx redlining validation even though the declared skill scope is PPTX-only. That capability mismatch weakens trust boundaries and may cause the agent to process document types outside its intended domain, increasing the chance of unintended file handling, hidden data flows, or policy bypass through mislabeled skill behavior.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill advertises shell execution and file read/write workflows but does not declare any explicit tool scope or allowed-tools constraints. In an agent environment, that increases the blast radius of prompt injection or operator error because the skill can induce use of powerful capabilities without an auditable least-privilege boundary.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation instructs unpacking, manipulating, cleaning, and packing presentation files but does not warn users that these steps modify files and can create new artifacts. Missing warnings reduce informed consent and increase the chance of accidental data loss, corruption, or unintended modification of untrusted documents.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The module docstring explicitly describes DOCX run-merging behavior, which contradicts the skill metadata that says the skill should be used for PPTX files. This inconsistency increases the risk of unsafe routing and maintenance mistakes, because operators and downstream automation may trust the declared PPTX-only boundary while the code is built to alter Word documents.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The function writes modified XML back to word/document.xml in place with no confirmation, backup, or dry-run mode. In an automated agent context, silent in-place mutation can destroy user data, corrupt documents, or apply unintended edits without visibility, especially when combined with the skill/file-type mismatch.

Content

No source excerpt is available for this finding.