baidu-search
Pass
Audited by Gen Agent Trust Hub on Nov 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill invokes a local Python script (
scripts/search.py) to process user queries and interact with the Baidu search service. This is a standard and expected capability for a search-integrated tool. - [EXTERNAL_DOWNLOADS]: The Python script communicates with the official Baidu AI Cloud endpoint (
https://qianfan.baidubce.com) to retrieve web search results. This connection is authenticated via a user-configuredBAIDU_API_KEYenvironment variable and uses the standardrequestslibrary. - [INDIRECT_PROMPT_INJECTION]: As the skill fetches search results from the web, it represents a potential surface for indirect prompt injection if external content contains malicious instructions intended for the AI agent. The script performs basic sanitization by removing snippets, but the primary content remains for the agent to process.
- Ingestion points: Search result retrieval in
scripts/search.pyvia the Baidu AI Search API. - Boundary markers: None identified in the provided instructions.
- Capability inventory: Subprocess execution (Python) and network access to Baidu's API.
- Sanitization: The script explicitly removes the
snippetfield from reference data before returning results to the agent.
Audit Metadata