T08 · Insecure Dependencies
- Location
SKILL.md:260- Finding
Unpinned npm Package Execution with Access to API Credentials
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent A-share market data helper, but it tells users to run mutable npm code with API credentials and handles tokens in ways that could expose them.
Review this skill before installing. Use a pinned and trusted `daxiapi-cli` version instead of `@latest`, avoid pasting real tokens into command lines or chats, assume token-check output may be logged, and treat all market or stock guidance as informational rather than financial advice.
SKILL.md:260Unpinned npm Package Execution with Access to API Credentials
SKILL.md:252Plaintext API Token Disclosure Through Configuration Inspection
references/api-reference.md:1029Hardcoded Third-Party API Tokens Embedded in Request URLs
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
The skill provides step-by-step token acquisition and configuration instructions, including placing the secret directly on the command line and in environment variables, but it does not warn that the token is sensitive. In practice, this can lead users to expose credentials through shell history, screenshots, logs, terminal sharing, or accidental paste into chats, which is especially relevant because the skill centers on authenticated financial-data access.
The document provides explicit valuation-temperature thresholds and corresponding actions such as increasing fixed investment or considering profit-taking, which amounts to actionable investment guidance. Without a clear disclaimer that outputs are informational only and not financial advice, downstream agents may present these thresholds as recommendations, increasing the risk of unsuitable or harmful financial decisions.
The usage scenarios explicitly frame the API as supporting stock selection, DCA timing,涨跌停 analysis, and technical-pattern screening, all of which can directly influence trading behavior. In the context of an agent skill that routes user requests into specialized market-analysis tools, the absence of a matching risk warning makes it more likely that users receive operational investment suggestions without appropriate caution.
The documentation instructs users to run npx daxiapi-cli@latest, which fetches and executes the latest published package version at runtime. This creates a supply-chain risk: a compromised publisher account, malicious release, or breaking update could cause arbitrary code execution on the user's machine when they follow the example.
This example again uses npx daxiapi-cli@latest, causing execution of whatever version is current in the registry at the time the command is run. In an agent skill or documentation context, copy-pasteable unpinned execution commands materially increase the chance of users running unreviewed or malicious code.
The command example on this line also relies on npx with @latest, exposing users to registry-side package substitution or malicious future updates. Because the file is intended as a reference guide, these examples may be routinely reused, amplifying the operational risk of unpinned remote code execution.
All headings, field descriptions, guidance, and examples are presented in Chinese, and the file does not indicate that the skill is China-only or otherwise intentionally restricted to Chinese-language users. Per the policy, forcing a specific language without user opt-in or documented justification is a natural-language policy concern.
SQP-3 applies to all file types and covers language or locale policy violations. This file presents all user-facing instructions and field descriptions only in Chinese, with no indication that the user can opt into another language or that the skill is intentionally region-specific.