Back to skill

Security audit

complaint-letter-pro

Security checks for vulnerabilities and agentic risk

Overview

The skill mainly drafts complaint letters, but it also adds automatic persistent learning and possible skill-instruction changes without enough user control or privacy boundaries.

Review before installing. The complaint-letter features are straightforward, but the automatic learning section should be removed or made opt-in with clear privacy limits, per-user storage, deletion controls, and a rule that stored preferences are treated only as untrusted data. Avoid storing dispute narratives, order numbers, names, addresses, employer details, or legal facts in learned_patterns.json.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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)

T02 · Agent Memory Poisoning

Warning
Location
scripts/learner.py:58
Finding

Unsanitized Persistent Preferences Can Poison Future Agent Sessions

Content
View full analysis
--capability ResumeOptimization python scripts/learner.py record --capability ResumeOptimization --fail --error FormatRecognitionFailure --note "The user uploaded a non-standard file" python scripts/learner.py prefer --key OutputLanguage --val Chinese python scripts/learner.py insight python scripts/learner.py reflect ``` ### Iteration Rules - Important user preferences are written to `learned_patterns.json` and directly adopted during the next invocation to reduce repeated questions. ``` The implementation accepts arbitrary keys and values and writes them directly into the persistent JSON file: ```python def load_learning(skill_dir): p = learn_path(skill_dir) try: return json.loads(open(p, encoding="utf-8").read()) except Exception: return default_data(os.path.basename(skill_dir)) def save_learning(skill_dir, data): data["lastUpdated"] = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M") p = learn_path(skill_dir) with open(p, "w", encoding="utf-8") as f: f.write(json.dumps(data, in ...[truncated 3828 chars]
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (11)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a complaint-letter generator, but it also instructs use of a generic learning system that records usage history, user preferences, errors, and self-optimization state across sessions. This is a material behavior expansion not disclosed in the top-level purpose, and it creates hidden data collection and persistence risk that users would not reasonably expect from a document-writing skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger list includes broad everyday terms like '投诉', '退款', and '纠纷', which can cause the skill to activate in contexts where the user did not intend to invoke it. In an agent with write/web/search capabilities and hidden persistence behavior, overbroad triggering increases the likelihood of unintended data processing and storage.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The embedded 'self-evolving learning system' directs the skill to retain user preferences and usage data over time, even though the skill's primary function is generating complaint documents. Persistent cross-session memory can capture sensitive dispute details, financial amounts, employer or merchant names, and personal preferences without a clear need or informed user consent.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill includes persistent user profiling and experience-learning features that are not directly required to draft complaint letters. Because complaint workflows often involve sensitive personal and legal dispute data, unrelated profiling increases unnecessary data exposure and the chance of function creep.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill text authorizes persistent recording of user preferences and usage-derived data, but it does not present a user-facing privacy warning, consent flow, or retention policy. This is especially risky because complaint and labor-rights scenarios commonly involve sensitive personal, employment, financial, and dispute information.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill instructs local persistent storage in learned_patterns.json for operation counts, capability frequency, error patterns, user preferences, and improvement suggestions without clear minimization limits. Such a file can accumulate sensitive behavioral and dispute-related metadata over time, creating privacy, leakage, and secondary-use risk disproportionate to the skill's stated purpose.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The example preference command explicitly sets 输出语言 --val 中文, and the skill content is written as if Chinese is the default operating language. This creates a natural-language locale constraint without offering opt-in choice or stating that the skill is intentionally limited to Chinese-speaking users.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file introduces a generic cross-skill 'self-evolving learning' component that persistently records usage history, error notes, and user preferences, which exceeds the minimally necessary scope for a complaint-letter generation skill. Because the module accepts arbitrary notes and preferences and writes them to disk under the user's home skill directory, it can accumulate sensitive personal or dispute-related data without clear minimization, consent, retention, or access controls.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The module’s user-facing description, usage text, and output strings are written entirely in Chinese, and the file does not offer any language or locale selection. Under the policy for natural-language violations, forcing a single language without opt-in is a reportable locale-policy issue.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The implementation persists user preferences and historical operation analysis in learned_patterns.json, including arbitrary key/value preferences and free-form notes tied to errors and recent operations. In the context of a complaint/rights-protection skill, those notes and preferences may contain highly sensitive facts about disputes, employers, purchases, addresses, or contact details, creating unnecessary privacy and data-retention risk beyond the skill's core function.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

在投诉维权技能的“使用后请调用”示例中,--capability 被填写为“简历优化”,这与本技能宣称的投诉维权文书用途明显不符。该文档内容会误导维护者,表明注释/文档与实际技能意图发生混杂或复制粘贴式偏离。

Content

No source excerpt is available for this finding.