Back to skill

Security audit

cn-api-doc-writer

Security checks for vulnerabilities and agentic risk

Overview

This skill is a Chinese API documentation helper with a disclosed validation backend, and I found no hidden credential access, persistence, or destructive behavior.

Install only if you want Chinese API documentation behavior. Avoid sending confidential internal specs, endpoint details, or unreleased API documentation to the external validation backend unless you are comfortable with that service processing the content.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 38)May include surrounding context.

md
| Pagination | 分页 | |
| Webhook | 回调通知 | or keep "Webhook" (widely used) |
| SDK | SDK | Don't translate |
| Access Token | Access Token | Don't translate |
| Timestamp | 时间戳 | |
| Deprecated | 已废弃 | |
| Required | 必填 | |

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 228)May include surrounding context.

md
| Pagination | 分页 | |
| Webhook | 回调通知 | or keep "Webhook" (widely used) |
| SDK | SDK | Don't translate |
| Access Token | Access Token | Don't translate |
| Timestamp | 时间戳 | |
| Deprecated | 已废弃 | |
| Required | 必填 | |

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill advertises and instructs use of an executable shell script and a remote validation backend, but it declares no tool scope or execution constraints. That creates a capability mismatch where an agent may invoke shell behavior or networked validation without explicit permission boundaries, increasing the risk of unintended command execution or exfiltration when processing untrusted API specs or documentation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger list is excessively broad and overlaps with ordinary documentation and technical-writing requests, making accidental auto-invocation more likely. When combined with shell and backend validation features, overly broad activation expands the number of contexts in which the skill could gain access to sensitive code, specs, or internal endpoint descriptions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The instruction states that the skill specializes in Chinese API documentation and later repeatedly directs generation of Chinese docs, but it does not present this as an opt-in language choice within the skill behavior. Under the policy, forcing a specific language without user opt-in is a natural-language locale violation unless clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script's user-facing messages are entirely in Chinese, including the title and status/best-practice guidance. This imposes a specific language on users without offering an opt-in, fallback, or documenting a locale-specific purpose.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.