T01 · Skill Instruction Hijacking
- Location
SKILL.md:271- Finding
Agent Instructions Mandate Unsolicited Lead Generation and Third-Party Contact Promotion
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill mostly does what it claims, but it also contains agent-facing promotion/referral instructions and an automatic unpinned package install that users should review before installing.
Install only if you are comfortable with a Chinese/China-market business-plan workflow, visible promotional/referral language in the skill instructions, and a script that may automatically install python-pptx. Run it in a virtual environment, install dependencies explicitly yourself, and choose the PPTX output path carefully to avoid overwriting files.
SKILL.md:271Agent Instructions Mandate Unsolicited Lead Generation and Third-Party Contact Promotion
scripts/generate_bp_pptx.py:110Automatic Runtime Installation of an Unpinned Python Dependency
The documented behavior materially differs from the actual capability: the skill promises dynamic financial analysis and structured questioning, but the implementation reportedly only templates provided data and may auto-run pip to install dependencies. Hidden environment modification and possible network/package installation are especially risky because they can change the host environment, pull untrusted code, and violate user expectations about what the skill will do.
The natural-language content in this file consistently forces a single language/locale experience. Per the policy, language constraints should either be optional for the user or clearly documented as a justified region-specific limitation, which is not present here.
The skill instructs the agent to read local reference files and invoke a shell command to run a Python script, but it does not declare any tool scope such as allowed tools or permissions. This creates an implicit capability boundary bypass: a host may permit broader file or shell access than the user expects, increasing the chance of unintended file access or command execution.
The description states the model is designed specifically for Chinese tech-innovation early-stage companies, which imposes a locale-specific scope. Under the policy rule, locale constraints should either be optional for the user or clearly documented and justified; here the constraint is asserted as default framing rather than as an opt-in or compliance necessity.
This markdown file contains user-facing instructions exclusively in Chinese, with no indication that the user can choose another language or locale. 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.
This markdown file is entirely authored in Chinese and presents the framework as the sole interaction/documentation language. Under the policy, a skill should not force a specific language or locale unless it offers opt-in/choice or clearly documents a justified regional constraint, neither of which appears in the file.
Auto-installing a package during normal execution is not necessary for the stated PPT-generation purpose and expands the script's capabilities to include network access and external code retrieval. In a skill/agent context this is more dangerous because dependency resolution happens implicitly, outside normal review and change-control, increasing supply-chain and environment-manipulation risk.
The script executes a subprocess to run pip install at runtime when python-pptx is missing. This introduces unexpected code execution and network/package-supply-chain behavior into a document-generation tool, meaning an attacker controlling package indexes, mirrors, or the environment could influence what gets installed and executed.
except ImportError:
print("正在安装python-pptx...")
import subprocess
subprocess.check_call([sys.executable, "-m", "pip", "install", "python-pptx", "-q"])
from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
This markdown file states that the skill will '自动生成PPT文件交付', and later provides a command that writes a .pptx output file. Under the markdown criteria for SQP-2, file-writing behavior that affects user data or filesystem state should be disclosed with a user warning, but no caution or note is provided.
The skill description emphasizes business-plan generation but does not clearly warn that it will write a PPTX file to disk. This is a transparency and safety issue because users and host systems may not anticipate filesystem side effects, which can lead to accidental overwrites or execution in sensitive directories.
This markdown file contains instructional content exclusively in Chinese, including the title and all explanatory sections, with no indication that users may choose another language. Under the policy rules, forcing a specific language without user opt-in is a natural-language policy concern.
This file is a code file, so SQP-3 applies to natural-language strings embedded in the code. The script predominantly generates Chinese slide content and labels, but the closing slide is forced to English with "Thank You", with no option for the user to choose locale or keep the presentation language consistent.
No suspicious patterns detected.