Back to skill

Security audit

Chiropractic Pt Marketing Kit

Security checks for vulnerabilities and agentic risk

Overview

This is a Markdown-only healthcare marketing prompt kit with a real consent-caution issue, but it does not access data, send messages, run code, or persist anything.

Install only if you are comfortable reviewing healthcare marketing copy before use. Before sending any SMS, email, review request, reactivation message, newsletter, or referral campaign, confirm documented consent for that channel, suppress opt-outs, and have the final materials reviewed for your state and practice rules.

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
prompts/prompt_2_patient_retention.md:14
Finding
Marketing Communications Generated Without Verified Patient Consent<![CDATA[ ## Vulnerability Details **File Location**: `prompts/prompt_2_patient_retention.md`, line 14 **Vulnerability Type**: Consent validation failure in healthcare marketing workflows **Risk Level**: Medium ### Vulnerable Code Snippet ```text **Practice name:** [PRACTICE NAME] **Provider name(s) and credentials:** [e.g., Dr. James Okafor DC, CCSP] **Specialties:** [e.g., auto injury, sports, family wellness] **Average visit frequency:** [e.g., 2x/week acute, 1x/week maintenance] **Maintenance/wellness care offered:** [yes/no + brief description] **Payment options:** [e.g., insurance + cash, cash-pay only, PI liens, payment plans] Patient consent for marketing is assumed — all sequences include unsubscribe/STOP options. ``` ### Technical Analysis The prompt instructs the agent to assume that every recipient has consented to marketing. It then generates patient reactivation messages, referral solicitations, maintenance-care promotions, and other marketing communications. An unsubscribe link or `STOP` instruction provides a mechanism for revoking consent but does not establish that valid consent existed before the first message. Consent requirements may also differ by channel: permission to receive transactional appointment notifications does not necessarily authorize promotional email or SMS messages. This instruction conflicts with the safer requirement in `prompts/prompt_1_new_patient_acquisition.md`, which states that SMS marketing requires prior written consent. Because Prompt 2 removes consent verification at the workflow level, an operator could deploy its outputs to an unqualified patient list without being warned to confirm each recipient's authorization. ### Attack Path 1. A practice exports a list of current or lapsed patients from its scheduling, CRM, or clinical system. 2. The operator invokes Prompt 2 to generate reactivation, referral, or maintenance-care marketing messages. 3. The Skill assumes consent instead of requiring the operato ...[truncated 1143 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Replace the consent assumption with an explicit prerequisite: ```text Before generating or scheduling marketing communications, confirm that each recipient has documented, channel-specific consent. Do not treat consent to appointment reminders or clinical communications as consent to marketing. ``` 2. Require the operator to identify the communication type as transactional or promotional before generating a message. 3. Require documented consent metadata for promotional outreach, including: - Recipient identity - Authorized channel - Consent source - Consent date and time - Applicable campaign or purpose - Current opt-out status 4. Suppress recipients who have opted out, lack suitable consent, or cannot be matched reliably to a consent record. 5. Keep appointment confirmations and reminders operationally separate from reactivation offers, referral requests, discounts, and maintenance-care promotions. 6. Make unsubscribe and `STOP` handling mandatory in addition to—not instead of—prior consent validation. 7. Add a pre-deployment checklist requiring review by the practice's privacy or legal adviser for the relevant jurisdiction. 8. Align Prompt 2 with Prompt 1's requirement for prior written consent for SMS marketing and remove any conflicting language across the Skill. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Vague Triggers

Medium
Confidence
87% confidence
Finding
This markdown file describes the skill purpose in very broad terms: generating a complete patient lifecycle communication system covering multiple functions. It does not define specific trigger phrases, activation boundaries, or negative examples, which could cause unintended invocation for general patient-communications requests.

Vague Triggers

Medium
Confidence
83% confidence
Finding
The core instruction asks to 'Generate a complete patient communication and retention system' without defining when this skill should be selected versus other healthcare writing or compliance skills. In a markdown skill description, this missing specificity increases overlap with ordinary requests for emails, scripts, reminders, or patient communications.

Missing User Warnings

Low
Confidence
83% confidence
Finding
The prompt instructs generation of review-request scripts over SMS and email using patient first names and outreach channels, but it does not explicitly warn the user to use only patients who have provided the required marketing consent and contact authorization under HIPAA/TCPA/CAN-SPAM. Although the prompt includes several compliance rules, the omission of a clear operational warning can lead users to generate and deploy outreach workflows that process patient contact data in a regulated context without adequate consent controls or privacy review.

Natural-Language Policy Violations

Low
Confidence
76% confidence
Finding
The usage notes reference Nevada-specific chiropractic and physical therapy guidance and Nevada-local SEO targets, which introduces a locale-specific constraint into the skill's instructions. The file does not clearly state that the skill is only for Nevada practices or require the user to opt into Nevada-specific compliance framing before these instructions are applied.

Intent-Code Divergence

Low
Confidence
77% confidence
Finding
The prompt repeatedly frames output around compliance and cautious health advertising, but the usage note's recommendation to target keywords for 'highest SEO value' and 'very low competition' introduces marketing optimization guidance that is not reflected in the main compliance-oriented instructions. This is a mild intent/documentation divergence because the note shifts emphasis rather than directly changing code behavior, but it does not create a strong security-relevant contradiction.

Static analysis

No suspicious patterns detected.