T09 · Insecure Skill Coding Practices
- Location
references/herb-database.md:83- Finding
Exact Dosage Guidance for Toxic Medicines Contradicts the Skill's Mandatory Safety Controls
- Content
View full analysis
Vulnerability Details
File Location:
references/herb-database.md:83; related control and output instructions atSKILL.md:167andSKILL.md:177
Vulnerability Type: Unsafe generation of actionable medical dosage instructions
Risk Level: High
Category: T09: Insecure Skill Coding PracticesVulnerable Content
The following is a faithful English translation of the relevant source content:
markdown ### Aconite — Primary medicine for restoring depleted yang - Effects: Restores yang in collapse, supplements fire and assists yang, disperses cold, and relieves pain - Usage perspective: - A core medicine in yang-supporting practice - Considered indispensable in formulas such as Sini Decoction - Combined with dried ginger as a classic treatment for restoring yang - Warning: Toxic; it must be decocted first for 30–60 minutes and used according to medical advice - Common dosage: 3–15 grams, decocted firstThe conflicting Skill instructions are:
markdown Prescription output: Symptoms → pattern classification → formula and source → composition and dosage → modification rationale → administration precautions Toxic medicines, including aconite, monkshood, pinellia, asarum, ephedra, and rhubarb, must be described only as "follow medical advice," "decoct first," or "use cautiously"; exact harmful dosages must not be provided.Additional exact dosage ranges for medicines identified by the Skill as toxic appear in
references/formulas-259.md:158-176, including:markdown Ephedra: 3–10 grams Rhubarb: 3–10 grams Aconite: 3–15 grams, decocted first Pinellia: 6–10 gramsTechnical Analysis
SKILL.md:167directs the agent to produce individualized formula compositions and dosages. It also directs the agent to consult the bundled herb and formula references. However,SKILL.md:177expressly prohibits exact dosing for toxic medicines.The referenced k ...[truncated 2559 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove all exact doses and preparation instructions for toxic or prescription-sensitive medicines from every bundled reference, including
references/herb-database.mdandreferences/formulas-259.md. - Replace prohibited dosage fields with a fixed statement requiring evaluation and dosing by a licensed clinician.
- Change
SKILL.md:167so the Skill provides historical or educational formula descriptions rather than individualized prescriptions. - Add a deterministic output-validation rule that blocks numeric doses, administration frequency, pill counts, and preparation instructions for toxic medicines.
- Maintain a centralized restricted-medicine list instead of duplicating safety rules across files.
- Add tests covering direct requests, formula lookups, paraphrased requests, and attempts to obtain toxic dosages through reference queries.
- Require immediate referral for emergency symptoms and clinician consultation for vulnerable populations, possible interactions, or serious underlying disease.
- Review other actionable directions, including the unspecified “30 pills twice daily” instruction in
references/hantang-100.md:153, and remove instructions lacking composition, strength, contraindications, and professional oversight. - Treat disclaimers only as supplemental notices; they must not substitute for enforcing the prohibition at the content and output layers.
- Remove all exact doses and preparation instructions for toxic or prescription-sensitive medicines from every bundled reference, including
