Back to skill

Security audit

Agent Skills Collector

Security checks for vulnerabilities and agentic risk

Overview

The skill appears to be a legitimate SkillHub collection/export tool, but it needs Review because it writes untrusted remote metadata into Excel without formula neutralization and has under-disclosed external data flows and mutable installs.

Install only if you are comfortable with the tool contacting SkillHub, cn.clawhub-mirror.com, and a third-party translation service. Open generated workbooks with external content and automatic link updates disabled, and prefer a project-local install with pinned dependency versions before using it in a sensitive environment.

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
scripts/collect_agent_skills.py:352
Finding

Spreadsheet Formula Injection Through Untrusted Skill Metadata

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:14
Finding

Unpinned Third-Party and Globally Installed Dependencies

Content
View full analysis
Remediation
View remediation
requests== ``` 2. Generate a hash-locked Python requirements file, for example with `pip-tools`, and install with hash enforcement: ```bash pip install --require-hashes -r requirements.txt ``` 3. Pin the npm package to a reviewed version instead of requesting the latest release: ```bash npm install -g skillhub@ ``` 4. Where possible, avoid global installation. Install npm dependencies into a project-local environment and invoke the pinned executable through an appropriate package script. 5. Install Python packages inside an isolated virtual environment rather than the system interpreter. 6. Commit the applicable lockfiles and verify package integrity and provenance in CI. 7. Use automated dependency scanning and establish an explicit update process so version changes receive review before distribution. 8. Remove `requests` if it remains unused, reducing the dependency surface. ]]>
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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (13)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill invokes shell commands and performs network-backed searches via the SkillHub CLI, but it does not declare any explicit tool scope such as permissions or allowed-tools. This creates a least-privilege and governance gap: a host agent may grant broader shell/network access than intended, making misuse, unexpected outbound requests, or unsafe command execution harder to control and audit.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description is written as a directive that the skill will search and export using Chinese-oriented behavior, and later notes explicitly prefer Chinese summaries. This imposes a language/locale choice without stating that users may choose another language or that the skill is region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The note to prioritize the summary field specifically because it is a Chinese description establishes a language preference in the skill instructions. There is no indication that users can opt into another language or that the Chinese-only preference is required for a documented regional purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill metadata says collection is from SkillHub, but the code also pulls data from cn.clawhub-mirror.com and from an external translation service. This undisclosed third-party data flow creates a transparency and supply-chain risk because users may believe they are interacting with one source while the script sends and receives data from additional domains.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/collect_agent_skills.py (reported line 159)May include surrounding context.

python
def search_skills(query, limit=15):
    """使用 skillhub CLI 搜索"""
    try:
        result = subprocess.run(
            ['skillhub', 'search', query, '--search-limit', str(limit), '--json'],
            capture_output=True, text=True, timeout=20
        )

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script sends skill descriptions to api.mymemory.translated.net for translation, which is outside the core stated purpose of collecting and exporting skills. Even if the text is not highly sensitive, this is an unnecessary external transmission of fetched content and may violate user expectations, internal policy, or data-handling requirements.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The code transmits description text to a third-party translation API without any user-facing notice, consent, or configuration gate. Lack of disclosure increases privacy and compliance risk because users cannot assess whether fetched content is permitted to leave their environment.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

This line performs an external HTTP request to a third-party translation service containing skill description text in the query string. Query-string transmission is especially visible in logs, proxies, and browser-like telemetry, making data exposure more likely and increasing the privacy/compliance impact of the undisclosed outbound request.

Content

Scanner excerpt · scripts/collect_agent_skills.py (reported line 226)May include surrounding context.

python
try:
        import urllib.parse
        encoded_text = urllib.parse.quote(text[:500])
        url = f"https://api.mymemory.translated.net/get?q={encoded_text}&langpair=en|zh"
        req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
        with urllib.request.urlopen(req, timeout=10) as response:
            result = json.loads(response.read().decode('utf-8'))

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The code explicitly forces descriptions into Chinese (强制中文描述) and automatically translates non-Chinese text, but provides no user opt-in or locale selection. This is a natural-language policy concern because it hard-codes a specific language behavior instead of letting the user choose.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
97% confidence
Finding

The dependency manifest leaves openpyxl unpinned, which makes builds non-reproducible and can result in installation of unexpected or vulnerable versions over time. In a skill that exports data to Excel, this package is likely core functionality, so consuming an outdated or newly introduced vulnerable release could expose the system to known parser or XML-related issues.

Content

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

text
openpyxl
requests

Unverifiable Dependency: openpyxl has 2 known advisory(ies) (CVE-2017-5992 (Improper Restriction of XML External Entity Reference in Openpyxl); CVE-2017-5992 (Openpyxl 2.4.1 resolves external entities by default, which allows remote attack)), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
91% confidence
Finding

The manifest does not specify which openpyxl version will be installed, so it is impossible to verify whether the environment avoids versions affected by known XXE-related advisories. Given this skill exports Excel content, use of a vulnerable openpyxl release could become relevant if the package processes attacker-controlled workbook or XML content anywhere in the workflow.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
98% confidence
Finding

The requests dependency is unpinned, so installations may resolve to different versions in different environments, including versions with known security defects. Because this skill performs real-time collection from an external site, the HTTP client is security-relevant and version drift can affect transport security, credential handling, and request processing behavior.

Content

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

text
openpyxl
requests

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
93% confidence
Finding

Because requests is not version-pinned, the deployed package may be an affected release with any of multiple known advisories, and the manifest provides no assurance that a safe version will be used. This skill makes network requests to an external service, so a vulnerable HTTP client could have practical security consequences depending on runtime behavior such as redirects, URL handling, TLS verification, or credential lookup.

Content

No source excerpt is available for this finding.