T09 · Insecure Skill Coding Practices
- Location
SKILL.md:216- Finding
Wallet Bearer Credentials Are Persisted Without Mandatory Filesystem Protections
- Content
View full analysis
.json`. Otherwise, you can store it in your current working directory at `agentwallet/.json`. ``` ```markdown - Always store the API key from wallet creation. If you're an openclaw instance, store it in `~/.openclaw/credentials/agentwallet/.json`. Otherwise, you can store it in your current working directory at `agentwallet/.json`. - Always search for the API keys in the credentials folder before using the API. If you're an openclaw instance, search for the API key in `~/.openclaw/credentials/agentwallet/.json`. Otherwise, you can search for the API key in your current working directory at `agentwallet/.json`. ``` ### Technical Analysis The API key is a bearer credential authorizing financially consequential wallet operations. The Skill directs the agent to persist this credential in a JSON file but does not require restrictive directory or file permissions, encryption at rest, use of an operating-system credential manager, log redaction, or protection against source-control inclusion. The fallback location under the current working directory is especially unsafe because it may be inside a repository, shared workspace, synchronized directory, build context, or backup set. A plaintext key could consequently be exposed through an accidental commit, artifact upload, permissive file mode, workspace sharing, or access by another local process. Searching the dedicated `agentwallet` directory is reasonably connected to credential retrieval and is not evidence of indiscriminate credential harvesting. The security ...[truncated 1165 chars]- Remediation
View remediation
