Back to skill

Security audit

高校AIGC日报

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Chinese higher-education AIGC news digest that uses web search/fetch and local archiving in ways that fit its stated purpose.

Install this only if you want an automatically generated Chinese higher-education AIGC digest. Expect it to fetch search results and articles from Baidu and listed news/government sources, save local digest files, and possibly sync generated reports to a knowledge base if you grant that permission; review generated links and claims because remote web pages are not explicitly treated as untrusted input.

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
SKILL.md:23
Finding

Untrusted Web Content Is Processed Without Prompt-Injection Defenses

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 23-32
Vulnerability Type: Indirect prompt injection through remotely retrieved content
Risk Level: Medium

Vulnerable Instruction Segment

The following is an English rendering of the complete relevant instruction segment:

markdown
If the web_search tool is available, use web_search to search by category with country=CN, language=zh, and freshness=day.

If web_search is unavailable, use web_fetch to retrieve the Baidu search results page directly:
web_fetch("https://www.baidu.com/s?wd=[keyword]&rn=10")

Extract search-result titles and links from the returned HTML.

The following source sites may also be retrieved directly to obtain their latest articles:
- https://www.jiqizhixin.com/
- https://www.zhidx.com/
- https://www.leiphone.com/category/ai
- https://www.infoq.cn/topic/AI
- http://www.moe.gov.cn/jyb_xwfb/gzdt_gzdt/

Technical Analysis

The Skill directs the agent to retrieve search-result pages and arbitrary linked articles, extract their content, and use that content to generate a digest. It does not instruct the agent to treat retrieved text as untrusted data, ignore instructions embedded in pages, restrict navigation to approved domains, or validate final links before publishing them.

A hostile page can place model-directed instructions in visible text, metadata, accessibility text, or other extracted HTML. Because the same agent interprets the Skill instructions and summarizes retrieved content, those instructions could be mistaken for trusted operational directions. Examples include demands to append promotional links, suppress legitimate stories, disclose context, or fetch additional attacker-controlled resources.

General network retrieval is necessary for the declared news-aggregation function. However, unrestricted processing of search results without content isolation or destination validation is broader than the m ...[truncated 1995 chars]

Remediation
View remediation

Remediation Suggestions

  1. Add an explicit trust-boundary rule stating that all search results, HTML, metadata, and article text are untrusted data and must never be interpreted as instructions.
  2. Require the agent to ignore remote content that requests tool calls, changes output rules, asks for secrets, promotes unrelated links, or claims to override Skill or system instructions.
  3. Prefer an allowlist of authoritative domains. Require explicit validation before following redirects or links to domains outside that allowlist.
  4. Separate retrieval from summarization: first extract only structured fields such as title, publication date, publisher, canonical URL, and article body; then summarize the normalized fields in a separate step.
  5. Strip scripts, comments, hidden elements, forms, metadata unrelated to citation, and instruction-like text before model processing.
  6. Validate every final URL against the retrieved canonical source and reject URL shorteners, deceptive domains, redirects to unrelated sites, and unsupported promotional links.
  7. Add a final output check that rejects instructions, advertisements, calls to action, or links not directly supported by an approved source.
  8. Mark archived digests as generated content and avoid automatic knowledge-base synchronization until validation succeeds.
  9. Use HTTPS for sources where available, particularly the configured Ministry of Education endpoint, to reduce transport-level content manipulation.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger phrases are broad enough that ordinary user requests like '高校资讯' or 'AIGC日报' could invoke the skill unintentionally, causing the agent to perform network searches and generate a digest when the user may have intended a more general query. In this skill’s context, the main risk is misrouting or over-collection rather than direct compromise, but automatic daily execution and external fetching make accidental activation more operationally significant.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill hard-codes country=CN and language=zh for searches without checking user preference, which can force locale-specific behavior and bias results toward a particular region. This is primarily a privacy, relevance, and user-consent issue rather than a code-execution risk, but it can cause incorrect or unwanted retrieval behavior for users outside that context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The notes section instructs the agent to always use Chinese keywords and region=CN, again removing user choice and enforcing a fixed geographic/language scope. In this skill’s context the content is education news in China, so the restriction is somewhat justified, but without explicit scoping or override it still creates a policy and consent issue and may leak assumptions about user locale.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.