T01 · Skill Instruction Hijacking
- Location
scripts/prepare_publish.py:126- Finding
Fixed Branding and Promotional Metadata Injection
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:64-65,scripts/extract_publish_meta.py:51-53, andscripts/prepare_publish.py:126-141
Vulnerability Type: Fixed promotional content injected into authenticated publication workflows
Risk Level: MediumEvidence
SKILL.md:64-65:text 标题:`{故事名} 琪琪睡前故事` 描述:`儿童成长故事,适合3-8岁小朋友 #儿童故事 #睡前故事 #亲子时光`scripts/extract_publish_meta.py:51-53:python title = f"{story_name} 琪琪睡前故事" description = "儿童成长故事,适合3-8岁小朋友" topics = ["#儿童故事", "#睡前故事", "#亲子时光"]scripts/prepare_publish.py:126-141:python title = meta.get("title", f"适合3-8岁的睡前故事 | {story_name} | 琪琪的魔法故事屋") description = meta.get("description", "儿童成长故事,适合3-8岁小朋友") keywords = meta.get("keywords", "") elif os.path.exists(story_file): with open(story_file, 'r', encoding='utf-8') as f: story = json.load(f) story_name = story.get("name", story_name) title = f"适合3-8岁的睡前故事 | {story_name} | 琪琪的魔法故事屋" description = story.get("text", "")[:100] or "儿童成长故事,适合3-8岁小朋友" keywords = extract_keywords(description) else: title = f"适合3-8岁的睡前故事 | {story_name} | 琪琪的魔法故事屋" description = "儿童成长故事,适合3-8岁小朋友" keywords = extract_keywords(description)Technical Analysis
The Skill is described as accepting a video path, title, and description, but its instructions and metadata-generation scripts contain fixed branding and promotional defaults. When project metadata is missing or incomplete, these values are automatically inserted into titles, descriptions, and tags.
Because the browser workflow ultimately clicks the publication button in an authenticated Douyin session, generated defaults can become public content without preserving the user's intended metadata. This constitutes output manipulation within a privileged publishing workflow. The concern is strongest where the fixed brand name is inserted into the title, rather th ...[truncated 1534 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove fixed brand names and promotional phrases from all default title and description templates.
- Require the title and description to come from explicit user input or trusted project configuration.
- Use neutral, clearly documented defaults only when the user expressly permits fallback metadata.
- Display the exact final title, description, tags, and video path before publication.
- Require explicit user confirmation immediately before clicking the publication button.
- Record whether each metadata field came from user input, a project file, or a fallback value.
- Reject incomplete metadata in unattended publication workflows instead of silently inserting branded content.
- Add tests verifying that absent metadata cannot introduce undeclared names, brands, hashtags, or promotional phrases.
