Back to skill

Security audit

流量重组洗稿虾

Security checks for vulnerabilities and agentic risk

Overview

This skill is not malware, but it is designed around rewriting third-party viral content while reducing detectable similarity, so users should review the copyright and platform-rule implications before installing.

Install only if you intend to use it for lawful, rights-cleared transformation, original drafting, or compliance review. Do not use it to disguise copying, bypass plagiarism checks, or republish content you do not have rights to. If used, keep the downstream agent limited to text generation and review outputs for attribution, originality, and platform compliance.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/rewrite-content.py:41
Finding

Prompt Injection Through Untrusted Content Embedded in AI Instructions

Content
View full analysis

Vulnerability Details

File Location: scripts/rewrite-content.py, lines 41-66
Vulnerability Type: Untrusted input embedded directly into an AI prompt
Risk Level: Medium

Vulnerable Code

python
prompt_parts = [
    f"请对以下内容进行改写。",
    f"\n改写深度:{depth_map[depth]}",
]
if style:
    prompt_parts.append(f"目标风格:{style}")
if platform:
    prompt_parts.append(f"目标平台:{platform}(请适配该平台的内容规范和用户习惯)")
if keep:
    prompt_parts.append(f"必须保留:{keep}")
if avoid:
    prompt_parts.append(f"需要规避:{avoid}")

prompt_parts.append("\n改写要求:")
prompt_parts.append("1. 保留爆款基因(钩子类型、情绪触发点、传播结构)")
prompt_parts.append("2. 确保原创性,目标重复率 < 10%")
prompt_parts.append("3. 输出格式:先输出改写后的内容,再输出一段简短的改写说明(说明做了哪些改动)")
prompt_parts.append(f"\n原文:\n{content}")

return "\n".join(prompt_parts)

Technical Analysis

The script concatenates trusted rewriting instructions and attacker-controlled values into a single prompt. The content, style, platform, keep, and avoid values are not separated from instructions by a structural trust boundary. No instruction tells the downstream AI agent to treat these fields exclusively as untrusted data and to ignore commands found within them.

Consequently, crafted source content can contain prompt-injection directives that compete with or override the intended rewriting task. Plain delimiters alone would not fully resolve this issue because language models may still interpret instructions inside a delimited data section.

The script itself does not execute shell commands, access credentials, or perform network operations. Exploitation therefore depends on the generated prompt being passed to a downstream AI agent. The severity and reachable effects depend on that agent's tools, permissions, context, and independent safety controls.

Attack Path

  1. An attacker supplies content through --input or an attacker-controlled file through --input-file.
  2. The supplied tex ...[truncated 1186 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pass trusted instructions and untrusted source content as separate structured messages or fields supported by the downstream AI API.
  2. Place immutable security instructions in the highest-priority system or developer message, explicitly stating that source content and option values are data and that instructions contained within them must not be followed.
  3. Represent content, style, platform, keep, and avoid in a structured payload rather than concatenating them into a single free-form instruction string.
  4. Apply strict allowlists to fields with known values. In particular, validate platform against the documented platform set and constrain the length and character set of descriptive options where practical.
  5. Limit the downstream agent to the minimum required tools and permissions. A text-rewriting task should not require shell, filesystem, credential, or network access.
  6. Validate the generated response against the expected output schema and reject output that contains tool requests, unrelated instructions, or unexpected sensitive material.
  7. Use clear data boundaries as defense in depth, while recognizing that delimiters and escaping alone do not reliably prevent prompt injection.
  8. Add adversarial tests containing instruction-like source text to confirm that the downstream agent continues to perform only the authorized rewriting operation.
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 (8)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The description prominently markets '洗稿', '规避重复', and '借鉴爆款' without an equally prominent warning that copying, derivative rewriting, and duplication-evasion can violate copyright, platform rules, or academic/professional integrity requirements. This framing materially increases the likelihood that users will employ the skill to disguise appropriation of third-party works.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill references a local script and repository files but declares no explicit tool scope or permissions boundary. In an agent environment, this can cause the runtime to over-assume file access is acceptable, increasing the chance of unintended reading or writing of local content when the skill is invoked.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill description is written to operate in Chinese and presents a Chinese-branded workflow without any indication that users may choose another language or that the skill is intentionally limited to a Chinese-only compliance context. This can violate language or locale choice expectations when no opt-in or justification is provided.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger list includes broad phrases such as '改写', '换个角度', and '重新演绎', which are common in benign writing requests and may cause the skill to activate unexpectedly. Because this skill is designed to preserve viral mechanics while reducing duplication, accidental invocation can steer normal content work toward plagiarism-evasion behavior without clear user intent.

Content

No source excerpt is available for this finding.

Ssd 4

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The workflow explicitly instructs the model to retain 'viral genes' and engagement structure while lowering repetition thresholds and assessing duplication risk. In context, this is not neutral editing guidance; it operationalizes plagiarism evasion by teaching how to preserve another creator's high-performing mechanics while obscuring textual similarity.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The file’s natural-language interface and generated prompt are entirely in Chinese, including fixed instructions such as '请对以下内容进行改写', with no indication that the user can choose another language. Under the stated policy, forcing a specific language without opt-in is a locale/language policy 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
92% confidence
Finding

This markdown file presents all compliance guidance exclusively in Chinese, and there is no natural-language indication that the skill is region-specific or that users can opt into this locale. Under the language/locale policy, forcing a specific language without user choice or documented justification is a policy concern.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

This code performs a file write to an arbitrary path supplied via --output, which can overwrite existing content, but there is no prior warning, confirmation prompt, or explanatory comment/docstring calling out that behavior. The only user-facing message appears after the write succeeds, so the potentially data-affecting operation is not disclosed before execution.

Content

No source excerpt is available for this finding.