T09 · Insecure Skill Coding Practices
- Location
SKILL.md:176- Finding
Plaintext Collection and Persistent Storage of Aster API Credentials
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is for Aster Spot API use, but it asks agents to persist exchange API keys in a plaintext workspace file while also documenting trading, transfer, and withdrawal actions.
Review before installing. Use this only with narrowly scoped Aster API keys, preferably read-only or trading-only without withdrawal permissions, and do not place real API keys or secrets in TOOLS.md or any project Markdown file. Prefer a dedicated secret store, IP allowlisting, and explicit confirmation for every order, transfer, withdrawal, or API-key creation action.
SKILL.md:176Plaintext Collection and Persistent Storage of Aster API Credentials
references/authentication.md:67API Secret Exposed Through OpenSSL Command-Line Arguments
The documentation explicitly tells the agent to store user API credentials in TOOLS.md, creating local secret persistence that is unnecessary for simple API request handling. Persisting exchange API keys and secrets in a workspace file can expose them to other tools, later prompts, logs, backups, or unrelated skills, enabling account compromise and unauthorized trading or withdrawals.
This markdown skill describes its function in broad natural language ('Spot request on Aster') but does not define concrete invocation phrases, scope boundaries, or exclusion conditions. That ambiguity can increase the chance of unintended activation for general Aster-related requests.
The skill exposes order placement, fund transfer, and withdrawal endpoints, which can cause irreversible financial loss, but only documents a basic mainnet confirmation step. In the context of an agent skill, broad transactional capability without stronger safeguards such as per-action confirmations, parameter validation, and withdrawal restrictions is dangerous because prompt mistakes or prompt injection could trigger costly actions.
The document says secrets must never be displayed in full, yet it includes a storage template showing plaintext-style API key and secret examples. Even if illustrative, this normalizes unsafe handling of secrets and can cause downstream implementations or operators to copy the pattern into real files, defeating the masking guidance.
The skill’s stated purpose is making Aster Spot API requests, but the documentation expands into credential storage, account management, and local persistence behavior. That scope expansion materially increases the attack surface because a request-execution skill now instructs the agent to retain long-lived secrets outside the immediate transaction flow.