T09 · Insecure Skill Coding Practices
- Location
MEMORY.md:7- Finding
Plaintext Device Credentials Are Installed, Committed, and Prepared for Remote Upload
- Content
View full analysis
| Hostname | SmartPi | | IP address | 10.1.1.1 (wired) / 192.168.31.247 (WiFi) | | User/password | zmrobo / zmrobo | | System | Debian 10 (buster) | ``` The same sensitive information is duplicated in the index: ```markdown ### System Configuration - IP: 10.1.1.1 (wired) / 192.168.31.247 (WiFi) - User: zmrobo / Password: zmrobo - System: Debian 10 + ARM Cortex-A55 ``` The installer copies and commits these files: ```bash # install.sh:18-20 cp "$SKILL_DIR/"*.md "$MEMORY_DIR/" 2>/dev/null || true cp "$SKILL_DIR/"*.json "$MEMORY_DIR/" 2>/dev/null || true cp "$SKILL_DIR/"*.sh "$MEMORY_DIR/" 2>/dev/null || true ``` ```bash # install.sh:35-36 git add . git commit -m "init: OpenCode记忆库初始化" ``` The synchronization script subsequently commits and pushes the repository: ```bash # sync.sh:20-33 # 添加所有更改 git add . # 检查是否有更改 if git diff --cached --quiet; then echo "✅ 没有需要同步的内容" exit 0 fi # 提交 git commit -m "sync: $(date '+%Y-%m-%d %H:%M:%S')" # 推送 git push origin master ``` ### Technical Analysis The distributed memory template contains a plaintext username and password together with the device hostname, operating system, architecture, and internal IP addresses. These are not isolated documentation values: the installation process copies the files into `~/.opencode-memory` and executes `git add .` followed by a commit. The documented workflow instructs the user to configure a Gitee remote and push this repository. The synchronization script then stages, commits, and pushes the credential-bearing files. If the remote repository is public, shared too broadly, or compromised, the ...[truncated 1984 chars]- Remediation
View remediation
