Back to skill

Security audit

API Doc Generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a simple API documentation generator with minor routing-quality issues but no hidden code execution, persistence, credential access, or destructive behavior.

Installers should know this skill may activate on broad API-doc terms like OpenAPI or Swagger, so review routing behavior if precise activation matters. The inspected package otherwise appears proportionate for generating API documentation from code the user chooses to provide.

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
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger phrase "API文档" is very broad and can match ordinary discussion about API documentation rather than an explicit request to invoke the skill. This can cause unintended skill activation, leading the agent to process code or generate outputs in contexts the user did not intend, which is a routing and least-surprise security issue.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger phrase "API文档" is extremely broad and can activate this skill for many unrelated conversations about API documentation. Overbroad activation increases the chance that the agent invokes the wrong skill, causing unintended processing of user code or incorrect task routing.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

Using generic standalone triggers like "openapi" and "swagger" makes the skill likely to activate whenever those common technology names appear, even if the user is not asking to generate documentation. This can lead to skill hijacking or misrouting, where unrelated requests are captured by this skill instead of the correct one.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The natural-language instructions, headings, and examples are presented exclusively in Chinese, and the file does not state that the skill is region-specific or that users may interact in other languages. This can be a language policy concern when a skill appears to force a locale without opt-in or justification.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.