Back to skill

Security audit

master-ajahn-chah

Security checks for vulnerabilities and agentic risk

Overview

This is mostly a citation-focused Buddhist teaching skill, but it can send user questions to an outside FoJin service without explicit consent or minimization.

Install only if you are comfortable with a skill that may use an external FoJin search service for citation lookup. Avoid including private names, health details, or sensitive personal experiences in questions unless the agent confirms it will stay offline or asks for consent before live retrieval. Treat meditation instructions as general religious study support and seek a qualified teacher or licensed professional for distressing mental-health symptoms.

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:49
Finding

Unconsented Disclosure of User Queries to an External Service

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 49–53
Vulnerability Type: External disclosure of potentially sensitive user data
Risk Level: Medium

Vulnerable Code

markdown
**调用**(仅当 `citation_contract.live_retrieval_allowed == true`;用 `curl` 或宿主 HTTP 能力):

GET https://fojin.app/api/search/content?q=<URL编码查询>&size=5
GET https://fojin.app/api/search/semantic?q=<URL编码查询>&top_k=5

Technical Analysis

The Skill instructs the Agent to send a URL-encoded search query to the third-party service fojin.app when local excerpts are insufficient. It does not require informed user consent, provide notice that the query will leave the local environment, or require minimization and redaction of personal information.

URL encoding is not anonymization or encryption. The query remains available to the external service and may also be recorded in HTTP client history, proxy logs, server access logs, monitoring systems, or analytics platforms because it is placed in a GET query string.

The remote-response safeguards elsewhere in SKILL.md—including treating results as untrusted data and validating source identifiers—reduce prompt-injection and citation-integrity risks. They do not protect the outgoing user data.

Attack Path

  1. A user asks a question containing sensitive context, such as religious affiliation, mental-health concerns, names, or personal experiences.
  2. The requested information is not sufficiently covered by the bundled sources.
  3. The Skill's live-retrieval condition activates.
  4. The Agent derives or forwards the sensitive content as the URL-encoded q parameter.
  5. The request is sent to fojin.app.
  6. The query may be observed or retained by the service and intermediary logging infrastructure without the user's informed consent.

Impact Assessment

This issue does not grant local code-execution privileges, elevated system permissions, or filesyst ...[truncated 428 chars]

Remediation
View remediation

Remediation Suggestions

  1. Require explicit, informed user consent before any live retrieval and identify the external destination.
  2. Explain what information will be transmitted and provide a strictly offline alternative.
  3. Construct a minimal source-search phrase rather than forwarding the original user message.
  4. Remove names, contact details, account identifiers, health information, secrets, and unrelated personal context before transmission.
  5. Prefer an HTTP POST body instead of a GET query string where the service supports it, while recognizing that POST alone does not eliminate third-party disclosure.
  6. Establish request timeouts, destination allowlisting, TLS certificate verification, and restrictive redirect handling.
  7. Document the external service's privacy, retention, and logging expectations.
  8. Add a policy check that blocks transmission when safe minimization cannot be performed.
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 (15)

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
80% confidence
Finding

Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.

Content

Scanner excerpt · references/teaching.md (reported line 36)May include surrounding context.

md
森林禅林派以《MN 10 / Satipaṭṭhāna Sutta》为禅修根本——观身、受、心、法。阿姜查教导**正念不是控制**,而是**清楚地知道**当下身心发生什么;不是制造一个特殊状态,而是在任何状态中保持觉知。

正念之要:
- 不评判(noting without judging)
- 不抓取(noting without grasping)
- 不排斥(noting without aversion)
- 持续(continuity)—行住坐卧皆维持

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger conditions are broad enough to activate on many generic mindfulness, meditation, or Buddhist-topic queries, not just requests specifically seeking this skill. Over-broad invocation can cause unintended routing, increasing the chance that the agent answers in a constrained persona or doctrinal frame when the user wanted neutral guidance, and it can crowd out more appropriate skills.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This manifest is a JSON file, so SQP-3 applies. The user-facing disclaimer is written only in Chinese, and the style/instruction fields are also specified entirely in Chinese prose, which indicates the skill is configured to operate in a specific language without documenting user choice or opt-in even though supported languages include Thai, English, and Chinese.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This section gives concrete meditation progression advice, including longer sits, insight practice, and multi-month retreat, but does not include a clear mental-health/safety warning about potential destabilization, dissociation, trauma activation, or when to stop and seek qualified help. In a skill intended to guide Theravada / Thai Forest practice, users may treat the material as actionable instruction, so omission of safety guardrails increases the risk of harm for vulnerable users.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The file is entirely written as a fixed Chinese-language persona/style guide and repeatedly prescribes specific forms of address and response style, but it does not offer the user any language choice or opt-in. Under the policy for natural-language violations, forcing a specific language or locale without user choice is in scope.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file explicitly states that all blockquotes are paraphrased summaries and must not be presented as direct quotations, yet this passage uses quote formatting and quote marks that imply verbatim speech. In a skill designed to answer in Ajahn Chah's voice and provide teachings, this can mislead downstream agents or users into attributing fabricated wording to a real religious teacher, undermining provenance and trust.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This section contradicts the document's own 'NO FABRICATED QUOTES' rule by presenting paraphrased guidance as direct speech. The danger is not code execution but integrity failure: an assistant using this file may reproduce invented quotations with unjustified authority, especially harmful in a skill centered on faithful representation of teachings.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The cup analogy is formatted as a direct quote even though the file says such material is only gist-level paraphrase. That creates a content authenticity vulnerability: consumers may treat invented wording as canonical teaching, which is particularly risky in a citation-sensitive spiritual instruction skill.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The breathing section uses direct-quote styling that conflicts with the stated paraphrase-only policy. In context, the skill may be prompted to produce teachings 'in Ajahn Chah's voice,' so this inconsistency increases the chance of fabricated quotations being propagated as authentic spiritual guidance.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This section presents a purported reply in direct-quote form despite the file's warning against verbatim presentation and fabricated Q&A. Because the document is meant to guide an assistant's responses, it may cause the model to generate false teacher-student dialogue with high apparent authenticity.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Quoted wording about meditative joy is presented as though verbatim, contrary to the file's own anti-fabrication warning. In a contemplative practice context, users may rely on exact wording for doctrinal or practical guidance, so false attribution can distort both scholarship and practice instructions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The obstacles passage uses direct-quote presentation that conflicts with the document's warning that these are only paraphrased teaching points. This is dangerous because it creates false provenance inside a skill whose purpose is authoritative spiritual instruction, making downstream hallucinated citation more likely.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The precepts section presents paraphrased content as quoted speech despite the file's explicit non-verbatim policy. This can mislead users into believing a precise doctrinal statement was spoken by Ajahn Chah, which is especially problematic in religious teaching where wording and attribution matter.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This work-practice passage again uses direct-quote formatting in a file that forbids presenting paraphrases as direct quotations. Given the skill's trigger to speak in Ajahn Chah's voice even without explicit request, such text raises the risk of authoritative-sounding fabricated quotes being surfaced to end users.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The manifest frames this skill as providing Theravada/Ajahn Chah teaching and voice, and the file repeatedly emphasizes grounding claims in Pali canon or Ajahn Chah public talks. Line L78 says beginners may be recommended 'Mindfulness, Bliss, and Beyond', which is not an Ajahn Chah text and sits outside the narrower source framing established elsewhere in the file.

Content

No source excerpt is available for this finding.