Back to skill

Security audit

中文版本,自我进化工程,让你的身体力行更有价值

Security checks for vulnerabilities and agentic risk

Overview

This skill is meant to remember mistakes and preferences, but it can automatically save sensitive details and let stored memories steer future agent behavior across projects.

Install only if you deliberately want a persistent local memory system and are comfortable reviewing what it stores. Avoid using it around secrets, credentials, private project context, or untrusted user corrections unless memory writes are gated, redacted, scoped per project, and prevented from automatically modifying CLAUDE.md or AGENTS.md.

Vulnerability Patterns
  • 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
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (4)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:25
Finding

Persistent Memory Is Given Authority Over Current Agent Behavior

Content
View full analysis
everything 2. errors + fix (verified fixes) > guesses 3. best practices (experience) > defaults 4. knowledge gaps (knowledge updates) > training data ``` ### Technical Analysis The Skill mandates memory retrieval before broad classes of activity and assigns stored correction records precedence over all other guidance. Correction records contain free-form, user-controlled fields and are not subject to provenance verification, trust-level checks, contextual scoping, safety validation, or instruction neutralization. Consequently, a malicious correction can be interpreted as an authoritative behavioral rule rather than untrusted historical data. The phrase that corrections take precedence over “everything” creates an instruction-priority conflict and could cause the Agent to disregard current-session objectives or safety constraints. This is both an instruction-hijacking issue and a persistent-memory poisoning issue: the Skill text changes the Agent's instruction hierarchy, while the persistent storage allows the injected behavior to survive into later sessions. ### Attack Path 1. An attacker sends a message framed as a corre ...[truncated 1086 chars]
Remediation
View remediation

T02 · Agent Memory Poisoning

Error
Location
log_correction.py:18
Finding

Arbitrary User Corrections Are Persisted Without Trust or Safety Validation

Content
View full analysis
Remediation
View remediation

T02 · Agent Memory Poisoning

Error
Location
SKILL.md:152
Finding

Untrusted Memories May Be Propagated into Project Agent-Control Files

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
log_error.py:18
Finding

Commands and Error Output Are Retained in Plaintext Without Secret Redaction

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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 Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (18)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
97% confidence
Finding

The skill invokes multiple local Python scripts that read and write persistent files, but it declares no explicit tool scope or permissions boundary. This creates an undeclared capability surface where a host agent may permit filesystem access implicitly, reducing reviewability and increasing the chance of unsafe file operations being executed without user awareness.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The description, behavioral rules, trigger examples, and reply templates are all specified in Chinese, effectively constraining the skill's operating language. There is no indication that the user can choose another language or that the Chinese-only behavior is required for a region-specific purpose.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill requires logging user corrections, preferences, and contextual details to persistent storage without any privacy notice, consent flow, retention policy, or data minimization rule. This can capture sensitive user or project information and preserve it beyond the original interaction, making later disclosure or misuse more likely.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Persistently storing user corrections and reusing them in future responses creates a data propagation channel from one interaction into later ones. If users include secrets, internal conventions, credentials, or sensitive project details in corrections or context, the agent may later surface or act on that information in unrelated contexts.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill expands from self-memory into modifying project instruction files like CLAUDE.md or AGENTS.md, which can alter future agent behavior at the repository level. That creates a persistence and instruction-injection channel where remembered content, including imperfect summaries or sensitive data, can be propagated into trusted project control files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

Cross-project synchronization copies memories into global storage and project files without warning about privacy, repository contamination, or the possibility of leaking one project's information into another. Because the destination includes both global and repo-scoped artifacts, sensitive operational context can spread well beyond the conversation where it was first provided.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

Writing 'important memories' into global memory and repository instruction files creates a durable natural-language propagation path that can influence future agent behavior across projects. This is more dangerous in context because the copied content is treated as guidance by later runs, so mistaken, sensitive, or adversarially induced memories can become persistent behavioral instructions.

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 docstring is written entirely in Chinese and presents the tool as a Chinese-language skill without offering any language choice or explaining that it is intended only for a Chinese-speaking or region-specific context. This matches the language/locale policy concern for skills that implicitly force a specific language without user opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This Python file contains natural-language strings and descriptions entirely in Chinese, including the module docstring and all CLI help/output text. Because the skill does not offer user opt-in or an alternative locale, it appears to impose a specific language on users, which matches the language/locale policy violation category.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The file’s natural-language description is entirely in Chinese, including the tool name and behavior description, with no indication that language is configurable or chosen by the user. Under the stated policy, forcing a specific language/locale without opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code embeds its description, CLI help text, and console output entirely in Chinese, which imposes a specific language/locale on users. The file does not offer any language choice or document that the tool is intended only for a Chinese-speaking or region-specific context.

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 description, help text, and user-facing print strings are written in Chinese throughout the file, which effectively imposes a specific language on users. There is no opt-in, alternative locale, or justification that this tool is intended only for a Chinese-language environment.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The export command writes the complete memory dataset to a user-specified output path, which can expose stored user or system data. While the code prints the destination after writing, it does not provide a prior warning, confirmation, or explicit disclosure in comments/docstrings that the operation may persist sensitive data to disk.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The module docstring is written entirely in Chinese, which imposes a specific language choice in the skill's natural-language documentation. Under the stated policy, language constraints should be optional, user-selectable, or clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The manifest description is entirely in Chinese and the trigger phrases are defined only in Chinese, which implies the skill is designed to operate in a single language. The file does not mention user opt-in, multilingual support, or a justified region-specific limitation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The automatic activation rules describe high-level situations like '命令执行失败时自动记录错误' and '发现更优做法时自动记录最佳实践' without defining clear thresholds, trust boundaries, or review steps. This ambiguity can lead the agent to persist inaccurate, sensitive, or attacker-influenced information automatically, making the memory store a durable injection and data-retention surface.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The keyword triggers are common conversational phrases such as '不对', '应该', and '之前告诉你', which can appear in ordinary dialogue unrelated to durable memory creation. In a self-improving memory skill, this can cause unintended auto-logging of user input, corrections, or surrounding context, increasing the risk of privacy leakage, prompt poisoning, and long-term persistence of low-quality or adversarial data.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module docstring and all user-facing CLI descriptions/messages are written only in Chinese, which imposes a specific language choice on users. The file provides no option to select another language or indicate that the skill is intentionally region-specific.

Content

No source excerpt is available for this finding.