Back to skill

Security audit

Local Hub

Security checks for vulnerabilities and agentic risk

Overview

This skill is a documented local-control hub, but it asks users to install and run an unverified external backend that can access sensitive devices, clipboard data, and host scripts.

Install only if you trust the external local_hub backend and are comfortable giving a local service access to your microphone, camera, clipboard, local model services, and allowlisted scripts. Prefer verifying the backend source, pinning the release by checksum or commit, running it with minimal privileges, keeping it bound to 127.0.0.1, and confirming every device, clipboard, or script action before use.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Findings (1)

T03 · Remote Payload Retrieval and Execution

Error
Location
SKILL.md:14
Finding

Installation and Execution of an Unverified External Backend

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 14–17
Vulnerability Type: Remote payload retrieval and insecure dependency installation
Risk Level: High

markdown
> **Server code and download:**
> - Repository: https://github.com/DamianLeeMoha/local_hub
> - Direct ZIP: https://github.com/DamianLeeMoha/local_hub/releases/download/v1.0.0/local_hub-v1.0.0.zip
> Extract the archive, create a virtual environment, install dependencies
> (`python3 -m venv .venv-hub`, `source .venv-hub/bin/activate`,
> `pip install -r requirements.txt`), and then execute `./run.sh`.

Technical Analysis

The Skill is documentation-only and does not include the backend source that implements its declared functionality. Instead, it directs the user to download a release archive from a personal GitHub repository, install the externally supplied Python dependency set, and execute an externally supplied startup script.

The instructions provide no cryptographic checksum, signature, verified immutable source commit, or hash-locked dependency manifest. Consequently, the behavior of run.sh, the backend source, and packages referenced by requirements.txt cannot be established from the audited artifact. A compromised maintainer account, replaced release asset, malicious repository change, or compromised dependency could therefore introduce code that was absent during Skill review.

Installing the backend is necessary to provide the documented local capabilities, but trusting an unverified external payload is not the minimum-risk way to provide them. The trust exposure is particularly significant because the advertised backend handles microphones, cameras, clipboard contents, local file paths, system information, local AI services, and whitelisted script execution.

Attack Path

  1. An attacker compromises the external repository, its maintainer account, the release asset, or a dependency referenced by the external `requireme ...[truncated 1441 chars]
Remediation
View remediation

Remediation Suggestions

  1. Include the complete backend source in the reviewed distribution, or pin the external source to a specific immutable commit.
  2. Publish a SHA-256 or stronger digest for the release archive and require users to verify it before extraction or execution.
  3. Cryptographically sign releases and document a trusted signature-verification procedure.
  4. Replace an unconstrained requirements.txt workflow with a reviewed lockfile containing exact versions and package hashes, such as hash-validated requirements used with pip --require-hashes.
  5. Review installation scripts and prohibit dependency build hooks or packages from untrusted indexes where feasible.
  6. Run the service as a dedicated, unprivileged account or inside a sandbox with narrowly scoped filesystem, network, camera, microphone, and clipboard permissions.
  7. Disable sensitive capabilities by default and require explicit user authorization before activating device access, clipboard access, local-file processing, or script execution.
  8. Document and enforce loopback-only binding, endpoint authentication, request authorization, script allowlist validation, parameter validation, and request logging.
  9. Require explicit user confirmation before the agent invokes privacy-sensitive or command-execution endpoints.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill documents direct access to sensitive local resources including microphone, camera, clipboard, and local script execution, but does not prominently require user consent or warn about privacy and host-execution risks. In an agent setting, these capabilities materially increase the chance of unintended surveillance, data theft, or dangerous local actions if invoked without explicit confirmation.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 58)May include surrounding context.

md
---

## 怎么用(curl 示例)

**基地址**:`http://127.0.0.1:9000`(若改过端口或主机,以实际为准)。

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Even though execution is described as 'whitelisted', the skill advertises a mechanism to run local executables on the host without clearly highlighting the security implications. This is dangerous because a misconfigured whitelist, unsafe parameter handling, or overly broad trust in the caller can lead to arbitrary local actions, persistence, or data exfiltration.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The clipboard write example shows how to overwrite clipboard contents but does not warn that doing so destroys the user's current clipboard state and may replace sensitive copied data. In an interactive agent workflow, silent clipboard modification can cause data loss, confusion, or facilitate phishing-style substitution attacks.

Content

No source excerpt is available for this finding.