Back to skill

Security audit

knowledge-card-generator

Security checks for vulnerabilities and agentic risk

Overview

This skill coherently generates local Chinese educational HTML card decks, but users should only use trusted or sanitized source content because card text is rendered as HTML.

Install only if you want a Chinese Mo-style educational card generator. Treat generated HTML like executable web content: avoid feeding untrusted pasted HTML or hostile articles unless the card text and image URLs are sanitized, and review the output before sharing it.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (4)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The template concatenates untrusted card fields such as title, paragraphs, list items, quotes, captions, and image URLs directly into HTML and then assigns the result to innerHTML. If any of those values are user-controlled, an attacker can inject arbitrary markup or script into the generated standalone HTML file, leading to stored XSS when the file is opened or shared.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill metadata advertises broad trigger phrases such as “做卡片” and other generic card-related terms, which can cause the agent to invoke this skill in contexts unrelated to HTML knowledge-card generation. Over-broad activation increases the chance of unintended file generation, tool use, or content transformation when the user meant something else, creating a prompt-routing and least-surprise security risk.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document declares lang="zh-CN" and the visible title/UI copy throughout the template is fixed in Chinese. This creates a locale-specific experience without any visible opt-in, fallback, or indication that the skill is intentionally limited to a Chinese-speaking context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The HTML root element sets lang="zh-CN", and the visible UI text throughout the page is also fixed in Chinese. For a general-purpose skill asset, this indicates a language/locale constraint without any user opt-in or explanation that the skill is region-specific.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.dynamic_code_execution

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
assets/smoke_test.js:18