Back to skill

Security audit

Digital Finance Presentation Skill

Security checks for vulnerabilities and agentic risk

Overview

The scanners identify a presentation and Keynote related skill with confirmed code execution and dynamic method dispatch concerns; ClawScan rates it suspicious, with medium confidence.

Consider the potential for crafted presentation input or specifications to trigger unintended local actions, and note that some installation and dependency details were not fully assessed. Review the flagged AppleScript and method-dispatch risks and verify dependency versions before installing.

Vulnerability Patterns
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (14)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
99% confidence
Finding

The subprocess call executes AppleScript assembled by callers that interpolate presentation text and paths. Many callers escape quotes but not backslashes, while functions such as set_font interpolate strings without escaping at all; attacker-controlled content can therefore become executable AppleScript and potentially run shell commands with the user's privileges.

Content

Scanner excerpt · keynote-mcp-server/keynote_tools/applescript.py (reported line 98)May include surrounding context.

python
)

    # 用 osascript 命令执行
    proc = subprocess.run(
        ["osascript", "-e", script],
        capture_output=True,
        text=True,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · keynote-mcp-server/keynote_tools/applescript.py (reported line 146)May include surrounding context.

python
"。Keynote 自动化仅在 macOS 上可用。"
        )

    proc = subprocess.run(
        ["osascript", "-l", "JavaScript", "-e", script],
        capture_output=True,
        text=True,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 29)May include surrounding context.

python
rdir = os.path.join(os.path.dirname(out), "render")
    os.makedirs(rdir, exist_ok=True)
    pdf = os.path.join(rdir, os.path.basename(out).replace(".pptx", ".pdf"))
    subprocess.run(["soffice", "--headless", "--convert-to", "pdf", "--outdir", rdir, out],
                   capture_output=True)
    subprocess.run(["pdftoppm", "-png", "-r", "80", pdf, os.path.join(rdir, "pg")],
                   capture_output=True)

Tainted flow: 'rdir' from open (line 26, file read) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 29)May include surrounding context.

python
rdir = os.path.join(os.path.dirname(out), "render")
    os.makedirs(rdir, exist_ok=True)
    pdf = os.path.join(rdir, os.path.basename(out).replace(".pptx", ".pdf"))
    subprocess.run(["soffice", "--headless", "--convert-to", "pdf", "--outdir", rdir, out],
                   capture_output=True)
    subprocess.run(["pdftoppm", "-png", "-r", "80", pdf, os.path.join(rdir, "pg")],
                   capture_output=True)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 31)May include surrounding context.

python
pdf = os.path.join(rdir, os.path.basename(out).replace(".pptx", ".pdf"))
    subprocess.run(["soffice", "--headless", "--convert-to", "pdf", "--outdir", rdir, out],
                   capture_output=True)
    subprocess.run(["pdftoppm", "-png", "-r", "80", pdf, os.path.join(rdir, "pg")],
                   capture_output=True)
    print("RENDER OK ->", pdf)

Tainted flow: 'pdf' from open (line 28, file read) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 31)May include surrounding context.

python
pdf = os.path.join(rdir, os.path.basename(out).replace(".pptx", ".pdf"))
    subprocess.run(["soffice", "--headless", "--convert-to", "pdf", "--outdir", rdir, out],
                   capture_output=True)
    subprocess.run(["pdftoppm", "-png", "-r", "80", pdf, os.path.join(rdir, "pg")],
                   capture_output=True)
    print("RENDER OK ->", pdf)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 36)May include surrounding context.

python
print("RENDER OK ->", pdf)

    # 验证: 绿幕纯度 + 安全区亮度 + 文本层关键词 + 单位折行
    txt = subprocess.run(["pdftotext", pdf, "-"], capture_output=True, text=True).stdout
    segs = txt.split("\f")
    n = len(spec["pages"])
    kws = spec.get("verify", {}).get("keywords", {})

Tainted flow: 'pdf' from open (line 28, file read) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 36)May include surrounding context.

python
print("RENDER OK ->", pdf)

    # 验证: 绿幕纯度 + 安全区亮度 + 文本层关键词 + 单位折行
    txt = subprocess.run(["pdftotext", pdf, "-"], capture_output=True, text=True).stdout
    segs = txt.split("\f")
    n = len(spec["pages"])
    kws = spec.get("verify", {}).get("keywords", {})

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/create_keynote_direct.py (reported line 27)May include surrounding context.

python
def run_applescript(script: str) -> str:
    """执行 AppleScript 并返回结果"""
    try:
        result = subprocess.run(
            ['osascript', '-e', script],
            capture_output=True,
            text=True,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/generate_ailuo_keynote.py (reported line 23)May include surrounding context.

python
def run_applescript(script: str) -> str:
    """执行 AppleScript 并返回结果"""
    try:
        result = subprocess.run(
            ['osascript', '-e', script],
            capture_output=True,
            text=True,

Unverifiable Dependency: setuptools has 11 known advisory(ies) (CVE-2013-1633 (Setuptools vulnerable to Man-in-the-middle attacks); CVE-2025-47273 (setuptools has a path traversal vulnerability in PackageIndex.download that lead); CVE-2024-6345 (setuptools vulnerable to Command Injection via package URL) +8 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Unverifiable Dependency: mcp has 17 known advisory(ies) (CVE-2025-53366 (MCP Python SDK vulnerability in the FastMCP Server causes validation error, lead); CVE-2026-116685 (Model Context Protocol Python SDK: HTTP client transports followed cross-origin ); CVE-2026-59951 (MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enabl) +14 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Unverifiable Dependency: mcp has 17 known advisory(ies) (CVE-2025-53366 (MCP Python SDK vulnerability in the FastMCP Server causes validation error, lead); CVE-2026-116685 (Model Context Protocol Python SDK: HTTP client transports followed cross-origin ); CVE-2026-59951 (MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enabl) +14 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
88% confidence
Finding

The JSON page type selects any callable attribute on the deck object rather than only the documented page-building methods. A crafted specification could invoke non-page operations such as save with attacker-supplied keyword arguments, causing unintended writes or other exposed method side effects; the unseen library limits certainty about the full impact.

Content

Scanner excerpt · scripts/build_stage_deck.py (reported line 21)May include surrounding context.

python
deck = StageDeck(spec.get("scheme", "stage-evolution"), mode=mode)
    for pg in spec["pages"]:
        t = pg.pop("type")
        getattr(deck, t)(**pg)
    deck.save(out)
    print("BUILD OK ->", out, "pages:", len(spec["pages"]))