Back to skill

Security audit

Diagram Generator

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign because the reported concerns were judged consistent with its purpose, though the overall confidence is medium and analysis was incomplete.

The verdict is benign, but not a guarantee of safety. Skillspector inspected 35 of 36 components, with the checker script only partially inspected and five binary images outside its analysis scope. Consider this incomplete evidence when deciding whether to install.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · AGENTS.md (reported line 44)May include surrounding context.

md
7. Replace every placeholder with concrete content from the brief or a clearly labeled assumption.
8. Run the final audit checklist from `resources/generation-rules.md` before returning the file.

## Output Rules

- Return only the final HTML when the user asks for a file body.
- If writing to disk is available, create a meaningful filename such as `system-map.html`.

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 37)May include surrounding context.

md
7. 返回文件前**必须**运行 `node scripts/check-diagram.mjs <output.html>`;检查器以非零退出码报告的任何错误都必须修复后重新运行,直到通过。检查器不可用时,按 `resources/generation-rules.md` 的"Reliability Guarante

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.en.md (reported line 127)May include surrounding context.

bash
mkdir -p ~/.claude/skills
ln -s /absolute/path/to/diagram-generator ~/.claude/skills/diagram-generator

Then ask:

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 127)May include surrounding context.

bash
mkdir -p ~/.claude/skills
ln -s /absolute/path/to/diagram-generator ~/.claude/skills/diagram-generator

然后这样提问:

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.en.md (reported line 144)May include surrounding context.

bash
mkdir -p ~/.codex/skills
ln -s /absolute/path/to/diagram-generator ~/.codex/skills/diagram-generator

Gemini

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · README.md (reported line 144)May include surrounding context.

bash
mkdir -p ~/.codex/skills
ln -s /absolute/path/to/diagram-generator ~/.codex/skills/diagram-generator

Gemini

L17 requires English output without offering a language choice or documenting a justification.

Low
Category
Output Handling
Confidence
98% confidence
Finding

The instruction explicitly requires all visible text to be in English. It provides neither a user opt-in nor a documented reason that this smoke test must use English.

Content

No source excerpt is available for this finding.