Back to skill

Security audit

EDIC 设计系统

Security checks for vulnerabilities and agentic risk

Overview

This skill provides coherent design guidance, with ordinary web-code precautions to address before publishing generated pages.

Prefer project-level installation. Before publishing generated pages, self-host reviewed assets or pin CDN resources with integrity checks, and consider the visitor requests made by external fonts. Change toast messages to textContent before displaying untrusted text, and translate interface labels for your audience. The scanner's comment, persistence and incomplete-coverage concerns do not establish malicious behavior.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

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

md
- [Component HTML examples — glass card, docs layout, navbar, toast, accordion, modal, tabs, dropdown](references/EXAMPLES.md)

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/ANTI-PATTERNS.md (reported line 120)May include surrounding context.

❌ Static inline style= attributes

html
<!-- ❌ Wrong — static values bypass token system -->
<div style="padding: 16px; background: #fff; border-radius: 8px;">

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

全局安装

mkdir -p ~/.claude/skills/edic-design-system cp SKILL.md ~/.claude/skills/edic-design-system/

text

> **验证安装成功**:将以下最小 demo 保存为 `test.html`,用浏览器打开——看到橄榄绿按钮即表示样式加载正常;

The installation demo and font setup instruct users to load third-party resources without explaining the privacy and execution implications.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The demo loads JavaScript from a mutable GitHub main branch through jsDelivr without Subresource Integrity, so compromised upstream content could execute with the embedding page's privileges. Although this is an installation demo, the README encourages copying its resource links into projects, potentially propagating the supply-chain exposure. Google Fonts and CDN requests also disclose ordinary request metadata to third parties, but their presence alone does not establish malicious tracking or exfiltration.

Content

No source excerpt is available for this finding.

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

内容:复制 SKILL.md 的设计原则和组件规范部分

方式二:复制到全局 skills

mkdir -p ~/.cursor/skills/edic-design-system cp SKILL.md ~/.cursor/skills/edic-design-system/

text

Every page is required to use a Chinese skip-link label without user locale selection.

Low
Category
Output Handling
Confidence
96% confidence
Finding

The instruction mandates the Chinese text “跳到主内容” for the skip link on every page, without user opt-in or an exception for other output languages. CJK-optimized styling does not justify requiring Chinese interface text regardless of the user's locale.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.