Back to skill

Security audit

ChartAtelier 商务图表智造

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because its renderer enables local-file access, creating a risk that diagram input could expose local files; one referenced checklist was only partly inspected.

Consider the suspicious verdict before installing. The key concern is the renderer fallback’s local-file access and lack of JavaScript and network restrictions; tool scope is also undeclared, and analysis was incomplete for part of a referenced checklist. The scanners did not establish malicious intent, but the incomplete coverage means they could not fully assess the skill.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 82)May include surrounding context.

md
| 交付前挑毛病 | `references/qa-checklist.md` |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 186)May include surrounding context.

md
验收脚本与逐条命令见 `references/qa-checklist.md`;五项全绿才允许进入导出。检查顺序固定为几何 → 排版 → 色彩 → 导出,前一项不过不改后一项,否则改了颜色回来还要重测几何。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 306)May include surrounding context.

md
- `references/qa-checklist.md`:五项自检的可执行判据、验收脚本片段与交付前逐条打勾清单。

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

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/render_diagram.py (reported line 215)May include surrounding context.

python
f"--screenshot={out}",
        page_url,
    ]
    proc = subprocess.run(cmd, capture_output=True, text=True,
                          timeout=max(30, timeout_ms // 1000))
    if not out.exists() or out.stat().st_size == 0:
        tail = (proc.stderr or proc.stdout or "").strip().splitlines()[-4:]

Tainted flow: 'cmd' from os.environ.get (line 202, credential/environment) → 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/render_diagram.py (reported line 215)May include surrounding context.

python
f"--screenshot={out}",
        page_url,
    ]
    proc = subprocess.run(cmd, capture_output=True, text=True,
                          timeout=max(30, timeout_ms // 1000))
    if not out.exists() or out.stat().st_size == 0:
        tail = (proc.stderr or proc.stdout or "").strip().splitlines()[-4:]

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
94% confidence
Finding

The wkhtmltoimage command explicitly enables local-file access while rendering HTML/SVG without sanitization, and does not disable JavaScript or restrict network access. A malicious input could reference readable local files and expose their contents through the rendered output or, where supported, outbound requests; automatic fallback can activate this less-restricted backend.

Content

Scanner excerpt · scripts/render_diagram.py (reported line 233)May include surrounding context.

python
page_url,
        str(out),
    ]
    subprocess.run(cmd, check=True, capture_output=True, text=True, timeout=180)


# --------------------------------------------------------------------------- #