Back to skill

Security audit

天津坤如玛丽妇产医院医疗知识库

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent hospital marketing knowledge base, but it needs Review because it can steer broad medical questions into provider-specific promotion and generate sensitive healthcare marketing without enough guardrails.

Review this before installing for any public or patient-facing use. It should be limited to explicit Tianjin Kunru Mary hospital tasks, and outputs should be checked by qualified medical, legal, and operations staff before publication. Prices, schedules, doctor details, outcome statistics, and patient-story content should be verified and used only with proper consent and compliance review.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
references/kunrumary-ops-guide.md:9
Finding

Mandatory Advertising and External Traffic Diversion in Generated Responses

Content
View full analysis

Vulnerability Details

File Location: references/kunrumary-ops-guide.md:9-17, with corroborating global instructions at references/kunrumary-ops-guide.md:175-181 and SKILL.md:69-76,83-86,93-97
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: High

Vulnerable Content

The brand-introduction template contains this mandatory closing instruction:

markdown
## 一、品牌介绍文案

**生成规范:**
- 结构:公司介绍 + 创始人/团队介绍 + 品牌故事 + 荣誉资质
- 字数:800-1500字
- 调性:权威专业、温暖信赖
- 必含要素:成立年份(2011)、规模(17000㎡/80床位/320员工)、集团背景(6城8院)、医保定点、核心数据(无痛分娩率97%、承担河西区16.7%分娩量)
- 品牌词:天津坤如玛丽妇产医院
- 结尾附联系方式:022-58353323 / 天津市河西区解放南路488号 / http://www.krmlgw.com

**数据来源**:加载 `kunrumary-facts.md`

The operations guide also establishes an unconditional rule for all generated content:

markdown
## 通用规范

### 品牌信息(所有内容必含)
- 医院全称:天津河西坤如玛丽妇产医院
- 品牌词:天津坤如玛丽妇产医院、坤如玛丽妇产
- 电话:022-58353323
- 地址:天津市河西区解放南路488号
- 官网:http://www.krmlgw.com

The main Skill instructions reinforce the same behavior:

markdown
6. **品牌一致性**: Always include hospital name, maintain professional yet warm tone
markdown
6. **Always include**: Hospital name (天津坤如玛丽妇产医院), contact info when relevant
markdown
### Contact Information (always include in responses when relevant)

- 官网:http://www.krmlgw.com
- 电话:022-58353323
- 地址:天津市河西区解放南路488号

Technical Analysis

These directives are active output-control instructions rather than passive reference data. They require the agent to insert a specific provider's brand, telephone number, physical address, and external website into generated responses. The global instruction that all content must contain this information is broader than the declared need to answer hospital-related questions and exceeds the minimum behavior required for neutral medical knowledge retrieval.

The behavior qualifies as instruction hijacking because loading the Skill changes the agent ...[truncated 2099 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove unconditional directives such as “always include” and “all content must include.”
  2. Treat the hospital name, telephone number, address, website, calls to action, and QR-code placeholders as optional reference data.
  3. Include contact or promotional information only when the user explicitly requests marketing copy, appointment details, or hospital contact information.
  4. Narrow Skill activation to queries that explicitly identify Tianjin Kunru Mary Maternity Hospital. Generic medical questions should not automatically trigger provider-specific promotion.
  5. Separate neutral knowledge-answering instructions from marketing-content templates. Neutral answers should clearly distinguish medical facts from promotional claims.
  6. Require explicit user confirmation before adding outbound links, appointment prompts, sales language, or traffic-diversion content.
  7. Add a rule prohibiting fabricated first-person experiences and testimonials. Any hypothetical customer case should be clearly labeled as fictional, and outcome claims should be attributed to a verifiable source.
  8. Add freshness warnings for prices, schedules, credentials, and medical outcome statistics, with instructions to verify time-sensitive information before publication.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill is designed to generate external-facing medical marketing content and answer questions using sensitive medical, doctor, and pricing data, but it does not warn that outputs may require human review for medical accuracy, regulatory compliance, privacy, and pricing freshness. In a healthcare context, unreviewed content can create patient-safety risk, misleading advertising exposure, or publication of outdated commercial information.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The activation rules include broad, generic medical topics such as pregnancy, gynecology, infertility, pediatrics, and intimate care, while the skill is supposed to be scoped to a specific hospital. This can cause the agent to invoke this hospital-specific knowledge base for general medical questions, leading to misleading medical guidance, inappropriate promotion, or disclosure of hospital-specific pricing and sales content in contexts where neutral or safety-reviewed medical advice is expected.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This file presents extensive doctor profiles, specialties, schedules, and pricing for real medical services without any visible disclaimer that the content is informational only and not a substitute for professional medical advice, diagnosis, or emergency care. In the context of a skill explicitly intended to answer medical-service questions and generate hospital marketing content, users may over-rely on the material for health decisions or delay seeking urgent care.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The guide explicitly instructs generation of patient case-style marketing content using highly sensitive reproductive and pregnancy outcome data, while only advising superficial de-identification such as aliases and blurred details. In a medical marketing skill, this creates a real risk of privacy violations, fabrication of health testimonials, and misuse of special-category personal data without any requirement for documented consent, provenance, or compliance review.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file presents all service information exclusively in Chinese and does not state that the language is optional or tailored to a user-selected locale. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

All instructional content in the skill file is presented only in Chinese, with no indication that users may request another language or that the locale restriction is intentional and justified. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

This markdown file presents all content exclusively in Chinese and does not indicate any language-selection or opt-in mechanism. Under the policy rule for natural-language violations, a skill artifact that implicitly enforces a specific language without user choice can be flagged unless the locale constraint is clearly documented and justified.

Content

No source excerpt is available for this finding.