yanxue

AdvisoryAudited by Static analysis on Apr 30, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

A malicious or accidental course name could cause the agent to create or overwrite a Markdown file outside the intended course folder, within the permissions of the runtime user.

Why it was flagged

The course name is taken from command-line input and inserted into a path without sanitizing slashes, '..', or absolute paths. This can escape the documented STORAGE_DIR.

Skill content
name = sys.argv[2]
...
filename = f"{name}_{timestamp}.md"
filepath = os.path.join(STORAGE_DIR, filename)
...
with open(filepath, 'w', encoding='utf-8') as f:
Recommendation

Reject path separators and '..' in course names, use a safe basename/slug, resolve the final path, and verify it remains inside /home/ubuntu/yanxue_courses before writing.

What this means

The export feature may fail until dependencies are installed, and ad hoc package installation can introduce supply-chain risk if not controlled.

Why it was flagged

The export helper depends on third-party Python modules, while the registry metadata says there is no install spec and no required binaries or environment declarations.

Skill content
import markdown
from htmldocx import HtmlToDocx
Recommendation

Declare required Python packages and versions, provide a pinned requirements file, and avoid installing dependencies from untrusted sources.

What this means

Generated documents may copy style, facts, or identifying details from bundled examples unless the user reviews and edits the output.

Why it was flagged

The skill uses bundled examples described as real user-provided course plans to guide future generation, which can cause example content, assumptions, or real school details to influence outputs.

Skill content
本文件总结了用户提供的真实研学课程方案的风格特点,用于指导生成符合用户偏好的方案。
Recommendation

Anonymize reference examples, verify factual details before reuse, and instruct users to review generated plans for copied or outdated school/trip information.

What this means

Course plans, which may include school names or operational details, can remain on disk after the session.

Why it was flagged

The skill creates persistent local files. This persistence is disclosed and purpose-aligned, with no evidence of hidden background execution.

Skill content
**自动保存**:生成的方案可自动保存至 `/home/ubuntu/yanxue_courses/` 目录。
Recommendation

Store only intended course documents, periodically clean the course directory, and avoid including unnecessary personal or sensitive information in generated plans.