Skill flagged — suspicious patterns detected
ClawHub Security flagged this skill as suspicious. Review the scan results before using.
baidu_search
v1.0.0Perform Baidu search to retrieve Chinese web results with titles, summaries, and links, and parse webpage content from search results.
⭐ 0· 57·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Suspicious
medium confidencePurpose & Capability
Name/description claim: perform Baidu searches and parse webpages. The code and instructions align with that purpose: they call baidusearch.search and use fetch_url to GET and parse HTML. Required files and imports match the stated functionality and no unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and scripts instruct the agent to fetch and parse arbitrary URLs returned by Baidu (and the fetch_url script accepts any URL). That is coherent for a crawler, but it means the skill can be used to fetch arbitrary network endpoints (including internal/private addresses) — a server-side request/SSRF risk if run in an environment with access to internal services. Additionally, fetch_url disables SSL verification (requests.get(..., verify=False)) which weakens transport security and can lead to accepting spoofed responses. The SKILL.md suggests waiting 15 seconds between searches to avoid bans, but search_and_fetch.py uses time.sleep(1) between fetches — a mismatched guidance vs implementation that could lead to more aggressive scraping than recommended.
Install Mechanism
Instruction-only install (no install spec). Dependencies are standard Python packages (baidusearch, requests, beautifulsoup4, lxml) and the SKILL.md instructs how to pip-install them. No downloads from arbitrary URLs or archive extraction are present in the bundle.
Credentials
The skill declares no required environment variables or credentials. The code does not access environment variables or local config files. The lack of credential requests is proportionate to the stated purpose.
Persistence & Privilege
always is false and the skill is user-invocable / can be invoked autonomously (platform default). The skill does not request persistent system presence or modify other skills' configs. No privilege escalation behavior detected in provided code.
What to consider before installing
This skill appears to implement Baidu searching and HTML parsing as described, but consider the following before installing or running it in production:
- SSL verification disabled: fetch_url uses requests.get(..., verify=False). That makes HTTPS requests accept invalid certificates and is a security risk (MITM, spoofed pages). Consider changing verify=True or making certificate validation configurable.
- Arbitrary URL fetch / SSRF risk: the scripts will fetch any URL you (or search results) provide. If the host running the skill has network access to internal endpoints (localhost, 169.254.169.254, internal metadata services), an attacker or a crafted query could cause the agent to retrieve sensitive internal data. Run this skill in a restricted network environment, or implement URL whitelisting/validation.
- Rate-limiting mismatch: SKILL.md recommends waiting >=15s between searches to avoid IP bans, but search_and_fetch.py sleeps 1s between fetches. If you care about being polite/avoiding bans, adjust the sleep interval in the script or add a configurable throttle.
- Dependency safety: the skill depends on the third-party 'baidusearch' package. Verify that package and its version are trustworthy before installing, especially if installing globally. Prefer installing into an isolated virtualenv.
- General sandboxing: because the skill can make outbound HTTP requests and return arbitrary webpage content, avoid running it in environments that grant access to sensitive internal networks or cloud metadata endpoints.
If you accept these risks and run the skill in a controlled/sandboxed environment (or fix the verify=False and add URL whitelisting/rate-limiting), the skill is coherent with its declared purpose. If you need higher assurance, request information about the 'baidusearch' dependency and consider altering the code to enforce safe defaults (verify=True, strict URL checks, configurable delay).Like a lobster shell, security has layers — review code before you run it.
latestvk97ej4egabwv2pssac6ggabcs983h4e7
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
