T09 · Insecure Skill Coding Practices
- Location
SKILL.zh-CN.md:21- Finding
Persistent Plaintext Storage of the Dataify API Token
- Content
View full analysis
> ~/.bashrc source ~/.bashrc ``` ```bash echo 'export DATAIFY_API_TOKEN="your_token_here"' >> ~/.zshrc source ~/.zshrc ``` ### Technical Analysis The localized Skill instructions recommend permanently storing the Dataify API token in a user environment variable or plaintext shell startup file. On Unix-like systems, the commands append the credential directly to `.bashrc` or `.zshrc`. On Windows, the credential is stored as a persistent user-level environment variable. This exceeds the minimum persistence required to execute a search request. A session-scoped environment variable would be sufficient. The recommendation also conflicts with the later account policy, which directs the Agent to present a session-scoped setup command first and only discuss persistent configuration when requested. Shell configuration files may be copied into backups, synchronized through dotfile repositories, included in support archives, or read by other processes operating under the same account. Persisted environment variables are inherited by subsequently launched processes and may appear in diagnostic data. ### Attack Path 1. A user follows the documented persistent setup instructions. 2. The Dataify token is written in plaintext to a shell startup file or user environment configuration. 3. A local process, backup recipient, support bundle, dotfile synchronization service, or attacker with access to the user account obtains the stored value. 4. The token is used to authenticate to Dataify and consume the victim's API credits or perform requests under the victim's account. ### Impact Assessment This issue does not grant operat ...[truncated 295 chars]- Remediation
View remediation
