other
- Location
memory_baidu_embedding_db.py:19- Finding
Undisclosed External Disclosure of Memory Content and Search Queries
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill provides semantic memory storage, but it understates privacy impact and includes broad persistent/root-level maintenance behavior that users should review before installing.
Install only after reviewing the privacy boundary and operational scripts. Do not store sensitive personal, business, health, financial, or secret data unless you accept that memory text and search queries may be sent to Baidu. Prefer a pinned packaged embedding client, an explicit local-only mode, unprivileged install paths, dry-run/confirmed maintenance operations, and validated backup/restore before production use.
memory_baidu_embedding_db.py:19Undisclosed External Disclosure of Memory Content and Search Queries
memory_baidu_embedding_db.py:19Execution of an Unpinned and Unaudited Python Module from a Mutable Root Path
memory_maintenance.sh:12Overbroad Cleanup Recursively Deletes Unrelated Files Under /root/clawd
memory_health_check.sh:50Health Check Silently Grants Execute Permission to Root-Level Scripts and Hooks
integrate.sh:20Integration Creates Persistent Skill Activation and Unintentionally Executes the Demo
package.json:6Declared Test Commands Modify Production Memory and Invoke External Processing
memory_maintenance.sh:35Unvalidated Restore Source Can Poison Persistent Agent Memory
The README claims 'Zero Data Leakage' and implies all processing is local, but the documented design relies on Baidu's external Embedding-V1 API. That means memory content or queries must leave the local system for embedding generation, creating a material privacy and trust mismatch that could cause operators to expose sensitive conversation data under false assumptions.
The README omits a clear privacy warning that user content is sent to Baidu's embedding API, while simultaneously asserting 'Zero Data Leakage' and 'No External Sharing.' This omission undermines informed consent, increases the chance of accidental disclosure of personal or confidential data, and is especially risky in a memory component that stores and processes conversation history.
The 'Security Features' section states 'Memories never leave your system' despite earlier documentation requiring Baidu API calls. This misleading security claim can cause users to deploy the skill for sensitive workloads without realizing conversation-derived data is shared with a third-party provider.
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
e.baidu.com/qianfan/) 2. 注册账户并登录 3. 导航到控制台获取API Key和Secret Key 4. 确保您有访问Embedding-V1模型的权限
使用以下命令设置环境变量:
# 临时设置(当前会话有效)
export BAIDU_API_STRING='${BAIDU_API_STRING}'
export BAIDU_SECRET_KEY='${BAIDU_SECRET_KEY}'
# 永久设置(添加到shell配置文件)
echo 'export BAIDU_API_STRING="${BAIDU_API_STRING}"' >> ~/.bashrc
echo 'export BAIDU_SECRET_KEY="${BAIDU_SECRET_KEY}"' >> ~/.bashrc
source ~/.bashrc
启动应用前,请验证环境变量是否正确设置:
# 检查环境变量
echo $BAIDU_API_STRING
echo $BAIDU_SECRET_KEY
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
e.baidu.com/qianfan/) 2. 注册账户并登录 3. 导航到控制台获取API Key和Secret Key 4. 确保您有访问Embedding-V1模型的权限
使用以下命令设置环境变量:
# 临时设置(当前会话有效)
export BAIDU_API_STRING='${BAIDU_API_STRING}'
export BAIDU_SECRET_KEY='${BAIDU_SECRET_KEY}'
# 永久设置(添加到shell配置文件)
echo 'export BAIDU_API_STRING="${BAIDU_API_STRING}"' >> ~/.bashrc
echo 'export BAIDU_SECRET_KEY="${BAIDU_SECRET_KEY}"' >> ~/.bashrc
source ~/.bashrc
启动应用前,请验证环境变量是否正确设置:
# 检查环境变量
echo $BAIDU_API_STRING
echo $BAIDU_SECRET_KEY
The 'Zero Data Leakage' feature claim is incompatible with the documented requirement for internet access and Baidu API credentials. This misrepresentation can cause operators to use the skill for confidential memory storage without realizing sensitive content may be disclosed to an external provider.
The skill omits a clear disclosure that memory contents are sent to Baidu's embedding API, despite making privacy-preserving claims. In a memory skill, the context increases risk because stored data is likely to include personal preferences, conversation history, and other sensitive material that users would reasonably expect to remain local.
The documentation claims that 'memories never leave your system' while the skill explicitly depends on Baidu's remote embedding API. This is a dangerous contradiction because users may store sensitive conversation history or personal data under the false assumption that it remains local, when in reality memory contents or queries may be transmitted to a third party.
The API reference documents storing arbitrary user memories and relies on Baidu-hosted embeddings, which implies user content may be transmitted to an external provider. Because the documentation does not clearly warn about third-party processing, consent requirements, retention, or sensitive-data restrictions, integrators may unknowingly send personal or confidential data off-device, creating privacy and compliance risk.
The sample memories include personal profile and behavioral data such as job background, preferences, and daily habits, normalizing storage of user profiling data without any privacy notice or consent guidance. In this skill context, the examples are especially risky because developers often copy sample code directly, which can lead to unnecessary collection and external transmission of personal data.
Natural-language policy violations include forcing a specific language without user opt-in. This file presents all instructions in Chinese and does not indicate that the skill is region-specific or provide an option for another language.
The guide documents external API usage and destructive memory operations, but it does not give user-facing warnings about privacy implications, third-party data transfer, retention, or the effects of deletion. In a memory system, users are likely to store sensitive personal or operational data, so missing warnings can lead to unintended disclosure to external services or accidental data loss.
The document makes a strong security claim that all data is stored locally and that there is no external data leakage risk, but the same guide explicitly requires Baidu API credentials and describes use of Baidu embedding services. This creates a misleading trust boundary: users may input sensitive memory content assuming it never leaves the host, when queries or content may be transmitted to an external provider for embedding or related processing.
The guide encourages storing user preferences and conversation context, which can easily include personal or sensitive data, but provides no privacy, consent, retention, or minimization guidance. In a memory/persistence skill, this omission increases the likelihood that developers will collect and retain user data insecurely or beyond what is necessary.
The startup instructions require external Baidu API configuration but do not warn that memory content, prompts, or embeddings may be sent to a third-party service. Because this is a memory system likely to process sensitive user data, omission of a privacy notice materially increases the chance of unintended disclosure.
The maintenance section documents commands such as cleanup, backup, optimize, and refresh without any warning about side effects, required permissions, or data-loss potential. In operational use, users may run destructive commands on trust, causing accidental deletion, overwrite, or service disruption.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
### 1. Get Baidu Qianfan API Credentials
1. Sign up at [Baidu Qianfan Console](https://console.bce.baidu.com/qianfan/)
2. Create an API Key and Secret Key
3. Ensure you have access to the Embedding-V1 model
### 2. Set Environment Variables
The README presents a user-facing error message entirely in Chinese, while the rest of the document is in English and there is no indication that the skill is intentionally China-only or that users can choose their language. This is a natural-language locale policy issue because it imposes a specific language without opt-in.
The document provides a privileged command that disables an installed extension by renaming a directory under /root using sudo, but it does so without any warning about operational risk, rollback, verification, or change-control review. In a skill context, users may copy-paste this directly, causing service disruption or disabling a legitimate component without understanding the consequences.
The skill includes a sudo command operating on a root-owned path, which normalizes privileged execution and can directly alter production components. Even if intended for administration, embedding such a command in a skill increases the chance of unsafe execution by users or automation without adequate validation or safeguards.
# 重命名扩展目录以立即禁用
sudo mv /root/.nvm/versions/node/v22.22.0/lib/node_modules/clawdbot/extensions/memory-lancedb \
/root/.nvm/versions/node/v22.22.0/lib/node_modules/clawdbot/extensions/memory-lancedb.BLOCKED
The instructions tell users to export API credentials directly in the shell without any guidance on secret handling, storage, shell history exposure, least-privilege use, or rotation. In an agent skill or shared admin environment, this can lead to credential leakage through logs, history files, process inspection, or accidental reuse in insecure contexts.
The guide tells users to print API credentials with echo for verification, which exposes secrets on screen and may leak them through terminal logging, screen recording, shared sessions, or support transcripts. Even if not stored in shell history directly, displaying raw secrets is an avoidable credential exposure risk.
The document states that no data is uploaded to external services, yet the same guide requires Baidu API credentials for embedding operations. That is a security-relevant contradiction because users may make trust decisions based on a false assumption about data flow and could unintentionally send sensitive content to a third-party provider.
The tutorial repeatedly demonstrates storing and retrieving user preferences, location, habits, job information, and other personal data, and it sends memory content to an external embedding provider, but it does not provide a meaningful privacy notice, consent guidance, data minimization advice, or retention/deletion policy. In a memory skill, this omission materially increases the risk of collecting sensitive personal data without users understanding that it may be persisted locally and processed by a third-party API.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
### Step 1: Get Baidu API Credentials
1. Go to the [Baidu Qianfan Console](https://console.bce.baidu.com/qianfan/)
2. Create an account or sign in
3. Navigate to the API management section
4. Create an API Key and Secret Key
5. Ensure you have access to the Embedding-V1 model
No suspicious patterns detected.