Back to skill

Security audit

Diagram Generator Clawhub

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign with medium confidence: most checks are clear, while purpose alignment and one script review are incomplete.

The verdict is benign, but confidence is medium and the scan is partial: 34 of 35 components were fully inspected, with scripts/check-diagram.mjs only partially inspected. Consider this coverage gap when deciding whether to install; benign does not mean risk-free.

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

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

Gemini

Requires English output without offering a language choice.

Low
Category
Output Handling
Confidence
90% confidence
Finding

L17 explicitly requires all visible text to be in English. The instruction provides neither a user language choice nor a documented reason that English is necessary for this smoke test.

Content

No source excerpt is available for this finding.