Back to skill

Security audit

api文档生成

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward API documentation pipeline with no code execution, network access, persistence, or hidden high-impact behavior.

Install this if you want a structured Python API documentation workflow. Be aware that its bundled template and checklist are Chinese-language by default, so users needing English or multilingual output may want to adjust the skill or explicitly request the desired language.

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 (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill description and usage guidance are broad enough to match many ordinary requests for documentation help, which can cause the agent to invoke this skill in situations where the user did not explicitly request this pipeline. Over-broad triggering increases the attack surface by enabling unintended file access and multi-step processing of repository content, especially because later steps instruct loading additional local files.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The template’s headings and instructional placeholders are entirely in Chinese, which imposes a specific language on generated API documentation. There is no indication that Chinese is optional, user-selected, or required for a justified region-specific context, which matches the locale-policy concern for natural-language content.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The entire checklist is written in Chinese and presents the documentation requirements as mandatory, but there is no indication that use of Chinese is optional or that this is a China-specific or Chinese-language-only skill. That creates a natural-language locale constraint without user opt-in or documented justification, which falls under the language/locale policy violation category.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.