Back to skill

Security audit

Pans Contract Generator

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Chinese GPU lease contract draft generator with an optional, disclosed file output path and no evidence of hidden access, network use, persistence, or credential handling.

Install only if you want Chinese-language GPU lease contract drafts. Treat the output as a starting template requiring legal review, especially because it embeds PRC-law dispute terms and fixed SLA/security clauses. Use --output only with a path you intend to create or overwrite.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill advertises behavior that writes output to a file (--output contract.md) but does not declare any tool scope such as permissions or allowed-tools. Undeclared file-write capability weakens least-privilege controls and can lead to unexpected or unauthorized writes if the agent runtime permits execution.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger phrases are broad and generic, including terms like '合同生成', '销售合同', and 'contract generator', which can cause the skill to activate in unrelated legal or commercial contexts. Overbroad invocation increases the chance the skill is selected unintentionally and may generate contractual language without sufficient user intent or review.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

Repeating ambiguous activation phrases in the README reinforces broad matching behavior and makes accidental invocation more likely across normal discussions of contracts, SLAs, or framework agreements. In a contract-drafting skill, unintended activation is risky because it may produce authoritative-looking legal text in contexts where specialized legal review is required.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The module docstring states the contract is generated in Chinese and output in Markdown, and the implementation consistently emits only Chinese-language content. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file presents the agreement solely in Chinese, and nowhere indicates that users may choose another language or that the skill is intentionally limited to a Chinese-language or China-specific context. Under the policy, forcing a specific language without opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.