T09 · Insecure Skill Coding Practices
- Location
src/config.js:8- Finding
API Key Can Be Transmitted to an Arbitrary Plaintext Endpoint
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a straightforward stock-data API wrapper with disclosed API-key use and some state-changing preset tools, but no evidence of hidden persistence, local credential theft, or deceptive behavior.
Install only if you trust the configured stock API endpoint and need these stock-analysis and preset-management tools. Use HTTPS for remote API servers, keep the API key least-privileged, and be careful with preset delete/update commands because they change server-side data.
src/config.js:8API Key Can Be Transmitted to an Arbitrary Plaintext Endpoint
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
export STOCK_API_TIMEOUT="30"
### 方式二:.env 文件
```bash
cp .env.example .env
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
export STOCK_API_TIMEOUT="30"
### 方式二:.env 文件
```bash
cp .env.example .env
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
cp .env.example .env
# 编辑 .env 填写实际配置
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Referenced artifact was not completely inspected
node src/main.js <tool_name> '<JSON 参数>'
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
import { fileURLToPath } from "url";
const __dirname = dirname(fileURLToPath(import.meta.url));
loadDotenv({ path: resolve(__dirname, "..", ".env") });
export const API_BASE_URL = (process.env.STOCK_API_BASE_URL || "").replace(/\/+$/, "");
export const API_KEY = process.env.STOCK_API_KEY || "";
The README states that simply mentioning broad phrases like '股票筛选', '热门因子', '股票分析', or '抖音热点' will cause the agent to automatically invoke tools. This creates an overbroad trigger surface where normal conversation can unintentionally activate network-capable actions, increasing the risk of prompt-triggered tool use without clear user intent.
The skill requires environment variables and makes network-backed CLI calls, but the manifest does not declare any explicit permission scope such as allowed tools or permissions boundaries. That increases the chance the host agent invokes it with broader-than-necessary capabilities, making accidental data exposure or unintended outbound requests more likely.