other
- Location
scripts/build_prompt_llm.py:67- Finding
Undisclosed Transmission of User-Supplied Writing Data to an External LLM Service
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly builds writing prompts locally, but a bundled alternate script can send your writing context and style files to Aliyun’s LLM service without clear disclosure.
Use the documented local build_prompt.py path for local-only prompt construction. Do not run build_prompt_llm.py with private manuscripts, personal data, proprietary style guides, or secrets unless you intentionally want that data sent to Aliyun DashScope and trust that provider. Review and pin dependencies before installing in a sensitive environment.
scripts/build_prompt_llm.py:67Undisclosed Transmission of User-Supplied Writing Data to an External LLM Service
scripts/requirements.txt:1Incomplete and Unbounded Dependency Declaration
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
transient=True,
) as progress:
progress.add_task("building", total=None)
response = requests.post(url, headers=headers, json=payload, timeout=60)
response.raise_for_status()
data = response.json()
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
注入风格后的提示词
"""
if not self.style_config:
return prompt
style_parts = []
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
注入风格后的提示词
"""
if not self.style_config:
return prompt
style_parts = []
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
智能提示构建器 (LLM 版本) - 通过 LLM 构建高质量写作提示词
Usage:
python3 build_prompt_llm.py --scene-type description --output prompt.json
python3 build_prompt_llm.py --scene-type dialogue --style-file style.yml --context '{"scene": "雨夜"}' --output prompt.json
"""
The skill documentation describes capabilities that read files, write output files, consume environment/context, and potentially interact with external resources, but it does not declare any explicit tool scope such as permissions or allowed-tools. This creates an authorization gap where an agent may invoke broader file or network-capable tooling than intended, increasing the chance of over-privileged execution or unsafe composition with other skills.
The file’s human-readable comments and content are entirely in Chinese, including the style description and tone settings, with no indication that this locale is optional or limited to a China-specific use case. Under the policy, forcing a specific language or locale without user choice is a natural-language policy violation.
The skill documentation is written entirely in Chinese and all examples, output labels, and constraints assume Chinese-language usage. Under the policy, forcing a specific language without offering an explicit language or locale choice can be a natural-language policy violation.
The script sends user-supplied style and context data to an external LLM API, but provides no explicit warning, consent gate, or data classification check before transmission. If users place sensitive manuscript material, private notes, or proprietary style guides in these fields, the skill can unintentionally disclose that content to a third-party service.
This code performs external network transmission of prompt content, including style and context, to a third-party endpoint. In the context of a prompt-building skill, that can expose confidential writing material or internal guidance if operators assume processing is local or do not realize the full payload is being sent off-box.
transient=True,
) as progress:
progress.add_task("building", total=None)
response = requests.post(url, headers=headers, json=payload, timeout=60)
response.raise_for_status()
data = response.json()
The prompt instruction explicitly requires that all generated text be in Chinese. This imposes a language policy on users without offering a language choice or documenting a justified region-specific constraint.
The manifest description and the entire skill documentation require Chinese comprehension, and the sample prompts also prescribe Chinese output/style conventions. Under the policy rule for language/locale constraints, this is a natural-language policy issue because no user choice or opt-in is offered and no region-specific justification is documented.
The manifest frames the skill as a prompt builder that generates optimized writing prompts from corpus results and context. In addition to generating prompts, the code exposes an --output option and writes the rendered prompt to a filesystem path, which is a broader operational behavior than the description suggests.
The dependency is specified with only a lower bound (rich>=12.0.0), which allows future major or minor releases to be installed without review. This can introduce supply-chain risk, unexpected breaking changes, or a malicious upstream release into the skill environment.
rich>=12.0.0