Back to skill

Security audit

ai-assistant-free

Security checks for vulnerabilities and agentic risk

Overview

This document-review skill is not clearly malicious, but it asks for command execution, file writing, callbacks, API credentials, and administrator troubleshooting in ways that exceed its stated basic analysis purpose.

Review carefully before installing. Use it only in a constrained agent environment where exec, write, network callbacks, and administrator elevation are disabled or require explicit approval, and avoid giving it confidential contracts or credentials unless the data-flow scope is clarified.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:27
Finding

Excessive Command-Execution and Filesystem Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:27-30, SKILL.md:259, SKILL.md:284, and SKILL.md:323
Vulnerability Type: Excessive tool permissions and unsafe privilege-escalation guidance
Risk Level: Medium

Vulnerable Code

SKILL.md:27-30:

yaml
tools:
  - read
  - exec
  - write

SKILL.md:259 states that the Skill can execute system commands in a sandbox and collect their results.

SKILL.md:284 and SKILL.md:323 provide the following troubleshooting guidance:

text
Insufficient permissions | The current user lacks read/write permissions | Check file permissions and run as administrator

Technical Analysis

The Skill's declared purpose is to assess documents, extract their core logic, and identify ambiguity, contradictions, and undefined terms. Its primary workflow therefore requires access to document content and the ability to return an analysis. Generic system-command execution and unrestricted filesystem writing are not inherently necessary for these functions.

Declaring both exec and write violates the principle of least privilege by granting the agent capabilities beyond the minimum requirements of the documented task. The Skill does not define:

  • An allowlist of permitted commands.
  • Restrictions on command arguments.
  • Approved input and output directories.
  • Filesystem path validation or canonicalization.
  • Enforcement preventing writes outside a designated workspace.
  • A mandatory user-confirmation boundary for command execution.
  • Technical sandbox controls beyond the unsupported assertion that commands run in a sandbox.

The troubleshooting guidance compounds this exposure by recommending administrator execution whenever permissions are insufficient. It does not require the user or agent to determine why access was denied, confirm that elevated access is necessary, or limit the elevated operation to a specific resource.

No malicious comma ...[truncated 2212 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec and write from the declared tool set if the Skill only analyzes text and returns an in-memory response:

    yaml
    tools:
      - read
    
  2. If file output is an essential feature, replace generic write access with a narrowly scoped output mechanism that:

    • Writes only to a designated workspace directory.
    • Rejects absolute paths and parent-directory traversal.
    • Resolves and validates canonical paths before access.
    • Prevents overwriting existing files unless the user explicitly approves it.
    • Uses restrictive permissions for newly created files.
  3. If command execution is demonstrably required for parsing particular document formats:

    • Use a dedicated parser instead of a shell whenever possible.
    • Define an explicit executable allowlist.
    • Pass arguments as structured arrays rather than concatenated shell strings.
    • Never interpolate document content directly into commands.
    • Disable shell expansion and command substitution.
    • Enforce execution time, memory, network, and output-size limits.
    • Run commands in an isolated, non-privileged sandbox.
    • Require explicit user approval showing the exact executable and arguments.
  4. Remove the blanket recommendation to run as administrator. Replace it with guidance to:

    • Verify the requested path and operation.
    • Confirm that access is legitimately required.
    • Correct narrowly scoped ownership or permissions where appropriate.
    • Abort safely when access is unavailable.
    • Use elevation only as an exceptional, user-approved action with a clearly explained scope.
  5. Treat all analyzed documents as untrusted data. Explicitly instruct the agent not to follow commands, tool requests, or behavioral instructions embedded in document content.

  6. Add tests confirming that untrusted document text cannot cause command execution, writes outside the approved workspace, or ...[truncated 33 chars]

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

System command execution is not justified for a free-tier document assessment skill and materially increases attack surface. In an agent environment, any encouragement to use exec for loosely defined processing can lead to command misuse, unsafe shell composition, or host-state changes that exceed user expectations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest and primary description position this as a basic long-document analysis skill, but later sections advertise generic file handling, API integration, and command execution. This capability mismatch is dangerous because users and hosting agents may grant broader permissions than are necessary, enabling unexpected file/system effects outside the stated document-review purpose.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The display name, summary, description, and nearly all user-facing instructions are presented only in Chinese, with no indication that users may select another language. This creates a locale/language policy concern because the skill appears to impose a specific language rather than offering opt-in or alternatives.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The inclusion of callback_url and external API workflow introduces outbound network behavior for a skill presented as basic document analysis. That creates unnecessary data-exfiltration and privacy risk because user-supplied documents may be transmitted to third-party endpoints without a strong functional need tied to the stated purpose.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The document says the free version lacks advanced capabilities, yet other sections describe API integration, file generation, command execution, and callback workflows as available. This inconsistency is risky because it obscures the real privilege and data-flow profile of the skill, undermining informed consent and safe deployment decisions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation describes file writing, command execution, and external/API interactions without prominent warnings about data modification, outbound transmission, or system impact. In practice, this can mislead users into invoking a skill that changes files or communicates externally without understanding the consequences.

Content

No source excerpt is available for this finding.