Ae1
- Category
- analysis-evasion
- Confidence
- 100% confidence
- Finding
Referenced artifact was not completely inspected
- Content
md - `scripts/search.mjs` - 主搜索脚本,处理所有参数和API调用
Security audit
Security checks for vulnerabilities and agentic risk
This is a coherent Baidu Qianfan search helper that sends user searches to Baidu using a user-supplied API key, with no evidence of hidden persistence, exfiltration, or destructive behavior.
Install only if you intend to use Baidu Qianfan's external search service. Treat search queries as data sent to Baidu, avoid putting secrets or regulated personal data in queries, prefer an environment variable over a persistent .env file for the API key, and consider pinning dependencies with a lockfile before production use.
Referenced artifact was not completely inspected
- `scripts/search.mjs` - 主搜索脚本,处理所有参数和API调用
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
const __dirname = path.dirname(__filename);
// Load environment variables
dotenv.config({ path: path.join(__dirname, '..', '.env') });
const API_ENDPOINT = 'https://qianfan.baidubce.com/v2/ai_search/web_search';
Without declared permissions the skill's intent is opaque and cannot be validated.
The natural-language instructions from L010 onward require Chinese proficiency and do not provide an opt-in, alternative language, or justification that the skill is intended only for Chinese-speaking users. This creates a language/locale policy concern because the skill effectively forces a specific language without user choice.
The documentation describes the external Baidu Qianfan endpoint and authentication details but does not clearly warn users that their search queries will be transmitted to a third-party cloud service. In a search skill, queries may contain sensitive user data, so lack of explicit disclosure can lead to unintentional privacy exposure and policy noncompliance.
The script sends the user's search query and optional filtering parameters to Baidu Qianfan's remote API, but it does not provide any explicit notice at execution time that user-supplied content is being transmitted off-device. In a search integration skill, this is expected behavior, but it still creates a privacy risk because users may enter sensitive queries without realizing they are being sent to a third-party service.
The manifest description is written only in Chinese ("百度千帆搜索API调用技能"), which can impose a specific language on users without any indication of language choice or opt-in. The policy for this audit flags language or locale constraints when they are not explicitly optional or justified.
The dependency uses a caret range (^12.0.0), which permits automatic installation of newer compatible releases. This creates supply-chain risk because future upstream changes or a compromised publisher account could introduce malicious or breaking code without any change to this repository.
"description": "百度千帆搜索API调用技能",
"type": "module",
"dependencies": {
"commander": "^12.0.0",
"dotenv": "^16.4.0"
}
}
The dotenv dependency is also specified with a caret range (^16.4.0), allowing npm to resolve newer patch/minor versions over time. In a security-sensitive integration that handles API keys, accepting unreviewed upstream updates increases the chance of supply-chain compromise or unexpected behavior affecting secret handling.
"type": "module",
"dependencies": {
"commander": "^12.0.0",
"dotenv": "^16.4.0"
}
}