Back to skill

Security audit

Hot Search

Security checks for vulnerabilities and agentic risk

Overview

This search skill mostly matches its web-search purpose, but it also contains under-disclosed image downloading that can fetch arbitrary URLs and write local files.

Review before installing. Treat searches as external disclosures to third-party search engines, avoid sensitive trading/client/proprietary queries, and avoid exposing the image download methods unless they are restricted to HTTPS, public hosts, validated image content, size limits, and a fixed non-overwriting download directory.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
search_skill.py:145
Finding

Unrestricted URL Retrieval and Caller-Controlled File Write

Content
View full analysis
bool: """下载图片到本地""" import os headers = self._get_headers() try: # 确保目录存在 os.makedirs(os.path.dirname(output_path) if os.path.dirname(output_path) else ".", exist_ok=True) response = self.session.get(image_url, headers=headers, timeout=self.timeout) if response.status_code == 200: with open(output_path, "wb") as f: f.write(response.content) print(f"图片已下载:{output_path}") return True else: print(f"下载失败:HTTP {response.status_code}") return False except Exception as e: print(f"下载异常:{str(e)[:100]}") return False ``` ### Technical Analysis The `download_image()` method accepts both `image_url` and `output_path` from its caller without applying security restrictions. The URL is passed directly to `requests.Session.get()`. The method does not: - Restrict requests to HTTPS. - Restrict destination hostnames to approved image providers. - Resolve and reject loopback, private, link-local, reserved, or cloud metadata addresses. - Validate the destination of HTTP redirects. - Confirm that the response is an image. - Limit the response size or stream it under a fixed byte limit. Consequently, any caller able to invoke this Python method with controlled arguments can cause the process to contact arbitrary network destinations, including internal services. The destination path is also used directly with `os.makedirs()` and `open(..., "wb")`. There is no dedicated download root, canonical-path containment check, filename generation, symlink defense, or protection against overwriting an existing file. The method can therefore create directo ...[truncated 2107 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
requirements.txt:1
Finding

Unpinned and Unverified Third-Party Dependencies

Content
View full analysis
=2.28.0 beautifulsoup4>=4.11.0 lxml>=4.9.0 ``` ### Technical Analysis All dependencies use minimum-version constraints rather than exact, reviewed versions. No lock file or package hashes are provided. As a result, `pip3 install -r requirements.txt` can select any future package release satisfying the lower bound. The listed package names are established PyPI projects, and the reviewed files do not configure a suspicious package index or identify a currently malicious dependency. The risk arises from allowing unreviewed future artifacts and transitive dependency versions to enter the installation. Python package installation can execute build-related code, while installed packages execute with the privileges of the Skill process when imported. Without hashes, package artifacts are not cryptographically tied to versions reviewed by the project. The implementation imports `requests` and `beautifulsoup4`. Although `lxml` is declared, the reviewed code does not explicitly select the `lxml` parser, so the dependency should be removed if it is unnecessary. ### Attack Path 1. A user follows the documented installation procedure and runs `pip3 install -r requirements.txt`. 2. pip contacts the package index configured in the user's environment. 3. It resolves the newest available versions satisfying the broad lower bounds, including transitive dependencies. 4. A compromised, malicious, or unexpectedly incompatible future artifact may be selected without any project-level hash verification. 5. Package build or installation behavior executes with the installer's privileges, or malicious behavior executes later when the package is imported. 6. The affected code gains access to the same files, credentials, environment, and network resource ...[truncated 753 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (16)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

A description-behavior mismatch is a real security problem here because the skill is presented as a financial/market search helper, while detected behavior includes general web search plus image downloading and local file writes that are not disclosed. Hidden or undeclared capabilities increase the chance of users authorizing the skill under false assumptions, and file-writing behavior can create persistence or data-handling risks.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README promotes multi-engine web search and emphasizes free, unlimited use, but it does not disclose that user queries will be transmitted to third-party search providers such as Bing, Yandex, and Swisscows. In a finance-focused skill, users may submit sensitive trading, research, or business-intelligence queries, so the lack of a privacy warning can lead to unintentional external data disclosure.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises network-capable search behavior but does not declare any explicit tool scope or permissions, which weakens enforcement and user awareness around what external actions the skill may perform. In an agent ecosystem, undeclared network/MCP capability can enable unexpected outbound requests or tool access beyond what a user reasonably infers from the manifest.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation encourages sending search terms to external engines and then fetching third-party URLs, but it does not warn users that their queries, interests, and selected links will be disclosed to outside services. This creates privacy and data-governance risk, especially in a finance-oriented context where searches may reveal sensitive research, positions, or client interests.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The Accept-Language header hard-codes Chinese locales first, which imposes a specific language/locale preference on all searches. There is no user choice or documented justification for this locale restriction in the file.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill is presented as a financial/market search tool, but it also performs image search and downloads external content to local disk. This expands capability beyond the declared purpose, creating hidden file-write and untrusted content ingestion behavior that users and orchestrators may not expect.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The code downloads attacker-controlled remote content and writes it to local files, which is unnecessary for the stated search purpose. Even without code execution, this can consume disk space, introduce unsafe files into the workspace, and be chained with downstream tools that trust local files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The download function writes to an arbitrary caller-supplied path with no confirmation, policy gate, or path restriction. In an agent setting, this can overwrite or plant files in sensitive workspace locations and makes remote content persistence too easy.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The best-practices section instructs users to use English for international data and Chinese for domestic data, which imposes a language preference in the guidance. The policy allows language constraints only when users are offered a choice or when the constraint is clearly justified and documented as such.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
95% confidence
Finding

The dependency specifier uses a lower bound only (requests>=2.28.0), which allows future installs to resolve to different versions over time. This weakens build reproducibility and can inadvertently pull in vulnerable or behavior-changing releases, especially important for a network-facing search skill that relies on HTTP requests.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
requests>=2.28.0
beautifulsoup4>=4.11.0
lxml>=4.9.0

Unverifiable Dependency: requests has 16 known advisory(ies) (CVE-2014-1830 (Exposure of Sensitive Information to an Unauthorized Actor in Requests); CVE-2024-47081 (Requests vulnerable to .netrc credentials leak via malicious URLs); CVE-2024-35195 (Requests `Session` object does not verify requests after making first request wi) +13 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
83% confidence
Finding

requests has multiple known advisories, and because the manifest does not pin a version, there is no way to verify whether deployments will avoid affected releases. In a search skill that makes outbound HTTP requests, this uncertainty matters more because vulnerable client behavior could expose credentials, weaken TLS assumptions, or mishandle redirects/URLs depending on the resolved version.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
94% confidence
Finding

beautifulsoup4>=4.11.0 is unpinned, so installations are not deterministic and may consume unreviewed future releases or transitive changes. While not an exploit by itself, this increases supply-chain and stability risk in a skill that parses externally sourced web content.

Content

Scanner excerpt · requirements.txt (reported line 2)May include surrounding context.

text
requests>=2.28.0
beautifulsoup4>=4.11.0
lxml>=4.9.0

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
96% confidence
Finding

lxml>=4.9.0 is also unpinned, which permits non-reproducible installs and may introduce versions with known security defects or parsing changes. Because this skill is designed for web scraping/search aggregation, parser-library version drift is more relevant than in a non-networked context.

Content

Scanner excerpt · requirements.txt (reported line 3)May include surrounding context.

text
requests>=2.28.0
beautifulsoup4>=4.11.0
lxml>=4.9.0

Unverifiable Dependency: lxml has 14 known advisory(ies) (CVE-2021-43818 (lxml's HTML Cleaner allows crafted and SVG embedded scripts to pass through); CVE-2014-3146 (lxml Cross-site Scripting Via Control Characters); CVE-2021-28957 (lxml vulnerable to Cross-Site Scripting ) +11 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
84% confidence
Finding

lxml has a history of security advisories, and without an exact version pin the installed release cannot be audited from this manifest alone. Since the skill processes remote HTML/XML-like content, using an unverifiable parser version increases the chance of deploying a build with a known parsing or sanitization flaw.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The docstring advertises anti-crawling bypass behavior and image download functionality not reflected in the stated skill intent. This mismatch reduces transparency and can conceal network behaviors that violate user expectations or platform policy.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The usage string and bundled examples are written only in Chinese terms such as '关键词' and Chinese query examples, which imposes a specific language/locale in the skill's natural-language interface. The file does not indicate that Chinese is optional or that alternative language usage is supported, so this can conflict with a policy requiring user language choice.

Content

No source excerpt is available for this finding.