Back to skill

Security audit

Help And Support

Security checks for vulnerabilities and agentic risk

Overview

This wallet support skill is coherent, but it needs review because it routes free-form user text through shell commands and can submit support reports without sensitive-data redaction guidance.

Install only if you are comfortable with this skill using authenticated Finance District wallet support commands. Before use, ensure the runtime passes user text as structured arguments rather than interpolating it into shell commands, and review any bug report before submission. Do not include seed phrases, private keys, passwords, recovery codes, full personal details, or unnecessary account and transaction data in support text.

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 (1)

T09 · Insecure Skill Coding Practices

Note
Location
SKILL.md:18
Finding
Command Injection Through User-Controlled CLI Arguments<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:6`, `SKILL.md:18`, `SKILL.md:42`, `SKILL.md:71-73`, and `SKILL.md:116` **Vulnerability Type**: Shell command injection through unsafe interpolation of user-controlled input **Risk Level**: High ### Vulnerable Code ```yaml allowed-tools: ["Bash(fdx status*)", "Bash(fdx call helpNarrative*)", "Bash(fdx call onboardingAssistant*)", "Bash(fdx call reportIssue*)", "Bash(fdx call getAppVersion*)"] ``` ```bash fdx call helpNarrative --question "<question>" ``` ```bash fdx call onboardingAssistant --question "<question>" ``` ```bash fdx call reportIssue \ --title "<short title>" \ --description "<detailed description>" ``` ```markdown 4. Submit the report: `fdx call reportIssue --title "..." --description "..." --severity <level>` ``` ### Technical Analysis The skill instructs the agent to insert user-provided questions, issue titles, and issue descriptions directly into Bash command strings. Placing input inside double quotes is insufficient protection when the resulting text is parsed as shell source. Bash still evaluates command substitutions such as `$(command)` and backtick substitutions inside double-quoted strings. Embedded quotation marks or other shell syntax may also alter the intended command structure. For example, if an agent directly replaces `<question>` with the following user input: ```text $(touch /tmp/fdx-command-injection) ``` the generated command becomes: ```bash fdx call helpNarrative --question "$(touch /tmp/fdx-command-injection)" ``` Bash executes `touch /tmp/fdx-command-injection` during command substitution before invoking `fdx`. The wildcard Bash permissions in line 6 increase the exposure. A command beginning with an allowed prefix such as `fdx call helpNarrative` may still contain command substitutions or appended shell syntax, depending on how the command allowlist is enforced. Prefix-based approval therefore does not establish an argument-level security bou ...[truncated 1624 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. **Do not construct shell source from user input.** Invoke `fdx` through a structured process API that accepts an executable and an argument array without using a shell. Conceptually: ```text executable: fdx arguments: - call - helpNarrative - --question - <user input as one opaque argument> shell: false ``` 2. **Replace generic Bash access with structured tools.** Define dedicated tool interfaces for `helpNarrative`, `onboardingAssistant`, and `reportIssue`, with typed fields for each parameter. 3. **Remove wildcard command permissions where possible.** Replace permissions such as: ```yaml Bash(fdx call helpNarrative*) ``` with argument-aware policies that cannot authorize shell operators, substitutions, redirections, or additional commands. 4. **If Bash is unavoidable, pass data through positional parameters rather than interpolating it into shell source.** Ensure the input is supplied as a separate process argument and is never evaluated with `eval`, `bash -c`, or equivalent mechanisms. 5. **Apply defense-in-depth validation.** Set reasonable length limits and reject control characters. Where operationally compatible, reject shell metacharacters such as backticks, `$(`, newlines, semicolons, pipes, and redirection operators. Validation must supplement—not replace—shell-free argument handling. 6. **Add adversarial tests.** Verify that values containing `$(id)`, backticks, quotes, semicolons, newlines, pipes, and redirections are passed literally to `fdx` and never executed by a shell. ]]>
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (2)

Vague Triggers

Medium
Confidence
94% confidence
Finding
The skill description is highly broad and includes common phrases like 'help', 'I'm new', 'something is broken', and 'how do I use this?', which can cause the skill to be invoked in many unrelated contexts. Over-broad routing is dangerous because it may steer users into support flows or tool use when a narrower, more appropriate skill should handle the request, increasing the chance of unintended data disclosure or incorrect actions.

Missing User Warnings

Medium
Confidence
95% confidence
Finding
The issue-reporting flow instructs the agent to collect and submit free-form titles and descriptions without warning that users may include wallet addresses, transaction details, personal information, device data, or other sensitive account/system information. Because this skill is explicitly designed for support and bug reporting, users are especially likely to overshare, so the absence of a minimization/redaction warning increases privacy and security risk.

Static analysis

No suspicious patterns detected.