Back to skill

Security audit

UXC Skill Creator

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent UXC wrapper-creation purpose, but it under-scopes user-controlled endpoint probing and shell-style command examples in ways users should review before installing.

Install only if you are comfortable with an agent probing provider endpoints through UXC. Use it with trusted endpoints, avoid private or local network targets unless intentional, and require validation/escaping of host values before running generated shell commands.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:28
Finding
Shell command injection through unvalidated endpoint interpolation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:28-33, 60`; `references/workflow.md:5-9, 25`; `references/templates.md:23-27, 39, 58-62, 79` **Vulnerability Type**: Untrusted input used in shell-oriented command construction **Risk Level**: High ### Complete Code Snippet From `SKILL.md:28-33`: ```markdown 1. Start from user-provided host input: - record the raw host the user gives - normalize endpoint candidates (scheme/no-scheme, path variants) 2. Discover protocol and valid path before drafting skill text: - search official docs/repo to confirm endpoint shape and auth model - probe candidates with `uxc <endpoint> -h` ``` The generated template in `references/templates.md:23-27` repeats the unsafe pattern: ```markdown 1. Confirm endpoint/protocol/auth from user host: - search official docs for canonical endpoint and auth requirements - probe with `uxc <host> -h` (and endpoint variants if needed) 2. Use fixed link command by default: - `command -v <link_name>` - If missing, create it: `uxc link <link_name> <host>` ``` ### Technical Analysis The Skill explicitly starts with a raw, user-provided endpoint and places that value into shell-oriented command examples. It does not require URL parsing, character validation, shell escaping, or execution through an argument-vector API. If an Agent replaces `<host>` or `<endpoint>` with attacker-controlled text and executes the rendered command through a shell, shell metacharacters can terminate the intended `uxc` argument and introduce another command. Quoting alone would not be sufficient unless quoting and escaping are implemented consistently for the target shell. The validator also checks only whether these command patterns appear in generated documentation. It does not enforce safe endpoint validation or safe process invocation. ### Attack Path 1. An attacker supplies a crafted endpoint containing shell syntax, such as a URL followed by a command separator and an atta ...[truncated 1123 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Parse the supplied value with a URL parser before any command is constructed. 2. Permit only explicitly supported schemes, preferably `https`. 3. Reject control characters, whitespace, shell metacharacters, embedded credentials, and malformed hostnames. 4. Execute `uxc` through a process API using an argument array, for example the conceptual equivalent of `["uxc", validatedEndpoint, "-h"]`, without invoking a shell. 5. Do not recommend direct textual substitution of raw values into shell commands. 6. If shell execution cannot be avoided, apply shell-specific escaping and retain explicit quoting around every substituted value. 7. Update wrapper templates to use validated variables, such as: ```bash uxc -- "$validated_endpoint" -h ``` This should only be used if `uxc` supports `--`; argument-array execution remains preferable. 8. Extend generated validators to reject unquoted endpoint placeholders and require endpoint-validation guidance. 9. Add tests using endpoints containing spaces, quotes, semicolons, command substitutions, newlines, and leading hyphens. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
references/workflow.md:5
Finding
Arbitrary endpoint probing permits SSRF-style internal network access<![CDATA[ ## Vulnerability Details **File Location**: `references/workflow.md:5-25`; `SKILL.md:28-38`; `references/templates.md:23-24`; `references/validation-rules.md:26-27` **Vulnerability Type**: Unrestricted user-controlled network destination **Risk Level**: Medium ### Complete Code Snippet From `references/workflow.md:5-25`: ```markdown Start from the endpoint/host provided by the user. Build a candidate list before committing to one: - raw value from user - shorthand host/path form - full URL form (`https://...`) - common provider path variants (for MCP often `/mcp`) Keep the candidate list explicit in working notes. ## 2. Discover protocol and path (search + probe) Use both external signals and runtime probing: 1. Search official docs or repository README for: - protocol type (MCP, OpenAPI, GraphQL, gRPC, JSON-RPC) - canonical endpoint path - authentication requirements 2. Probe each endpoint candidate: - `uxc <candidate_endpoint> -h` ``` ### Technical Analysis The workflow requires runtime requests to endpoint candidates derived from user input but does not restrict destination schemes, resolved IP ranges, ports, redirects, or DNS behavior. Consequently, the Agent may act as a network proxy into environments that are reachable from the Agent but inaccessible to the requesting user. Searching official documentation does not adequately mitigate this issue because the runtime destination remains user-controlled. The instructions also encourage probing path variants, which can increase the number of requests made to the target. Relevant prohibited destinations commonly include loopback, private, link-local, multicast, unspecified, and cloud metadata addresses. Validation must occur after DNS resolution and again after redirects to prevent DNS rebinding and redirect-based bypasses. ### Attack Path 1. An attacker provides an endpoint that resolves to an internal service, loopback address, link-local service, or cloud metadata addres ...[truncated 1328 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Allow only supported network schemes and default to HTTPS. 2. Resolve the hostname before connecting and reject: - Loopback ranges - RFC 1918 private ranges - Link-local ranges - Multicast and unspecified addresses - IPv6 local, link-local, and IPv4-mapped equivalents - Known cloud metadata addresses 3. Revalidate every redirect destination and resolved address before following it. 4. Protect against DNS rebinding by pinning the validated resolution for the connection or validating the actual connected address. 5. Apply an explicit destination allowlist where wrapper creation is limited to known providers. 6. Require informed user confirmation before accessing legitimate private-network endpoints. 7. Restrict destination ports and disable nonessential protocols. 8. Apply short timeouts, response-size limits, redirect limits, and request-count limits. 9. Avoid returning raw probe responses when they may contain sensitive internal information. 10. Add validation rules and tests covering localhost, private IPv4 and IPv6 ranges, metadata endpoints, redirect chains, mixed-format IP addresses, and DNS rebinding scenarios. ]]>
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Ae1

High
Category
analysis-evasion
Content
- `SKILL.md`
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Ae1

High
Category
analysis-evasion
Content
- `SKILL.md`
Confidence
100% confidence
Finding
Referenced artifact was not completely inspected

Skill Enumeration

Medium
Category
Agent Snooping
Content
## See Also

- Base execution and protocol/auth guidance:
  - `skills/uxc/SKILL.md`
Confidence
80% confidence
Finding
Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Autonomous Decision Making

Medium
Category
Excessive Agency
Content
- removed input flags or deprecated invocation forms
- raw JSON passed through `--args`
- dynamic runtime command renaming for link conflicts
- protocol/path/auth assumptions made without verification

## OAuth and error handling boundary
Confidence
75% confidence
Finding
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Static analysis

No suspicious patterns detected.