Back to skill

Security audit

T138 Imea Clawhub

Security checks for vulnerabilities and agentic risk

Overview

The skill is a memory tool, but it asks agents to automatically store, search, and reuse conversation history across all tasks with permanent retention and broad control hooks.

Review before installing. Use it only in a workspace where persistent agent memory is intended, and configure explicit consent, redaction for secrets and personal data, retention/deletion rules, pinned dependencies, and limits so memory records cannot override current user instructions or platform policy.

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 DependenciesIntroduces malicious components through unsafe dependency sources
  • 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 (3)

T01 · Skill Instruction Hijacking

Error
Location
config/agent-memory-certificate.md:7
Finding

Mandatory Agent-Wide Workflow and Control-Flow Override

Content
View full analysis
「每次對話/任務前,必須搜索記憶、提取教訓、記錄 WAL、寫入 L1。」 **違反後果:** - 第一次:警告 + 記錄到 L2 - 第二次:熔斷 + 報告 CEO - 第三次:Recurrence-Count ≥3 → 自動晉升到 L3(CEO 習慣) ``` The same file defines a mandatory pre-action workflow: ```markdown ### 1. Before Action Checklist **每次行動前必須檢查:** ```bash # 1. 搜索記憶 ./scripts/memory-check.sh "<任務關鍵詞>" # 2. 檢查 SESSION-STATE.md cat SESSION-STATE.md | grep "<關鍵詞>" # 3. 檢查錯誤記錄 cat .learnings/ERRORS.md | grep "<關鍵詞>" # 4. 檢查學習記錄 cat .learnings/LEARNINGS.md | grep "<關鍵詞>" # 5. 檢查重複錯誤 grep -B5 "Recurrence-Count: [3-9]" .learnings/LEARNINGS.md ``` **檢查通過 → 執行任務** **檢查失敗 → 報告 CEO** ``` The circuit-breaker instructions further state: ```markdown **熔斷後果:** - 🟡 警告:記錄到 L2,報告 CEO - 🔴 熔斷:停止任務,等待 CEO 決策 ``` ### Technical Analysis The Skill documentation claims authority over all agents and all tasks rather than limiting itself to an explicitly requested memory-management operation. It requires agents to execute a prescribed workflow before every action and instructs them to stop work when its checks fail. This is instruction hijacking because loading the Skill can alter the agent's current objective and control flow. A legitimate user request may be delayed or abandoned in favor of memory searches, state writes, and approval from an external role identified as the “CEO.” The documentation does not establish how that role is authenticated or whether it corresponds to the current user. Although the shell script itself does not modify safety controls, the Skill text is intended to influence agent behavior directly. In agent sy ...[truncated 1217 chars]
Remediation
View remediation

T02 · Agent Memory Poisoning

Error
Location
config/agent-memory-certificate.md:48
Finding

Persistent Storage of Untrusted Conversation Content and Behavioral Directives

Content
View full analysis
` 2. **搜索記憶** → 讀取 L1+L2+L3 相關記錄 3. **提取教訓** → 避免重複錯誤 4. **執行任務** → 記錄 WAL 到 SESSION-STATE.md 5. **完成任务** → 寫入 L1 日常記憶 ``` ### Technical Analysis The Skill requires agents to store task details, conversation summaries, decisions, lessons, preferences, and agent protocols in persistent files. Information is initially written to WAL or daily memory and may later be promoted into permanent event or long-term storage. Future agents are instructed to search and apply these records before acting. This creates a persistent trust channel from ordinary conversation content into future agent behavior. An attacker who can contribute content to a conversation may introduce fabricated preferences, malicious operating rules, or misleading “lessons.” If those statement ...[truncated 2032 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:33
Finding

Unpinned External Skill Dependencies

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (15)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The entire README, including setup, usage, warnings, and operational guidance, is written in Chinese/Cantonese with no indication that alternative languages are available. This can violate a language/locale policy when users are not given a choice or explicit opt-in for a non-default language.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill describes a multi-layer memory system intended to retain dialogue and task history, but it does not clearly warn users that their conversations and task data will be persistently stored across multiple directories and logs. This creates a privacy and data-governance risk because users may disclose sensitive information without informed consent, and the design encourages broad retention by default.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The configuration enables automatic session-end saving and scheduled memory checks/writes, but there is no explicit warning that this causes ongoing persistence of user/task content without per-use confirmation. Automatic persistence increases the chance of collecting sensitive data silently and makes accidental retention more likely.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill defines persistent logging and retention for daily conversations, major events, and long-term memory, including permanent storage for some categories, without scope limits or sensitivity filtering. In context, this is more dangerous because the skill's core purpose is to capture and preserve broad agent interaction history, which can include credentials, personal data, internal project details, or regulated information.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The workflow instructs the agent to search prior memory, read historical records, and write completed task details back into memory as a default operating mode. This creates a compounding privacy and confidentiality risk: sensitive information can be repeatedly surfaced to future tasks and retained indefinitely, increasing exposure, cross-task leakage, and the blast radius of any later compromise.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
73% confidence
Finding

All operational instructions, status labels, and required record formats in the certificate are written only in Traditional Chinese, and the policy is declared as applying to all agents. There is no indication that users or agents may opt into another language, nor any documented region-specific reason for enforcing this locale.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The pre-task checklist requires searching multiple accumulated session and learning files before every action, encouraging broad retrieval and reuse of prior conversational data regardless of relevance or sensitivity. This increases exposure of historic data across tasks and can cause privacy leakage, accidental disclosure, or inappropriate context mixing between users or workflows.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This section instructs agents to persistently record task and conversation details into SESSION-STATE.md and daily memory files as a routine requirement, but it provides no user notice, consent flow, minimization rule, or restriction on sensitive content. That creates a clear privacy and data-retention risk because user prompts, operational context, and potentially secrets can be written to long-lived plaintext storage by default.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file mandates logging every conversation after completion, including participants, summaries, decisions, follow-up items, and WAL references, into persistent natural-language memory files. This broad retention requirement materially increases the chance that sensitive user data, confidential business context, or secrets are stored and later exposed, reused, or exfiltrated.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document explicitly requires automatic recording of daily conversations, tasks, and context, but provides no consent, minimization, or privacy notice. In an agent skill, this can cause over-collection of sensitive user or operational data and normalize logging by default without user awareness.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file prescribes permanent storage of decisions, lessons, habits, and preferences, which may include sensitive personal and operational information, without any safeguards or warning. Long-term retention increases blast radius if memory stores are accessed, reused out of context, or later exposed to other agents or users.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The natural-language content states '語言:廣東話' as part of the communication style, which imposes a specific language requirement. Per SQP-3, forcing a language or locale without opt-in or clear justification is a policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script's comments, usage text, status messages, and recommendations are all presented in Chinese, making the skill effectively locale-fixed for users who invoke it. The file does not offer any language selection, fallback, or documented justification that this skill is intentionally region-specific, which matches the language/locale policy violation criteria.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The natural-language instructions throughout the skill file are presented only in Chinese/Cantonese-style wording, with no indication that users may choose another language. Per the policy, forcing a specific language without opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

The description includes only Traditional Chinese wording alongside English, which can indicate a fixed language presentation without any stated user choice or locale opt-in. Under the policy rule, locale or language constraints should be explicit and justified or offer user choice.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.