Back to skill

Security audit

shop-savvy

Security checks for vulnerabilities and agentic risk

Overview

The shopping assistant itself is coherent, but it includes an automatic persistent learning system that stores user preferences and usage history and can feed learned content back into the skill instructions.

Install only if you are comfortable with the skill writing local usage history and preferences into its directory. Before use, remove or disable the learner workflow, especially the instruction to write lessons back into SKILL.md, unless you intentionally want persistent local profiling and have a way to inspect and delete it.

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

Error
Location
scripts/learner.py:73
Finding

Persistent Agent Memory Poisoning Through Unsanitized Learning Data

Content
View full analysis
= THRESHOLD_ERROR: suggestions.append( f"⚠️ Error '{err}' has occurred {info['count']} times; add validation or fallback steps " f"and write the experience back into this Skill's SKILL.md " f"(lastNote: {info.get('lastNote','')})" ) ``` The reflection text above is an English translation of the source message; the interpolation and behavior are unchanged. Relevant instructions from `SKILL.md:176,194-196`, translated into English: ```markdown learned_patterns.json records operation totals, capability usage frequencies, error patterns, user preferences, and improvement suggestions. - Error count >= 3: proactively add validation or fallback steps and write the experience back into SKILL.md. - Important user preferences: write them into learned_patterns.json and apply them during the next invocation. ``` ### Technical Analysi ...[truncated 2812 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
Findings (10)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a shopping-decision assistant, but its documentation also instructs use of a generic self-learning subsystem that records usage history, errors, and user preferences to local files. This creates hidden state and data collection beyond the declared purpose, increasing privacy risk and making the skill behavior materially broader than users would reasonably expect.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Broad trigger phrases such as everyday shopping-related language can cause unintended activation, especially when the skill has write capability and persistent memory behavior. Accidental invocation increases the chance of collecting data or performing actions in contexts where the user did not intend to use this skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The self-learning/persistent memory section introduces cross-session state and adaptive behavior unrelated to the core shopping-assistant description. Undisclosed persistent adaptation can lead to privacy issues, unexpected behavior drift, and reuse of data in ways the user did not anticipate.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Although the documentation mentions a learning system and memory file, it does not clearly warn users that preferences and usage history may be stored locally across sessions. This undermines informed consent and can result in privacy-sensitive data being retained without the user's clear understanding.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation directs storage of user preferences and usage history in a local file without showing a clear necessity tied to shopping recommendations. Persisting this data across sessions can expose user behavior patterns and preferences to unintended readers or later tasks, especially in shared or multi-skill environments.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The instructions explicitly direct the skill to persist user preferences and usage history in a local memory file across sessions. Cross-session persistence is dangerous in agent skills because it can accumulate behavioral profiles, leak data between tasks, and create privacy and integrity risks if the file is later read, modified, or repurposed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module is explicitly designed as a generic cross-skill learning component that persistently logs usage history, errors, notes, and user preferences, which exceeds the shopping assistant’s stated purpose of price comparison and purchase advice. In this context, the broad, reusable data collection creates unnecessary profiling and retention risk, especially because notes/preferences may contain sensitive free-form user data and there are no consent, minimization, scoping, or retention controls.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module’s docstring, usage text, and all user-facing messages are written exclusively in Chinese, with no indication that users may choose another language. Under the stated policy, forcing a specific language without 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.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

These functions implement reusable behavior tracking and preference profiling by writing persistent capability stats, error patterns, recent operations, and arbitrary key/value preferences to disk. Because the shopping skill does not need a general-purpose user profiling subsystem to fulfill its advertised function, this increases privacy risk and enables silent accumulation of behavioral data beyond user expectations.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The inline documentation says the capability argument should be this skill's main capability, but the concrete examples use '简历优化' and mention '格式识别失败', which are unrelated to shopping assistance. This indicates copied documentation that actively conflicts with the skill's stated intent and could mislead operators about what the skill is for.

Content

No source excerpt is available for this finding.